简体   繁体   English

UML类图

[英]UML Class Diagram

I have a design class diagram using the boundary, control, entity pattern: 我有一个使用边界,控件,实体模式的设计类图:

在此处输入图片说明

Are the following links allowed: 是否允许以下​​链接:

  • boundary to boundary ? 边界到边界?
  • control to control? 控制到控制?

The ECB pattern is meant to ease implementation of use-cases. ECB模式旨在简化用例的实现。 In its philosophy, controls implement use cases, boundaries the relation of use cases with external world, and entities, the business data that is managed by the use cases. 在其理念中,控件实现用例,将用例与外部世界和实体(由用例管理的业务数据)之间的关系划分为边界。

So only the following links should be allowed: 因此,仅应允许以下链接:

             Entity     Boundary   Control
Entity         X                      X
Boundary                              X
Control        X           X          X

You see that boundary to boundary is not allowed. 您会看到边界到边界是不允许的。 Boundaries can only be linked to actors or to controls. 边界只能链接到参与者或控件。

Control to control is allowed, but you haven't any. 可以控制进行控制,但您还没有。

An additional question is the kind of link that should be represented. 另一个问题是应该表示的链接类型。 Is it really plain association (ie structural, one end is a property of the other) ? 它是否真的是简单的关联(即结构化,一端是另一端的属性)? Or is it a usage dependency (ie a dashed line with the stereotype <> would be more appropriate) ? 还是使用依赖关系(即,带有构造型<>的虚线会更合适)? I'd opt for the first alternative between entities, but the second with controls and boundaries. 我会选择实体之间的第一种选择,但第二种选择带有控件和边界。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM