Content Entry

11. 组合结构, UML学习笔记

Published: 2008-05-25 Categories: Tech Tags: Composite Structures 组合结构 UML Reading

Modeling a Class's Internal Structure: Composite Structures
对类的内部结构建模: 组合结构

有时,主要的UML图,如类图和顺序图,不适合捕捉系统的某些细节。组合结构可以弥补这些缺陷。它们为对象如何在类里协同工作、或对象之间如何实现目标而建模。

internal structure 内部结构
part 成员
port 端口
collaboration 合作
design pattern 设计模式
possession-related relationship 拥有关系
multiplicity 多重性
connector 连接符
composition 组合
property 特性
association 关联
provided interface 提供接口
required interface 需求接口
loose coupling 松弛耦合
Chain of Responsibility, COR 责任链

Figure 11-1. How the internal structure of BlogEntry matches up to the class diagram

Figure 11-2. Ports can be used to group "like" interfaces

Figure 11-3. Parts and properties in the internal structure of a class

Figure 11-4. Showing Patterns with Collaborations
i. Sequence diagram showing how the COR pattern is used in the content approval process
ii. Collaboration showing the COR pattern in the content approval process
iii. Alternate representation of the COR design patter

Learn:
Learning UML 2.0, O'Reilly
by Russ Miles & Kim Hamilton

comments loading