Essentials of Interaction Diagrams Flashcards
UML Interaction Diagram Examples
Sequence Diagrams
Collaboration Diagrams
UML Interaction Diagrams
Allow us to record how objects interact to perform a task at hand.
Collaborations
The objects which interact to perform some task, showing objects, links and actors.
Sequence Diagrams
Represents objects and actors which take part in a collaboration.
Essentially shows a sequence of actions.
Sub-collaborations
Subset of the object, together with the links connecting those objects.
Dynamic Representations
Collaboration -> {new} and {destroyed} objects
Sequence -> represented partway down the page.
Sequence v Collaboration
Sequence diagrams allow passage of time.
Activity Diagrams
Describe how activities are coordinated (like how an operation could be implemented).
Can record activities that happen in parallel or sequentially.
Another name for them can be state diagrams.
Activity Diagram Features
Activity -> record like the notation for a state
Activity edge -> an arrow which indicates where to move in the diagram after an activity finishes.
Synchro bar -> thick horizontal bar describing the coordination of activities which all must be complemented before moving on.
Decision diamond -> show decisions
Stop/start markers -> used in same way as state diagram (initial/final states)