Module 7 - Sequence Diagrams Part 1 Flashcards

1
Q

purpose of a sequence diagram is to define what kind of behaviors ?

A

interactions

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

T/F execution is instance of a defined behavior

A

True

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

7 common elements in a sequence diagram

  1. lifeline
  2. event occurrences
  3. Messages
  4. execution specification
  5. constraint
  6. combined fragment
    7 _________ uses
A

interaction uses

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

Lifeline
is the ____ in the interaction behavior in a sequence diagram

A

participant

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

time travels down the ________

A

lifeline

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

what does the tail of a lifeline represent

A

a relative order of events / passage of time

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

is it legal for an interaction to be owned by a block ?

A

yes

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

a lifeline commonly corresponds to a part property or _________ of a block .

A

reference property

lifeline corresponds to a property of an owning block

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

each lifeline represents a single instance of its type.. never multiple ____

A

instances

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

a selector expression names a specific instance that the lifeline _________

A

represents

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

an instance specification [fc s/n 111] was assigned to be a selector __________

A

selector expression

the instance specification might not be nested in the same location as the interaction or owning block

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

behavior execution start and behavior execution termination is a kind of what ?

A

event occurrence

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

message send and message receive occurrence is a kind of

A

event occurrence

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

six kinds of event occurrences are
1. behavior execution start
2. behavior execution termination
3. Message sent
4. Message received
5 lifeline ______
6 lifeline ______

A

lifeline creation
lifeline destruction

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

where would you find a message send occurrence ?

A

look at the tail end of a message
where the tail end touches the lifeline

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

where would you find a message receive occurrence ?

A

look at the arrow end of a message
where the arrow end touches the lifeline

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

where would you find a lifeline creation event occurrence ?

A

at the arrow head end of a create event occurrence where there would be a new lifeline

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

where would you find a lifeline destruction event occurrence ?

A

end of a lifeline with an x
which means the end of a lifelines instance

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

what is the thin green line sitting on top of the lifeline ?

A

behavior execution

behavior starts executing at the top and bottom of the rectangle the behavior execution comes to an end

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

in an interaction a _________ represents communication between lifelines

21
Q

overview of 7 messages found in a sequence diagram

Asynchronous
synchronous
reply
________
________
lost ( uncommon)
found ( uncommon )

A

create and delete

22
Q

asynchronous messages - solid line with open arrow head which synchronous Messages are solid lines and

A

filled in arrowhead

23
Q

reply and create message look similar

a create message touches the header of the lifeline

reply (shutdown) message touches both

24
Q

similarities of messages

  • all messages appear as an arrow
  • all messages represent communication
  • each message defines two message
A

occurrences

a message sent - tail end
a messaged received - arrow head

25
T/F message implies that data is being passed in a sequence diagram
False
26
asynchronous message = asynchronous invocation of a ______________ the client who send the message doesn't wait for that message to arrive. Doesn't wait for a reply to be sent back when the behavior comes to an end
behavior
27
difference between operation and reception a reception represents a behavior that can only be invoked asynchronously an operation represents a behavior that can only be invoked asynchronously or synchronously
tying back to sequence diagrams .. when you see a asynchronous message it could correspond to a message of the same name or it could correspond to an operation
28
which model element owns that matching operation or reception 'measure Altitude' ... i.e dig around in the lifeline and see that the block owns that lifeline is mans
Mans has a matching reception with that measure Altitude name
29
Which model element owns that matching behavioral feature ( can either be a reception or operation ) the block that types the lifeline is the
owner
30
a reception has to correspond to a signal that is defined somewhere in the _________. The signals arrival is triggered by the matching reception .
model
31
Why is this answer correct ? arrow solid line = asynchronous invocation also it is the receiving end of the message that is the performer of the message
therefore the block that performs the owning lifeline that owns the behavioral feature "Card inserted"
32
asynchronous message filled in line and open arrowhead synchronous message filled in line and
filled in arrowhead
33
Firethruster is a
synch message
34
Review : Synchronous invocation means the client who invokes the behavior waits for it to finish and waits for control / objects to returned to it In the diagram shown FC send the message and then waits for message to execute .. the performer of the behavior is PS then sends _________________
sends a reply message back to FC telling that the invoked behavior is now complete and can continue on the lifeline .
35
language law : each synchronous message must have a corresponding reply message .. its optional to ___________ if the exams asks you to count the message occurrences you would have to remember the hidden reply messages are implicitly there
display the reply message.
36
how many message occurrences are there in the diagram ?
8
37
T/F a operational can be either sync or async invoked ?
true
38
which model element is the owner of fire thruster its not the lifeline itself .. there is nothing nested in the ps lifeline .. look at what its typed by .. in this case
propulsion subsystem block
39
name of reply messages must ____ name : return value being sent to the client
match
40
why is initialize message violating language law ?
the message is being sent in a "blocked period of time" where FC is waiting for a reply message and synch behavior to be completed
41
Execution specification conveys what in a sequence diagram ?
that a lifeline is executing a behavior for some relative period of time . a asynchronous message arrives and a behavior that the fc lifeline is executing.
42
T/F its optional to show a execution specification
True
43
when there is an overlapping execution specification what does that represent ?
represents a behavior that was invoked by measure altitude concurrently one behavior is executing within the context of another behavior conveys to the reader the period of time and multiple behaviors are executing on a lifeline.
44
event occurrences are found only on
lifelines
45
how many event occurrences are on the fc lifeline ?
7 .. message send and message receive are counted
46
how many event occurrences are on the mansdd lifeline ? #1 message receive for create message #2 lifeline create event occurrence #3 message receive for initialize () #4 behavior execution start #5 message send initialize #6 message receive initialize ( not shown) #7 message send calibrate #8 message receive calibrate ( not shown)
#9 behavior execution end ( terminate) #10 send initialize ready
47
how many event occurrences are on the mans lifeline ? #1 Initialize send #2 behavior execution start #3 behavior execution termination #4 initialize send reply
#5 Calibrate send #6 behavior execution start #7 behavior execution termination #8 Calibrate send reply
48
Traces is an ordered sequence of event occurances if there are 20 event occurrences th there are 20! different traces
event occurrences
49
two criteria for a trace to be valid 1) a message must be sent before it can be received 2) higher before lower on the same ____________
lifeline