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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the purpose of sequence diagrams?

A

To show all the main sequence of actions in an interaction

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the main elements in sequence diagrams?

A
  • Actor
  • Objects
  • Messages
  • Lifeline
  • Activation boxes
  • Fragments
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are the four kinds of messages in UML?

A
  • Synchronous message
  • Asynchronous message
  • Creation message
  • Reply message
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly