System Sequence Diagrams
System Sequence Diagrams
DIAGRAMS
Based on Craig Larman, Chapter 10
and Anuradha Dharanis notes
Dynamic behaviors
Class diagrams represent static relationships. Why?
What about modeling dynamic behavior?
Interaction diagrams model how groups of object
Sequence diagrams
Vertical line is called an objects lifeline
Represents an objects life during interaction
Object deletion denoted by X, ending a lifeline
Horizontal arrow is a message between two objects
Order of messages sequences top to bottom
Messages labeled with message name
Optionally arguments and control information
the SSD?
New terms used in SSDs may need explanation,
especially if they are not derived from use cases
A glossary is less formal, easier to maintain and more
intuitive to discuss with external parties such as
customers
Collaboration diagrams
Objects are rectangular icons
e.g., Order Entry Window, Order, etc.
Messages are arrows between icons
e.g., prepare()
Numbers on messages indicate sequence
Also spatial layout helps show flow
Which do you prefer: sequence or collaboration diagrams?
Fowler now admits he doesnt use collaboration diagrams
Interaction diagrams show flow clearly,
but are awkward when modeling alternatives
UML notation for control logic has changed in UML 2