问题
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