3

当我阅读 UML 规范 2.5(仍然是 Beta)

Some tools may use the different Images for different purposes: the icon replacing the box, fo r the reduced-size icon inside the box, for icons within tree browsers, etc. Alternatively, depending on the Image format, tools may choose to scale one single Image into different sizes for these different purposes. Some model elements already use an icon for their default presentation. A typical example of this is the Actor model element, which uses the “stickman” icon. When a Stereotype with an icon is applied to such a model element, the Stereotype’s icon replaces the default presentation icon within diagrams.

还可以在 UML 认证中阅读它(2007,第 155 页)

UML 2 uses several semantic variation points, which means that UML 2 leaves the semantics intentionally open at this point. The interpretation is left up to the environment in which the model is used.

我的问题:

1)能否请您通过简单的示例阐明语义变化点(与上面提供的工具无关)?

2)我应该如何使用semantic variation points(我想知道是否有指导或限制Howwhere我可以使用它)?

4

1 回答 1

1

有些东西是严格规定的。有些东西是由工具或建模者设置的。例如,

Semantic Variation Points
- Precise semantics of shared aggregation varies by application area and modeler.
- The order and way in which part instances are created is not defined.

第一点对你有帮助:你可以选择使用共享聚合,只保留整个项目的可理解和稳定的原则。

第二个将告诉您不要尝试通过类图来显示创建顺序-您需要其他图表或简单的文本。

于 2014-01-21T09:19:16.483 回答