Module 6 - Activity Diagram Part 2 Flashcards

1
Q

what kind of model element is Enter Final Orbit?

A

Call behavior action

the Enter final orbit is calling a behavior that has been defined in the model .

Name : Behavior

there are three kinds of behaviors
1. activity
2. state machine
3. Interaction

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

Which kind of action represents a behavioral decomposition

call behavior action or send signal action ?

A

Call behavior action

It represents a defined behavior in the model

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

rake symbols are displayed when one activity calling another _____

A

activity

why is there a special notation ? the rake symbol is used anywhere that the modeler wants to indicate hierarchical representation

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

This call behavior is synchronous , the action that calls fire thruster waits for it to finish executing then the action that calls it finishes executing then produces a _______

A

control token

notes : call behavior actions can call a behavior sync and asycn , its a checkbox in the specifications in cameo

when the action comes to an end , it produces a control token. It calls the behavior fire thruster to start its execution.

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

what kind of action is this ?

A

send signal action

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

three criteria that must be satisfied ? what does the action require to start executing ?

  1. the activity that owns the action is currently executing
  2. a control token arrives on each of the incoming control flows
  3. a sufficient number of object tokens arrive on ___
A

each of the incoming object flows to meet the min multiplicity of the respective pin

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

key idea of a send signal action

send signal sends an instance of a signal to a target object to asynchronously trigger a behavior in that target object , then that send signal action ______

A

terminates

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

the send signal action asynchronously generates and send a signal once the

A

currentRadiusOrbit token arrives

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

Review of a signal
- signals are elements of definition , it defines something
- a signal defines an asynch event that could occur in time.

A
  • once a signal is defined there could be multiple occurrences/ instances of that signal sent and received
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

a reception would be triggered by an arrival of a matching _____
a reception can only be invoked asynchronously

A

signal

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

what is analogTempDataSampled ?

A

a reception

the signal also matches the receptions name

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

signals and receptions are always ( fire and forget)
receptions are behaviors that can only behave

A

asynchronous

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

a send signal action models the sending of an the name of the ________ being sent

A

name of the signal being sent

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

when a signal arrive
1) can trigger a matching reception to trigger a new behavior
2) can also trigger an accept event ________
3) when a signal instance arrives it can also trigger a transition in a state machine behavior

A

action

an accept event action waits for an event to arrive , then it will execute

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

which is the client ?

which is the target ?

A

send signal action is the client

accept event action is the target

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

what is attitiudeUpdated ?

A

the signal being sent to the target.. it is not the name of the send signal action

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

if a signal has been updated , Cameo updates the send signal action input ____ on the send signal action

A

Pins

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

what is authenticationResponseSent ?

The ______ that has been assigned to a send signal action

A

signal

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

what does this accept event action require to start executing ?

A

when a control token is received

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

What type of action do you use when you want to wait for an event to occur before allowing execution to proceed ?

A

accept event actions

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

why not call it an accept signal action instead of accept event action ?

A

accept event action can wait for any of these events not just signals
1. signal event
2. call event
3. change event
4. time event

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

in the language there are 4 kinds of events defined to model an event occurrence that may trigger an execution of a behavior

  1. signal event
  2. call event
  3. change event
    4.

a event occurs at some discrete moment in time it has no duration

A

time event

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

a event occurs at some discrete moment in time it has no ________
a behavior occurs at some moment in time it may trigger an execution of a behavior

24
Q

what is an event pool ?

A

an event pool - abstract concept its not a model element thats baked in to the rules of the language on how

picture a **bucket **where event occurrences get buffered until a behavior consumes it

each instance of an object owns its own event pool

