首页 > 其他 > 详细

UML Class and Object Diagrams Overview

时间:2018-08-03 11:08:37      阅读:242      评论:0      收藏:0      [点我收藏+]

Class diagram is UML structure diagram which shows structure of the designed system at the level of classes and interfaces, shows their features特征,constraints 约束and relationships 关系- associations关联, generalizations泛化, dependencies依赖, etc.

 

Some common types of class diagrams are:

Object diagram could be considered as instance level class diagram which shows instance specifications of classes and interfaces (objects), slots with value specifications, and links (instances of association).

Domain Model Diagram

技术分享图片

Domain diagram overview - classes, interfaces, associations, usage, realization, multiplicity.

Diagram of Implementation Classes

技术分享图片

Elements of implementation class diagram - classes, interfaces, associations, usage, realization.

Object Diagram

Object diagram was defined in now obsolete UML 1.4.2 Specification as "a graph of instances, including objects and data values. A static object diagram is an instance of a class diagram; it shows a snapshot of the detailed state of a system at a point in time." It also stated that object diagram is "a class diagram with objects and no classes."

UML 2.4 specification simply provides no definition of object diagram except that "the following nodes and edges are typically drawn in an object diagram: Instance Specification and Link (i.e., Association)."

Note, that UML 2.5 standard hierarchy of diagrams (see UML 2.5 diagrams overview), shows class diagrams and object diagrams as completely unrelated. Some other authoritative UML sources state that component diagrams and deployment diagrams containing only instance specifications are also special kinds of object diagrams.

Object diagram overview below shows some major elements of object diagram - named and anonymous instance specifications for objectsslots with value specifications, and links (instances of association).

技术分享图片

Object diagram overview - instance specifications, value specifications, slots, and links.

 

https://www.uml-diagrams.org/class-diagrams-overview.html

UML Class and Object Diagrams Overview

原文:https://www.cnblogs.com/gujiande/p/9412884.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!