统一建模语言 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 年前3
PlantUML 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 年前3
PlantUML 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 年前3
PlantUML 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













