UML 序列图中的垂直矩形表示什么? [英] What do the vertical rectangles convey in a UML sequence diagram?

查看:52
本文介绍了UML 序列图中的垂直矩形表示什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

UML 序列图中的垂直矩形表示什么?

What do the vertical rectangles signify in a UML sequence diagram?

例如我想知道绿色箭头指向的矩形的含义.这些矩形的高度有什么意义吗?

For example I want to know the meaning of the rectangle pointed to by the green arrow. Do the height of these rectangles mean anything?

推荐答案

垂直矩形表示执行规范.

  • 执行规范是对象交互的一部分,它表示对象在执行某些活动或只是等待其他对象的回复时的生命周期.通过一些活动,我的意思是发送消息等.但是,矩形的长度无关紧要.你可以也可以不画这些,因为它们不是强制性的.
    下面给出了带有图表的示例:
  • Execution specification is a part of object's interaction which represents period of object's lifetime when it is either doing some activity or simply waiting for the reply from other object. By some activity I mean sending messages etc. Length of the rectangle however, are irrelevant. You may or may not draw these as they are not compulsory.
    The example with a diagram is given below:

有关详细信息,可以查看以下链接.

For details the following link can be looked upon.

这篇关于UML 序列图中的垂直矩形表示什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