当前位置:网站首页>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:循环,片段可多次执行。
边栏推荐
- Deep understanding of array related problems in C language
- IP and long integer interchange
- Parameter keywords final, flags, internal, mapping keywords internal
- Evolution of customer service hotline of dewu
- requires php ~7.1 -> your PHP version (7.0.18) does not satisfy that requirement
- Regular expression integer positive integer some basic expressions
- Parsing of XML files
- Toraw and markraw
- Laravel5 call to undefined function openssl cipher iv length() 报错 PHP7开启OpenSSL扩展失败
- 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
猜你喜欢
为租客提供帮助
2022-7-6 初学redis(一)在 Linux 下下载安装并运行 redis
Social responsibility · value co creation, Zhongguancun network security and Information Industry Alliance dialogue, wechat entrepreneur Haitai Fangyuan, chairman Mr. Jiang Haizhou
Excerpt from "misogyny: female disgust in Japan"
566. Reshaping the matrix
2022-7-6 Leetcode 977. Square of ordered array
最佳实践 | 用腾讯云AI意愿核身为电话合规保驾护航
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
Co create a collaborative ecosystem of software and hardware: the "Joint submission" of graphcore IPU and Baidu PaddlePaddle appeared in mlperf
Use day JS let time (displayed as minutes, hours, days, months, and so on)
随机推荐
[AI practice] Application xgboost Xgbregressor builds air quality prediction model (II)
高等数学---第八章多元函数微分学1
[high frequency interview questions] difficulty 2.5/5, simple combination of DFS trie template level application questions
Is the spare money in your hand better to fry stocks or buy financial products?
postgresql array类型,每一项拼接
交付效率提升52倍,运营效率提升10倍,看《金融云原生技术实践案例汇编》(附下载)
Dry goods | summarize the linkage use of those vulnerability tools
供应链供需预估-[时间序列]
得物客服热线的演进之路
作战图鉴:12大场景详述容器安全建设要求
Laravel form builder uses
Move base parameter analysis and experience summary
[daily training -- Tencent select 50] 231 Power of 2
【日常训练】648. 单词替换
2022-7-6 sigurg is used to receive external data. I don't know why it can't be printed out
Environment configuration
THINKPHP框架的优秀开源系统推荐
Parsing of XML files
Take you to master the three-tier architecture (recommended Collection)
社会责任·价值共创,中关村网络安全与信息化产业联盟对话网信企业家海泰方圆董事长姜海舟先生