how to represent “sub-sequences” in uml sequence diagrams?

拟墨画扇 提交于 2019-12-12 02:09:09

问题


In activity diagrams, you can have a top level activity diagram that contains a sub-activity diagram. This is useful where the sub-activity contains lots of details that you don't want to show in the top level activity diagram.

Is a similar concept available for sequence diagrams?

Basically, I have a sequence diagram where I want to hide some of the details in the diagram by moving those details to another sequence diagram.


回答1:


This can be achieved by using a <<ref>> fragment in your sequence diagram, that references a sub sequence diagram.

See for example this picture : http://www.ibm.com/developerworks/rational/library/content/RationalEdge/feb04/3101_figure11.jpg where Balance Lookup and Debit Account are references to other sequence diageams that may in turn contain plenty of lifelines and calls.




回答2:


Ah, it looks like the solution may be to use an Interaction Overview Diagram.



来源:https://stackoverflow.com/questions/17806853/how-to-represent-sub-sequences-in-uml-sequence-diagrams

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!