25
When does the activity look at the owning object event pool to see if that specified event has or has not yet occured ? only when an __________action is executed
accept event each instance owns its private event pool each instance could be executing multiple behaviors each behavior does not have their own event pool
26
when an a control token arrives the accept event action looks at the event pool for
a signal
27
if two activities are competing with each other ( looks at the event pool for a signal ) is an example of a ______ condition
race condition
28
the owning activity looks at the event pool only when a ______________ action is executing . Not when a basic action is executing or any other action is occurring
accept event action
29
if two behaviors are waiting for the same signal in the event pool
its non deterministic . you cant tell which action will consume it
30
Review a wait time action is waiting specifically for a **time event trigger**
an accept event controls the flow of execution waiting for a signal to arrive in an event pool.
30
a wait time action is waiting specifically for a time event trigger not a signal not a call event not a change event
an accept event controls the flow of execution waiting for a signal to arrive in an event pool.
31
two kinds of time event 1. **absolute** begins with the keyword **at** 2. **relative** time event begins with
the keyword **after**
32
what kind of time event is this ?
absolute time event -- begins with at
33
what kind of time event is this ?
relative time event -- begins with after
34
what is this narritive
a continuous periodic behavior a wait time action with incoming edges when the activity begins every 2 mins the fire thruster behavior executes
35
when is a accept event action continuously enabled
no incoming edges on an accept event it remains continuously enabled , it never terminates
36
what kind of node is used to steer the execution of an activity along a path ?
control nodes ----- dashed lines control nodes can direct the path of control tokens as well as object tokens
37
three ways an activity can terminate a token arrives at an activity final node all actions within the activity terminate another behavior can ______terminate the activity
externally
38
if any token arrives at an **activity final node** all the actions
terminate
39
special rule when an accept event action has no incoming action this action never _______ and it becomes continuously enabled
terminates
40
7 kinds of control nodes 1. initial node 2. activity final node 3. flow final 4. decision node 5 merge node 6. fork node 7.
join node
41
what two **controls nodes** are shown here ?
initial node fork node ( multiple edges going out of it )
42
what do all control nodes have in common ? 1. all control nodes are used to define control logic 2. control nodes do not execute 3. the rules for all control nodes are expressed in terms of token ______
flows
43
what does an initial node do ?
marks the start of control flow within the activity tokens traverse edges in zero time. the moment the activity begins
44
when the owning activity begins executing a control token gets places on each initial _________
node. those tokens flow concurrently and independently
45
is an initial node a requirement for an activity diagram ?
No
46
ma does have an incoming edges or control flows , when does this action start executing ?
when the owning activity begins the action ma begins
47
what does an activity final node represent ? termination of the execution of the action when any token ( object flow or control flow ) arrives it terminates an activity
an activity final node can have multiple edges coming into it , Can either be a control node or object node its not a requirement for an activity to have a final node .
48
key ideas of a flow final node 1. marks the end of a single sequence of actions , not the entire activity 2. a flow final node can have a control flow or object flow arriving into it. 3. when 1 token arrives it ends the sequence of the action not the activity itself 4. flow final nodes are not required in the diagram
4. multiple edges can come in into flow final node
49
key idea of decision node 1. a decision node represents an a OR statement . 2. when any token arrives at a decision node , all guard expressions are evaluated . if 1 guard is true then the token is passed on that edge how about if multiple guards are true ?
it becomes non-deterministic , the reader cant know which path the tokens takes
50
key idea of a fork node when a token arrives at a fork node those tokens are duplicated and tokens . tokens flow concurrently and
independently if control flow comes in , control flow comes out if object flow comes in , object flow comes out
51
join node all three of these actions must come to a stop before the action is
is done executing join node serves as a synchronization point
52
scenarios for Join node only control flows come in and only a **single** control token flows out only object flows come in and ** all ** object nodes flow out if a control and object nodes are in a join node ... all the object tokens must arrive and no control tokens are
passed
53
Activity partition displays who does what . An activity partition conveys _______
allocation totally optionally to add this in your diagrams
53
the column flight computer is a an element that you have assigned to that activity
partition .
54
four common elements to add that are structural representations in an activity partition 1. part property 2. block 3. actor 4.
reference property
55
greatest weakness of activity partitions ?
cannot determine which element invokes an action