【问题标题】:Clarification and Example about using UML semantic variation points [closed]关于使用 UML 语义变化点的说明和示例 [关闭]
【发布时间】:2013-09-19 06:02:46
【问题描述】:

当我阅读 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是否有指导或限制我可以使用它)?

【问题讨论】:

    标签: uml ooad tool-uml


    【解决方案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.
    

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

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

    【讨论】:

      猜你喜欢
      • 2016-11-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-04-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多