统一建模语言 UML 参考手册 - 基本概念
将当前软件最佳实践合并至标准的方法 ��� 包括 语义概念 标记符号和指南 具有静态 动态 环境上的和组织性的部分 它可以被具有 代码产生和报表生成的交互式可视建模工具所支持 ��� 规范没有定义标准过程 但可用 于迭代的开发过程 并支持现有的大多数面向对象的开发过程 � ��� 捕捉系统静态结构和动态行为的信息 系统建模成独立对象的集合 它们互相交互 以实现功能 从而最终使外部使用者获益 静态结构定义了对系统具有重要意义的各种对 并发 模式和团队开发等等 � ��� 不是完整的开发方法 它不包括逐步的开发流程 我们相信对于软件开发而言 好 的开发过程是非常关键的 认识到 ��� 和使用 ��� 的过程的不同是很重要的 现代迭代 过程是基于建造强壮结构来解决用例驱动的需求 ��� 包括了所有的必要概念 � 最后一个 ��� 目标是在能对众多系统建模的同时 尽可能的简洁 ��� 具有足够的表 ��� 参考指南� � ��� 和 � 个或多个的孩子 子类 类从它的双亲或其它祖先继承状 态和行为描述 以及定义被孩子和其它后代继承的状态和行为 � 类在它的容器中具有唯一的名称 容器通常是包 但有时是其它的类 类具有相对于容 器的可见性 可见性指明了类被容器外的其它类如何使用 类具有重数 说明了该类存在 多少个实例 通常重数为多 � 或多 无明显的限制 但单子类在执行过程中仅具有一个 实例 � 接口 接口 接口 接口 接口是未给出实现或状态的对象行为的描述0 码力 | 123 页 | 2.61 MB | 1 年前3使用 PlantUML 绘制 UML - PlantUML 语言参考指引(Version 1.2023.11)
还要注意的是,以 $ 开始的名字是有效的,但是要给这样的元素分配一个别名,必须把名字放在引号"" 之间。 3.5 添加方法 要声明属性和方法,你可以使用符号:,后面跟字段或方法的名称。 编译器会通过检查括号来选择方法和字段。 @startuml Object <|-- ArrayList Object : equals() ArrayList : Object[] elementData class Flight { flightNumber : Integer departureTime : Date } @enduml 你可以使用 {field} 和 {method} 修饰符来覆盖编译器对属性和方法的默认识别。 @startuml class Dummy { {field} A field (despite parentheses) {method} Some method } @enduml 11) 128 / 538 6.16 连接器 (Connector) 6 活动图(新语法) and **very** long...; :foo3; else -[#black,dotted]-> :foo4; endif -[#gray,bold]-> :foo5; @enduml 6.16 连接器 (Connector) 你可以使用括号定义连接器。 @startuml start :Some0 码力 | 539 页 | 7.74 MB | 1 年前3使用 PlantUML 绘制 UML - PlantUML 语言参考指引(Version 1.2019.6)
Flight { flightNumber : Integer departureTime : Date } @enduml 你可以(显式地)使用 {field} 和 {method} 修饰符来覆盖解析器的对于字段和方法的默认行为You can use {field} and {method} modifiers to override default behaviour -[#gray,bold]-> :foo5; @enduml PlantUML 语言参考指引 (1.2019.6) 69 / 173 5.10 连接器 (Connector) 5 活动图 (新语法) 5.10 连接器 (Connector) 你可以使用括号定义连接器。 @startuml start :Some activity; (A) detach (A) :Other activity; @enduml @startuml robust "Web 浏览器" as WB concise "Web 用户" as WU @0 WU is 空闲 WB is 空闲 @100 WU is 等待中 WB is 处理中 @300 WB is 等待中 @enduml 9.2 增加消息 使用下述的语法增加对消息的描述。 @startuml robust "Web 浏览器" as WB concise "Web 用户" 0 码力 | 174 页 | 1.98 MB | 1 年前3使用 PlantUML 绘制 UML - PlantUML 语言参考指引(Version 1.2019.9)
Flight { flightNumber : Integer departureTime : Date } @enduml 你可以(显式地)使用 {field} 和 {method} 修饰符来覆盖解析器的对于字段和方法的默认行为You can use {field} and {method} modifiers to override default behaviour -[#gray,bold]-> :foo5; @enduml PlantUML 语言参考指引 (1.2019.9) 69 / 173 5.10 连接器 (Connector) 5 活动图 (新语法) 5.10 连接器 (Connector) 你可以使用括号定义连接器。 @startuml start :Some activity; (A) detach (A) :Other activity; @enduml @startuml robust "Web 浏览器" as WB concise "Web 用户" as WU @0 WU is 空闲 WB is 空闲 @100 WU is 等待中 WB is 处理中 @300 WB is 等待中 @enduml 9.2 增加消息 使用下述的语法增加对消息的描述。 @startuml robust "Web 浏览器" as WB concise "Web 用户" 0 码力 | 174 页 | 2.00 MB | 1 年前3使用 PlantUML 绘制 UML - PlantUML 语言参考指引(Version 1.2019.1)
:foo3; else -[#black,dotted]-> :foo4; endif -[#gray,bold]-> :foo5; @enduml 5.10 连接器 (Connector) 你可以使用括号定义连接器。 @startuml start :Some activity; (A) PlantUML 语言参考指引 (1.2019.1) 64 / 145 5.11 组合 (grouping) @startuml robust "Web 浏览 器 " as WB concise "Web 用户 " as WU @0 WU is 空闲 WB is 空闲 @100 WU is 等待 中 WB is 处理 中 @300 WB is 等待 中 @enduml 9.2 增加消息 使用下述的语法增加对消息的描述。 @startuml robust "Web 浏览 器 " as WB concise "Web deactivate A @enduml @startuml (*) --> " 膩 平台 " --> === S1 === --> 鞠 躬 向 公 眾 --> === S2 === --> 這 傢 伙 波 武 器 --> (*) skinparam backgroundColor #AAFFFF skinparam activityStartColor red PlantUML 语言参考指引 (1.20190 码力 | 146 页 | 1.91 MB | 1 年前3PlantUML 1.2019.3 语言参考指引
-[#gray,bold]-> :foo5; @enduml PlantUML 语言参考指引 (1.2019.3) 68 / 156 5.10 连接器 (Connector) 5 活动图 (新语法) 5.10 连接器 (Connector) 你可以使用括号定义连接器。 @startuml start :Some activity; (A) detach (A) :Other activity; @enduml @startuml robust "Web 浏览器" as WB concise "Web 用户" as WU @0 WU is 空闲 WB is 空闲 @100 WU is 等待中 WB is 处理中 @300 WB is 等待中 @enduml 9.2 增加消息 使用下述的语法增加对消息的描述。 @startuml robust "Web 浏览器" as WB concise "Web 用户" . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 5.10 连接器 (Connector) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 690 码力 | 157 页 | 1.78 MB | 1 年前3PlantUML 1.2019.2 语言参考指引
-[#gray,bold]-> :foo5; @enduml PlantUML 语言参考指引 (1.2019.2) 68 / 156 5.10 连接器 (Connector) 5 活动图 (新语法) 5.10 连接器 (Connector) 你可以使用括号定义连接器。 @startuml start :Some activity; (A) detach (A) :Other activity; @enduml @startuml robust "Web 浏览器" as WB concise "Web 用户" as WU @0 WU is 空闲 WB is 空闲 @100 WU is 等待中 WB is 处理中 @300 WB is 等待中 @enduml 9.2 增加消息 使用下述的语法增加对消息的描述。 @startuml robust "Web 浏览器" as WB concise "Web 用户" . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 5.10 连接器 (Connector) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 690 码力 | 157 页 | 1.78 MB | 1 年前3使用 PlantUML 绘制 UML - PlantUML 语言参考指引(Version 1.2019.4)
-[#gray,bold]-> :foo5; @enduml PlantUML 语言参考指引 (1.2019.4) 68 / 164 5.10 连接器 (Connector) 5 活动图 (新语法) 5.10 连接器 (Connector) 你可以使用括号定义连接器。 @startuml start :Some activity; (A) detach (A) :Other activity; @enduml @startuml robust "Web 浏览器" as WB concise "Web 用户" as WU @0 WU is 空闲 WB is 空闲 @100 WU is 等待中 WB is 处理中 @300 WB is 等待中 @enduml 9.2 增加消息 使用下述的语法增加对消息的描述。 @startuml robust "Web 浏览器" as WB concise "Web 用户" . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 5.10 连接器 (Connector) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 690 码力 | 165 页 | 1.89 MB | 1 年前3PlantUML 1.2020.22 语言参考指引
Flight { flightNumber : Integer departureTime : Date } @enduml 你可以(显式地)使用 {field} 和 {method} 修饰符来覆盖解析器的对于字段和方法的默认行为 @startuml class Dummy { {field} A field (despite parentheses) {method} Some method } bold]-> :foo5; @enduml PlantUML 语言参考指引 (1.2020.22) 80 / 294 5.13 连接器 (Connector) 5 活动图 (新语法) 5.13 连接器 (Connector) 你可以使用括号定义连接器。 @startuml start :Some activity; (A) detach (A) :Other activity; @enduml 声明参与者 使用 concise or robust 关键字声明参与者, 选择哪个取决于所需的显示样式。 通过 @ 标注, 和 is 动词定义状态. @startuml robust "Web 浏览器" as WB concise "Web 用户" as WU @0 WU is 空闲 WB is 空闲 @100 WU is 等待中 WB is 处理中 @300 WB is 等待中 @enduml0 码力 | 295 页 | 3.08 MB | 1 年前3使用 PlantUML 绘制 UML - PlantUML 语言参考指引(Version 1.2020.23)
Flight { flightNumber : Integer departureTime : Date } @enduml 你可以(显式地)使用 {field} 和 {method} 修饰符来覆盖解析器的对于字段和方法的默认行为 @startuml class Dummy { {field} A field (despite parentheses) {method} Some method } bold]-> :foo5; @enduml PlantUML 语言参考指引 (1.2020.23) 91 / 306 5.13 连接器 (Connector) 5 活动图 (新语法) 5.13 连接器 (Connector) 你可以使用括号定义连接器。 @startuml start :Some activity; (A) detach (A) :Other activity; @enduml 声明参与者 使用 concise or robust 关键字声明参与者, 选择哪个取决于所需的显示样式。 通过 @ 标注, 和 is 动词定义状态. @startuml robust "Web 浏览器" as WB concise "Web 用户" as WU @0 WU is 空闲 WB is 空闲 @100 WU is 等待中 WB is 处理中 @300 WB is 等待中 @enduml0 码力 | 307 页 | 3.17 MB | 1 年前3
共 21 条
- 1
- 2
- 3