Sequence diagrams Flashcards
1
Q
What is interaction diagram?
A
A diagram that describes an interaction among a set of objects to produce some useful behaviours
2
Q
The difference between sequence diagrams and collaboration diagrams?
A
Both are interaction diagrams.
- Sequence diagram: emphasizes on time ordering of messages
- Collaboration diagram: emphasizes on collaboration relationships among the collaborating objects
3
Q
What is the purpose of sequence diagrams?
A
To show all the main sequence of actions in an interaction
4
Q
What are the main elements in sequence diagrams?
A
- Actor
- Objects
- Messages
- Lifeline
- Activation boxes
- Fragments
5
Q
What are the four kinds of messages in UML?
A
- Synchronous message
- Asynchronous message
- Creation message
- Reply message
6
Q
What is the difference between synchronous and asynchronous message?
A
- Synchronous message: the sender has to wait for the resulting action to be completed by the receiver before taking the next action
- Asynchronous message: the sender doesn’t have to wait, can take the next action immediately, if required