Selecting the Right Diagram
The dynamic nature of the application domain can be viewed via the four diagrams just described: the two interaction diagrams (sequence and collaboration), the state diagram, and the activity diagram. When should you use which one?
Sequence diagram: Use this diagram for most dynamic modeling because it pertains to the use-case pathways. The big payback here is the creation of the operational signatures for the classes in the application.
Collaboration diagram: Use this diagram when the application includes complex branching dialogs that aren't rendered well in the sequence diagram. (I rarely produce collaboration diagrams, instead opting for the more familiar and more orderly sequence diagram.) Collaboration diagrams ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access