当前位置:网站首页>UML 顺序图(时序图)
UML 顺序图(时序图)
2022-07-07 12:12:00 【sinat_36789271】
顺序图(Sequence Diagram):是一种强调对象间消息传递次序的交互图,又称为时序图或序列图。描述了在一个用例或操作的执行过程中对象如何通过消息相互交互,说明了消息如何在对象之间被发送和接收以及发送的顺序。
组成:
1、生命线:表示对象存在的时间
2、消息:消息一般分为同步消息(Synchronous Message),异步消息(Asynchronous Message)和返回消息(Return Message).如下图所示:
a. 同步消息
消息的发送者把进程控制传递给消息的接收者,然后暂停活动,等待消息接收者的回应消息。
b. 异步消息(Asynchronous Message)
消息的发送者将消息发送给消息的接受者后,不用等待回应的消息,即可开始另一个活动。
c. 返回消息(Return Message)
返回消息表示从过程调用返回
d. 自关联消息
表示方法的自身调用以及一个对象内的一个方法调用另外一个方法
补充:
1、交互片段(Interaction Fragment):一个复杂的顺序图可以划分为几个小块,每一个小块称为一个交互片段,由一个大方框包围。
2、常用的操作符包括:
1) alt:多条路径,条件为真时执行。
2) opt:任选,仅当条件为真时执行。
3) par:并行,每一片段都并发执行。
4) loop:循环,片段可多次执行。
边栏推荐
- Laravel form builder uses
- [daily training] 648 Word replacement
- 请问,PTS对数据库压测有好方案么?
- XML文件的解析操作
- Laravel5 call to undefined function OpenSSL cipher IV length() error php7 failed to open OpenSSL extension
- Es log error appreciation -limit of total fields
- 2022-7-6 使用SIGURG来接受外带数据,不知道为什么打印不出来
- [untitled]
- IP and long integer interchange
- 2022-7-6 Leetcode 977.有序数组的平方
猜你喜欢
最长上升子序列模型 AcWing 1014. 登山
118. 杨辉三角
Take you to master the three-tier architecture (recommended Collection)
Sliding rail stepping motor commissioning (national ocean vehicle competition) (STM32 master control)
2022-7-6 初学redis(一)在 Linux 下下载安装并运行 redis
Hands on Teaching: XML modeling
带你掌握三层架构(建议收藏)
SSRF vulnerability file pseudo protocol [netding Cup 2018] fakebook1
566. Reshaping the matrix
Leetcode simple question sharing (20)
随机推荐
最长上升子序列模型 AcWing 1012. 友好城市
SSRF vulnerability file pseudo protocol [netding Cup 2018] fakebook1
3D detection: fast visualization of 3D box and point cloud
AI人才培育新思路,这场直播有你关心的
股票开户首选,炒股交易开户佣金最低网上开户安全吗
请问,我kafka 3个分区,flinksql 任务中 写了 join操作,,我怎么单独给join
The delivery efficiency is increased by 52 times, and the operation efficiency is increased by 10 times. See the compilation of practical cases of financial cloud native technology (with download)
搜索框效果的实现【每日一题】
2022-7-6 Leetcode27. Remove the element - I haven't done the problem for a long time. It's such an embarrassing day for double pointers
Indoor ROS robot navigation commissioning record (experience in selecting expansion radius)
What are the principles for distinguishing the security objectives and implementation methods that cloud computing security expansion requires to focus on?
mysql ”Invalid use of null value“ 解决方法
Learning breakout 2 - about effective learning methods
.net core 关于redis的pipeline以及事务
IP and long integer interchange
2022-7-7 Leetcode 34.在排序数组中查找元素的第一个和最后一个位置
Huawei image address
Excuse me, why is it that there are no consumption messages in redis and they are all piled up in redis? Cerely is used.
Oracle advanced (V) schema solution
Advanced Mathematics - Chapter 8 differential calculus of multivariate functions 1