简介 / IntroductionState machines describe how an object transitions through a set of discrete states during its lifecycle. Two important pseudostates power most real-world models:
choice — con...
简介 / Introduction状态机(State Machine)常用于描述对象在其生命周期内的状态流转。除了普通的状态节点,还依赖两种重要的伪状态(Pseudostate):
choice — 条件分支,类似于 if/else,根据守卫条件选择下一个状态。
fork — 并行分支,同时从一点分叉出多个并发执行路径。
本文用同一个业务场景(订单处理)分别演示 PlantUM...
简介 / IntroductionState machines describe the lifecycle of objects and protocol state transitions. Composite states bundle multiple sub-states under one high-level state, reducing diagram clutt...
简介 / Introduction状态机(State Machine)广泛用于描述对象生命周期、协议状态流转。复合状态(Composite State)将多个子状态打包为一个高层状态,简化大图;历史状态(History State)记录退出复合状态前的最近子状态,支持”从哪里中断就从哪里恢复”。本文用同一业务场景(登录流程)分别演示 PlantUML 与 Mermaid 的语法,并...
简介 / Introduction泛型(Generics)和集合类型(Collection Types)是面向对象设计中的核心概念。在类图中,泛型约束了类成员、返回值和参数的参数化类型。本篇以 List<T>、Map<K,V> 为例,对比 PlantUML 与 Mermaid 的实现方式。
PlantUML 版123456789101112131415161...
简介 / IntroductionGenerics and collection types are core concepts in object-oriented design. In class diagrams, generics constrain the parameterized types of class members, return values, and p...
简介 / IntroductionClass diagrams don’t just show relationships — they also use packages or namespaces to organize model elements into a hierarchical structure. This article uses the same scenar...
简介 / Introduction类图不仅描述类之间的关系,也用包(Package) 或 命名空间(Namespace) 来组织模型元素,形成分层结构。本文用同一个场景对比 PlantUML 与 Mermaid 的包/命名空间语法,展示两者的异同。
PlantUML 版12345678910111213141516171819package "com.examp...
简介 / Introduction类图(Class Diagram)是面向对象建模的核心工具。除了普通的类之外,Stereotype(构造型)用来标注类的特殊语义,如 <<interface>>、<<abstract>>、<<service>>;对应的 UML 概念是接口(Interface)和抽象类(Abst...
简介 / IntroductionClass diagrams are the core of object-oriented modeling. Beyond ordinary classes, stereotypes (such as <<interface>>, <<abstract>>, <<service>...