关于使用UML语义变异点的澄清和示例

时间:2013-09-14 18:36:58

标签: uml ooad tool-uml

当我阅读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我可以使用的指南或限制?)

1 个答案:

答案 0 :(得分: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.

第一点可以帮助您:您可以根据需要使用共享聚合,只为整个项目保留原则可理解和稳定。

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