当前位置:网站首页>UML (use case diagram, class diagram, object diagram, package diagram)
UML (use case diagram, class diagram, object diagram, package diagram)
2022-07-19 05:24:00 【K I S】

One 、 Use case diagram
- Use cases : Use cases represent the functions of the system , A use case is a general description of system functions , The use cases of the system constitute all the functions of the system . Use cases can be applied to the whole system , Use cases can also be applied to a part of the system , Such as subsystem, etc . A system usually requires multiple use cases to describe system requirements . The use case is represented as an ellipse .

- participants : The actor is the initiator of the use case , It is outside the use case and can initialize a use case , Are participants outside the system , It can be a user 、 External hardware 、 Other systems .

- relation :( Actors and use cases )

- generalization :( Participants and participants )


- contain ( rely on ): When common behaviors can be extracted from two or more original use cases , Or when it is important to find that a component can be used to realize some functions of a use case , Inclusion relationships should be used to represent them .( The arrow points to the included party )

- Expand ( rely on ): If a use case clearly mixes two or more different scenarios , That is, many things may happen according to the situation . We can divide this use case into a main use case And one or more sub use cases , The description may be clearer .( The arrow points to the expanded side )

- Comparison of inclusion and extension

- Use case model :

Two 、 Class diagram
- class : Class can be divided into 3 Types : Entity class ( The relationship between saving data and maintaining data )、 Interface class ( Be responsible for interacting with the outside world )、 The control class ( Responsible for business and coordination entities Working with interface classes ),(public,private,protected, Use them separately “+”,“-”,“#” The sign means ).


- Connections ( Ownership )
1. Two way connection

2. One way Association

3. Association and ternary Association

4. Combine ( The whole does not exist , Part does not exist )

5. polymerization ( Members can exist apart from the whole )

- Generalization relation ( Inherit )( The arrow points to the parent class )


- Dependency relationship ( Use relationship )( The arrow points to the dependent party )

- Realization relationship

- Class diagram model

3、 ... and 、 Object graph
- Object graph : Object graph (object diagram) Shows a group of objects at a certain time and the relationship between them . The object graph can be
As an example of a class diagram , Used to express the state of each object at a certain time . - Representation :

- Object graph model

Four 、 Package diagram
- Package diagram : The package diagram is in UML A combination of model elements represented in symbols similar to folders . Each element in the system can only be owned by one package , One package can be nested in another package . Using a package diagram, you can group related elements into a system . A package can contain accessory packages 、 Charts or individual elements .
- Dependencies of package graph :

- The problem of circular dependence :

- Package Introduction :

- Package graph model :

边栏推荐
- vlookup函数的使用方法及实例
- The principle and local storage of the throttle valve of the rotation chart are summarized
- 数据可视化
- js 原生对象加属性
- Teach you to reproduce log4j2 nuclear weapon level vulnerability hand in hand
- 遍历的方法总结
- Distributed registry etcd
- Flex flexible layout
- MySQL - index
- Use echars to realize water drop, ring, segmentation, stacking, organization chart, map outline and other charts
猜你喜欢
随机推荐
Nacos配置管理
ArcGIS point cloud (XYZ) data to DEM
循环赛制日程表问题
(elaborate) ES6 remaining parameters, ES6 built-in objects, template string content (detailed example Dictionary) and practical cases of flexible use of the project
Three methods for cesium to obtain the longitude and latitude at the mouse click
Swagger配置与使用
Implementation of synchronization interface of 6 libcurl based on libco
聊聊redis分布式锁的8大坑
ECS deployment web project
Excel imports long data and changes to 000 at the end
Excel template export of easypoi
Mapbox loads local offline terrain
[AI] action recognition using simple neural network -- Based on coco key points
遍历的方法总结
Use echars to realize water drop, ring, segmentation, stacking, organization chart, map outline and other charts
Baidu map realizes thermal map
Redis source code analysis - data structure and Implementation (Dictionary dict)
GoFrame 错误处理的常用方法&错误码的使用
网络命令:网卡信息,netstat,arp
[ES6] quickly print user information to the page








