简介 / Introduction抽象类(Abstract Class)不能直接实例化,它定义了一组子类共有的属性和方法骨架。具体类(Concrete Class)继承抽象类后,必须实现其所有抽象方法。本文展示如何在 PlantUML 和 Mermaid 中绘制这一模式。
PlantUML 版123456789101112131415abstract class Animal ...
简介 / IntroductionAn abstract class cannot be instantiated directly — it defines a skeleton of attributes and methods that its subclasses must implement. A concrete class inherits from the abst...
简介 / IntroductionThe alt / else / opt fragments in sequence diagrams express conditional branching and optional interactions. Both PlantUML and Mermaid support these fragments, but w...
简介 / Introduction时序图中的 alt / else / opt 片段用于表达条件分支、循环等复杂交互逻辑。PlantUML 和 Mermaid 都支持这类片段,但语法细节不同。本文用同一场景对比两者的写法。
PlantUML 版1234567891011@startumlAlice -> Bob: 操作请求alt 授权成功 Bob -...
简介 / Introduction类图(UML Class Diagram)和 ER 图(Entity-Relationship Diagram)都是描述结构化数据的利器,但侧重点不同:类图面向面向对象设计,强调类、属性和方法;ER 图面向数据库设计,强调实体、属性和关系。本文用同一业务场景分别展示两种图的 PlantUML 和 Mermaid 写法,并做横向对比。
PlantUM...
简介 / IntroductionClass diagrams and ER diagrams both describe structured data, but with different focuses: class diagrams target object-oriented design with classes, attributes, and methods; E...
简介 / IntroductionSequence Diagram and Activity Diagram are both essential interaction-modeling tools, but they focus on different things. Sequence diagrams emphasize who said what to whom and ...
简介 / Introduction时序图(Sequence Diagram)和活动图(Activity Diagram)都是交互建模的重要工具,但侧重点不同。时序图强调谁在何时对谁说了什么;活动图强调流程的分支、循环与并行。选对图类型,能让图表一目了然;选错则徒增困惑。
PlantUML 版时序图示例1234567891011121314@startumltitle 用户登录时序a...
简介 / IntroductionGantt charts and timelines are two common visualizations in project management. Both PlantUML and Mermaid support these diagram types, but their syntax and output differ. This...
简介 / Introduction甘特图(Gantt chart)和时间线(Timeline)是项目管理中常用的两种可视化方式。PlantUML 和 Mermaid 都支持这两种图表,但语法和呈现效果各有特点。本文用同一份示例对比两者的实现方式。
PlantUML 版PlantUML 的甘特图使用 @startgantt 语法,时间线则用 concise 样式或 timeline ...