简体   繁体   中英

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. 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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