序列与通讯图(UML) [英] Difference between Sequence & Communication Diagram (UML)

查看:90
本文介绍了序列与通讯图(UML)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

UML中的时序图和通讯(协作)图有什么区别?

What is the difference between sequence diagrams and communication (collaboration) diagrams in UML?

推荐答案

引用维基百科:

通信图与序列图显示了很多相同的信息,但是由于信息的呈现方式,其中一些比在另一幅图中更容易找到强>.通讯图显示了每个元素之间更好地交互的元素,而顺序图则显示了交互发生顺序的顺序.

Communication diagrams show a lot of the same information as sequence diagrams, but because of how the information is presented, some of it is easier to find in one diagram than the other. Communication diagrams show which elements each one interacts with better, but sequence diagrams show the order in which the interactions take place more clearly.

本质上,协作图强调哪些对象彼此交互,而顺序图则更强调实际顺序.但是它们实际上是等效的,除了在序列图中可见的更多细节外,例如何时/由谁创建/销毁对象.

In essence, collaboration diagram emphasizes on which objects interacts with each other while sequence diagrams put more emphasis on the actual order. But they are actually equivalent, in exception to a little more details visible in sequence diagrams, like when and by whom the object was created/destroyed.

这篇关于序列与通讯图(UML)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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