当前位置:网站首页>Sequence diagram of UML diagram series
Sequence diagram of UML diagram series
2022-07-25 02:35:00 【Chiba】
UML Sequence diagram of figure series
UML-Unified Modeling Language Unified modeling language , Also known as standard modeling language , It is a kind of language used for visual modeling of software intensive system . Sequence diagram (Sequence Diagram), Also known as sequence diagram 、 Sequence diagram , It's a kind of UML Interaction diagram , It passes through Describes the time sequence of sending messages between objects, and displays the dynamic collaboration between multiple objects . This paper introduces the concept of sequence diagram and its drawing tools .
1 Sequence diagram introduction
The following figure is an example of a complete sequence diagram : Sequence diagram package is a two-dimensional structure diagram , Multiple interactive objects expand horizontally from left to right , Each object has a vertical dotted line ( Lifeline ), The data transmission in the sequence diagram will be carried out from top to bottom along the lifeline .
For a detailed introduction to sequence diagrams, please refer to this Blog , If you want to get started with sequence diagrams quickly , I suggest seeing this video To learn . Here are just a few important knowledge points :
- The return message uses dashed lines , Usually from right to left ( But there are also left to right ):

2 Draw a sequence diagram using the language bird
We can use Visio、ppt Or any other drawing software to draw sequence diagrams , But I prefer PlantUML draw ,PlantUML It is a tool that can be written quickly UML Components of the diagram , You don't have to drag the rectangle yourself 、 Lifeline 、 Arrow and other drawing contents , Just write the corresponding syntax commands , Can automatically generate UML chart , Does it sound interesting ?
And YuQue also supports PlantUML grammar , You can write code and draw directly in the document UML chart . Usage method : After creating a new document , Click the plus sign in the upper left corner , Then select text drawing :
The figure below shows the use of PlantUML Draw a sequence diagram , The grammar is very simple , You only need to understand the sample code on the left side of the figure below to get started .
3 Use VSCode Of PlantUML The plug-in draws a sequence diagram
If you don't want to use YuQue , It can also be in VSCode Search for PlantUML The plug-in draws a sequence diagram , The grammar is the same .
Usage method : Search plug-ins PlantUML, Find the installation with the most downloads :
Create a new file to describe the sequence diagram , The extension of the code file can be as follows :*.wsd, *.pu, *.puml, *.plantuml, *.iuml. Then paste the test code above , Press Alt+d You can see the preview :
4 Use IDEA Draw sequence diagram
IDEA The plug-in function in is against the sky , You don't need to draw your own sequence diagram , Installing a plug-in SequenceDiagram:
Then right-click the name of the method you want to draw the sequence diagram , Selection rule Sequence Diagram:
Then you will see that the sequence diagram has been drawn :
边栏推荐
- CSRF attack principle scenario
- DNA helped solve the outstanding case 30 years ago. The suspect strangled his girlfriend because he fell in love with his roommate. He was already the CEO of the technology company when he was arreste
- Deep understanding of string class
- Actual combat in ThreadLocal project
- Four redis cluster schemes you must know and their advantages and disadvantages
- "Ask the sky" is in place! Yu Jingchuan's "China Space Station" in 2013 is about to set sail in the sea of stars
- 6-10 vulnerability exploitation SMTP experimental environment construction
- Codeforces:d1. choosing carrots (easy version) [max min problem + control one side to make the other side as close as possible + thinking]
- MySQL advanced (13) command line export import database
- Using ODBC to consume SAP ABAP CDs view in Excel
猜你喜欢

Four redis cluster schemes you must know and their advantages and disadvantages

Get to know string thoroughly

DNA helped solve the outstanding case 30 years ago. The suspect strangled his girlfriend because he fell in love with his roommate. He was already the CEO of the technology company when he was arreste

A bit of knowledge - websites about scripts

Pycharm writes SQLite statements without code prompts
It's still a synchronization problem

Vs2019 configuring Qt5 development environment

Ogg data extraction delay is large

Win10 configuring CUDA and cudnn

Tp5.1 initialize initialization method (not \u initialize)
随机推荐
Babbitt | metauniverse daily must read: Dubai launched the national metauniverse strategy, which plans to increase the number of related companies of metauniverse by five times in the next five years
"Introduction to interface testing" punch in to learn day05: how can a testing framework support restful interfaces?
Unable to display spline in UE4 (unreal engine4) terrain editing tool
Summary and sorting of XSS (cross site script attack) related content
Using ODBC to consume SAP ABAP CDs view in Excel
Guide to the construction of network security testing laboratory - Chapter 1, section 1.5 key terms
Vs2019 configuring Qt5 development environment
[pyGame practice] nostalgic classic - do you remember the name of this chess game for children? (must collect)
Deep understanding of string class
"No such plugin: cloudbees folder" solution appears when Jenkins selects the recommended plug-in for the first time
What are you working for? Don't give up is our only choice, come on, everyone
C language: Structure -- a detailed explanation of memory byte alignment
DNA helped solve the outstanding case 30 years ago. The suspect strangled his girlfriend because he fell in love with his roommate. He was already the CEO of the technology company when he was arreste
Full analysis of new functions of report design tool FastReport online designer v2022.1
Project management tool Zen
Can PostgreSQL CDC only connect to the main database? Connection from the library reports an error logical decoden
On Calc optimization of calcite
It7259q-13, it7259ex-24 feature wearable devices
Details of C language compilation preprocessing and comparison of macros and functions
Why can't reading more books improve your writing?