Module 8 - Sequence Diagram Part 2 Flashcards

1
Q

Constraint in sequence diagrams

1) all constraints appear in _________
2) all constraints constraint 1 and at most 2 event occurrences on lifelines
3) all constraints specify assertions that must be true for a execution to be valid

A

curly braces

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

time constraints are anchored to a single event occurrence that points to the event occurrence that is being constraint.

This example shows the time constraint is anchored to the ___________________

A

message sent part of fireThruster()

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

time constraint conveys a specific time or a window of time for a single ____occurance to occur … never multiple event occurrences .

A

event

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

what does this time constraint “executionTime” mean ?

Note : the time constraint is placed in the sending portion of the Firetrhusters message

A

it is conveying that Firethruster message is sent at time = executionTime.

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

what design decision is being conveyed with this time constraint ?

A

this conveys a window of time for that FireThruster message to be sent between 2am and 2:05 am GMT.

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

a time constraint does not convey the idea of _______

A

waiting

. it does not wait for a time to occur like an accept event actions where a ________ arrivessignal event arrives.

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

Duration constraint conveys the valid duration of time between a pair of _________ occurrences. the design is conveying that the firethruster message should execute anywhere 2min to 5 min long

A

event

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

a state invarient specifies a bool condition that must be true the moment when the contrained event occurs in order for the ____ to be valid

A

trace

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

the state invariant focuses on a single event occurrence being ___________

A

constrained.

current orbit radius = ordered orbit radius when true

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

4 common kinds of combined fragments in a sequence diagram

  1. opt - optional
  2. alt - alternative
  3. loop
  4. par - parallel ( concurrency )
A

what do they have in common ?
1. they represent
2. they have a rectangle in a seq diagram
3. they have an interaction operator ( keyword like opt , par … )
4. they have at least one interaction operand
5. each interaction operand can optionally have a guard.

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

what is a combined fragment in a seq diagram ?

A

a mechanism that allows you to add control logic to an interaction

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

the opt ( optional ) combined fragment rep

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

guard expression placement in the interaction operand

you should place the guard on top of the lifeline that has the first event occurrence on that lifeline.

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

language law: opt can only have one region in the combined fragment
its all or nothing decision logic.

when does the guard expression get evaluation in an opt combined fragment ?

A

the last event occurrence get executed

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

alt represents decisions logic with multiple outcomes. it must have multiple interaction operands to follow model law. The guard that is true represents which operation fires.

A

the moment the last event occurs right before the fc lifeline received the sensorStatus message in this case all the guards get evaluated

the guard that is true evaluates .

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

remember reply messages are ___________ to show on the diagram but they count towards counting event occurrences in the test.

A

optional

17
Q

loop combined fraqment .. loop means number of occurances/ interaction.

language law - loop can only have 1 interaction operand . guards are optional design decision.

A
18
Q

loop(min,max)
loop(0, *) this conveys to the reader the min and max number of loops that the operand will perform. The loop will not end for an upper bound because its * .. it will only end if the guard is false.

loop(10) what does this design decision convey ?

A

exactly 10 interactions

its also legal to leave it as loop .. without any min or max values.

19
Q

loop(2,10) what does this information convey ?

the min number (2) is guaranteed to run two times. regardless of the guard expression . when the guard is true the it will run until 10 .

at least 2 and at most 10.

A
20
Q

how many times will the orbitRadiusUpdated message be sent in this loop ?

A

cannot be determined. it can be somewhere between 2-10 because of the guard .. but if the guard is removed how many times will the orbitRadiusUpdated message be sent?? 10 is the answer .

21
Q

how many times will the orbitRadiusUpdated message be sent in this loop ?

A

cannot be determined. it can be somewhere between 2-10 because of the guard .. but if the guard is removed how many times will the orbitRadiusUpdated message be sent?? 10 is the answer .

22
Q

par combined fragment represents concurrent sets of event occurances . a par must have ______ regions . the order of event occurances are non determinisitic . any order would be deemed valid .

A

multiple .

23
Q

the fc lifeline must send an initialize message _____ times before it can start receiving updates from any of the accelerometers . once all three are initialized the fc lifeline can recieve the updateYaw , updateRoll and updatePitch

A

3

24
Q

interaction use represents behavior _______ . it represents a use of another interaction in your model. it makes interactions reusable

A

decomposition

24
Q

interaction use is only allow to represent an

A

interaction

25
Q

___________are represented by stars on this diagram.

A

actual gates

26
Q

__________are represented by stars on this diagram.

A

formal gates