uml9种图模型(国外英文资料).docVIP

  • 56
  • 0
  • 约1.7万字
  • 约 12页
  • 2017-06-27 发布于河南
  • 举报
uml9种图模型(国外英文资料)

uml9种图模型(国外英文资料) Sometimes, in order to express brevity, you can omit all the attributes and operations of a display class. The relationships among classes include Association (Association), dependency (Dependency), generalization (Generalization), and Implementation (Realize). Association describes the logical relationships between objects of the class, which can be of the same kind or not, and the two ends of the association are called roles, such as the customer and the order. In UML, there are three main forms of association, one is to identify a bidirectional association with a line segment, called Association, and the other second to identify unidirectional associations with an arrow segment (Unidirectinal Association); the third is to use a diamond head line representing the association ends is the relationship between whole and part of this association, also known as polymerization (Aggregation), for example, a a object contains another object B references, then the diamond end is connected to the a object, another the connection object is B. Polymerization is divided into. Figure 2.2.2 shows the graphical representation of the three associations. 300) this.width=300, align=, center, border=, 0, height=, 100, width=, 200, Figure 2.2.2 three associations You can see from figure 2.2.2, NewClass2 and NewClass4, the correlation between the two ends of a star, that is used for identification of multiple related roles, such as one to one, one to many, many to many, here is the NewClass2 logo and NewClass4 are many to many relationship. Dependencies represent dependencies between model elements, and model elements at both ends of the dependency are independent at one end and dependent on the independent element at the other. Dependencies are represented by virtual segments with arrows. Generalization represents the abstract and concrete relationship between model elements, that is, the inheritance relationship between model elements. Is successor successor has the

文档评论(0)

1亿VIP精品文档

相关文档