Sequence Diagrams Flashcards

(20 cards)

1
Q

What is a sequence diagram?

A

A picture showing how objects interact over time, with messages in order.

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

What are the two axes in a sequence diagram?

A

Horizontal: objects (lifelines). Vertical: time (top to bottom).

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

What is a lifeline?

A

A dashed line showing an object’s existence during the interaction.

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

How are objects shown in sequence diagrams?

A

As rectangles at the top of lifelines (e.g., ‘user:Customer’).

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

What is a synchronous message?

A

A call where the sender waits for a reply (solid arrow).

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

What is an asynchronous message?

A

A call where the sender doesn’t wait (open arrow).

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

What shows object creation?

A

A dashed arrow with the keyword ‘new’.

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

How is object destruction shown?

A

A big X at the end of the lifeline.

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

What is a ‘found message’?

A

A message from an unknown sender (arrow from edge).

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

What is a ‘lost message’?

A

A message with no receiver (arrow to edge).

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

What does ‘alt’ fragment do?

A

Shows alternatives (like ‘if/else’). Guards decide the path.

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

What does ‘opt’ fragment do?

A

Shows an optional step (like ‘if’ without ‘else’).

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

What does ‘loop’ fragment do?

A

Repeats steps (e.g., ‘loop(1,5)’ = 1 to 5 times).

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

What is a ‘break’ fragment?

A

Exits early if a condition is met (like ‘break’ in loops).

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

What does ‘par’ fragment mean?

A

Parallel actions (order doesn’t matter).

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

What does ‘strict’ fragment mean?

A

Steps must happen in exact order (no mixing).

17
Q

What is a guard?

A

A condition in [brackets] that decides if a step runs (e.g., ‘[valid]’).

18
Q

How do you show time-consuming messages?

A

A slanted arrow (takes time to deliver).

19
Q

What is a ‘seq’ fragment?

A

Default order: same-object steps stay ordered; others can mix.

20
Q

What are interaction partners?

A

Objects or roles that send/receive messages (e.g., ‘User’, ‘Server’).