当前位置:网站首页>UML diagram of soft skills
UML diagram of soft skills
2022-08-01 23:07:00 【Afei Technology】
UML diagram of soft skills
If you want to do well, you must first sharpen your tools. UML is a modeling tool that programmers need to use in the modeling process.
UML: Unified Modeling Language.The goal is to describe any kind of system in an object graph way.
UML can be divided into two categories: structural (describes a certain structure), behavioral (describes a certain behavior)
Structural UML includes: class diagram, object diagram, component diagram, deployment diagram, package diagram.
Behavioral UML includes: activity diagram, state machine diagram, sequence diagram, communication diagram, use case diagram, time diagram.
The various stages of software development
Requirements Analysis Phase:
Use Case Diagram: Consists of actors, use cases, boundaries, and their relationships to form a view that describes the functionality of a system.
Flowchart: Process-oriented, describing the process.
Outline Design Phase:
Class Diagram: The static structure of the model, the relationship between classes.
Object diagram: As a snapshot of the system at a certain moment, it is a static portrayal of the instances and their relationships of each class in the class diagram at a certain moment.Used to describe a set of objects at a time and the relationships between them.
Detailed Design Phase:
Sequence Diagram: Describes the chronological sequence of messages sent between objects showing the dynamic collaboration between multiple objects.
State Diagram: Describes the dynamic behavior of an entity in response to events.Focus on describing the results from the behavior.
Activity diagram: illustrates the workflow of a business use case.Focus on describing from the results of behavior, object-oriented, focusing on the performance of system behavior.
Sequence Diagram: Represents interactions as a two-dimensional diagram.
Communication diagram: A diagram showing the interaction of objects.
Deployment Phase:
Deployment diagram.
Several common pictures
Class Diagram
A class diagram is a diagram that describes a business concept.
There are six types of relationships between classes:
Inheritance: A child class inherits from a parent class.
Implementation: Implements classes and interfaces.
Association: A class object is related to another class object.(Combination and aggregation also belong to association relationship)
Dependency:A class method takes another class object as a parameter.(one-way)
Composition: The relationship between the whole and the part between the classes, the whole and the part have a consistent life cycle.
Aggregation: The whole-part relationship between classes, but member objects can exist independently of the whole object.
Relationships from strong to weak: inheritance->implementation->composition->aggregation->association->dependency.(The aggregation in DDD is consistent with the compositional relationship in UML)

Class diagram attribute representation:
+ public
- private
# protected
~ default
Abstract classes or abstract methods are in italics
Static classes or static methods are underlined
If the interface is on the classadd<<>>
UML diagram draws a class using the matrix representation of dividing lines:
The top is the class name.
The middle is the class attribute.
The following are the class methods.

Complete class diagram example:

Deployment diagram
A deployment diagram is a diagram used to describe how a system is deployed and the relationships between systems.
I drew a picture in 2018 and shared it later.

Flowchart
Flowchart: Process-oriented, a diagram that describes a process.
Common basic symbols:
Start/End: Indicates the beginning or end of a process.A flowchart has only one beginning and may have multiple ends.
Process: A step in a process to be processed.
Data: Indicates the input or output of data.
Judgment: Used to indicate a decision in the process.
Documentation: Represents written information pertaining to the process.
Flow Direction: Arrows indicate the flow direction of a process.

The ForkjoinPool execution flow chart I drew before, the leftmost ForkJoinWorkerThread#run is actually started by the main method for subsequent execution. For the convenience of understanding, two starts are drawn.

Comparison of activity diagrams and flowcharts:
Activity diagrams focus more on the behavioral relationship and sequence of activities between objects in a system.The flowchart can refer to the specific implementation steps of an algorithm, focusing on the processing process.
Activity diagrams can be executed concurrently, while flow charts are executed sequentially and have a time sequence.
Activity diagrams are object-oriented, and flowcharts are process-oriented.
Sequence diagram
Components:
Actor Actor: A system actor, which can be a human or other systems and subsystems.
Object Object: Object represents the role that the objects in the sequence diagram play in the interaction.
Lifeline: A lifeline represents the existence of an object in a sequence diagram over a period of time.
Control focus Activation: The period when an action is performed on behalf of an object in the sequence diagram.
Message Message: Defines classes for exchanging information in interaction and collaboration.

边栏推荐
猜你喜欢

How to add a game character to a UE4 scene

Quarantine and downgrade

程序员如何优雅地解决线上问题?

From 0 to 1: Design and R&D Notes of Graphic Voting Mini Program

img 响应式图片的实现(含srcset属性、sizes属性的使用方法,设备像素比详解)

小程序毕设作品之微信美食菜谱小程序毕业设计成品(5)任务书

PDF转Word有那么难吗?做一个文件转换器,都解决了

SRv6 L3VPN的工作原理

牛客多校4 A.Task Computing 思维

xctf攻防世界 Web高手进阶区 webshell
随机推荐
System availability: 3 9s, 4 9s in SRE's mouth... What is it?
xctf攻防世界 Web高手进阶区 web2
简单3D渲染器的制作
系统可用性:SRE口中的3个9,4个9...到底是个什么东西?
Codeforces CodeTON Round 2 (Div. 1 + Div. 2, Rated, Prizes!) A-D 题解
隔离和降级
qt-faststart 安装使用
分享10套开源免费的高品质源码,免费源码下载平台
prim生成树
用virtualenv和Virtualenvwrapper虚拟环境管理工具创建虚拟环境
SQL Server(设计数据库--存储过程--触发器)
PAM Palindromic Automata
Postman 批量测试接口详细教程
[Recommended books] The first self-driving technology book
论文解读(GSAT)《Interpretable and Generalizable Graph Learning via Stochastic Attention Mechanism》
PDF转Word有那么难吗?做一个文件转换器,都解决了
Oracle 数据库设置为只读及读写
Codeforces CodeTON Round 2 (Div. 1 + Div. 2, Rated, Prizes!) A-D Solution
D - Linear Probing- 并查集
xss相关知识点以及从 XSS Payload 学习浏览器解码