Designing a sequence diagram for an auction system

左心房为你撑大大i 提交于 2019-12-04 21:58:10

ad 3) As for the loop/alt in your diagram then their semantics is not clear, mainly because they don't nest properly (see http://www.uml-diagrams.org/sequence-diagrams-combined-fragment.html for examples)

ad 2) As for the redundancy you can use the UML sequence diagram - interaction use as in

ad 1, ad 2) Overall to show the branching while avoiding redundancy instead of sticking to the UML sequence diagram you may use features from the UML activity diagram, as shown in example of UML interaction diagram

...Interaction overview diagrams provide overview of the flow of control where nodes of the flow are interactions or interaction uses. UML 2.4.1 Specification in some places relegates these diagrams as interaction diagrams while in other places interaction overview diagrams are referred to as specialization of activity diagrams...

Actually according to UML 2.4 Diagrams Overview

..UML specification does not preclude mixing of different kinds of diagrams, e.g. to combine structural and behavioral elements to show a state machine nested inside a use case. Consequently, the boundaries between the various kinds of diagrams are not strictly enforced. At the same time, some UML Tools do restrict set of available graphical elements which could be used when working on specific type of diagram..


Disclaimer: original pictures (without the green and purple rectangles) come from Kirill Fakhroutdinov's online book www.uml-diagrams.org

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