UML主要有三类元素:
1) 基本构造块 (basic building block)
2) 规则 (rule)
3) 公共机制 (common mechanism)
其中基本构造块又包括3种类型:
1) 事物 (thing)
2) 关系 (relationship)
3) 图 (diagram)
其中事物又分为4种类型:
# 结构事物 (structual thing)。UML中的结构事物包括类(class)、接口(interface)、协作
(collaboration)、用例(use case)、主动类(active class)、构件(component)和结点(node)。
# 行为事物 (behavioral thing)。UML中的行为事物包括交互(interaction)和状态机(state
machine)。
# 分组事物 (grouping thing)。UML中的事物是包(package)。
# 注释事物 (annotational thing)。UML中的注释事物是注解(note)。
关系有4种类型:
# 依赖 (dependency)
# 关联 (association)
# 泛化 (generation)
# 实现 (realization)
1) 基本构造块 (basic building block)
2) 规则 (rule)
3) 公共机制 (common mechanism)
其中基本构造块又包括3种类型:
1) 事物 (thing)
2) 关系 (relationship)
3) 图 (diagram)
其中事物又分为4种类型:
# 结构事物 (structual thing)。UML中的结构事物包括类(class)、接口(interface)、协作
(collaboration)、用例(use case)、主动类(active class)、构件(component)和结点(node)。
# 行为事物 (behavioral thing)。UML中的行为事物包括交互(interaction)和状态机(state
machine)。
# 分组事物 (grouping thing)。UML中的事物是包(package)。
# 注释事物 (annotational thing)。UML中的注释事物是注解(note)。
关系有4种类型:
# 依赖 (dependency)
# 关联 (association)
# 泛化 (generation)
# 实现 (realization)