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

A

duration

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
Q

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

A

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
Q

when an a control token arrives the accept event action looks at the event pool for

A

a signal

27
Q

if two activities are competing with each other ( looks at the event pool for a signal ) is an example of a ______ condition

A

race condition

28
Q

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

A

accept event action

29
Q

if two behaviors are waiting for the same signal in the event pool

A

its non deterministic . you cant tell which action will consume it

30
Q

Review
a wait time action is waiting specifically for a time event trigger

A

an accept event controls the flow of execution waiting for a signal to arrive in an event pool.

30
Q

a wait time action is waiting specifically for a time event trigger
not a signal
not a call event
not a change event

A

an accept event controls the flow of execution waiting for a signal to arrive in an event pool.

31
Q

two kinds of time event
1. absolute begins with the keyword at
2. relative time event begins with

A

the keyword after

32
Q

what kind of time event is this ?

A

absolute time event – begins with at

33
Q

what kind of time event is this ?

A

relative time event – begins with after

34
Q

what is this narritive

A

a continuous periodic behavior
a wait time action with incoming edges
when the activity begins every 2 mins the fire thruster behavior executes

35
Q

when is a accept event action continuously enabled

A

no incoming edges on an accept event it remains continuously enabled , it never terminates

36
Q

what kind of node is used to steer the execution of an activity along a path ?

A

control nodes —– dashed lines
control nodes can direct the path of control tokens as well as object tokens

37
Q

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

A

externally

38
Q

if any token arrives at an activity final node all the actions

A

terminate

39
Q

special rule

when an accept event action has no incoming action this action never _______ and it becomes continuously enabled

A

terminates

40
Q

7 kinds of control nodes

  1. initial node
  2. activity final node
  3. flow final
  4. decision node
    5 merge node
  5. fork node
    7.
A

join node

41
Q

what two controls nodes are shown here ?

A

initial node
fork node ( multiple edges going out of it )

42
Q

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 ______
A

flows

43
Q

what does an initial node do ?

A

marks the start of control flow within the activity
tokens traverse edges in zero time. the moment the activity begins

44
Q

when the owning activity begins executing a control token gets places on each initial _________

A

node. those tokens flow concurrently and independently

45
Q

is an initial node a requirement for an activity diagram ?

A

No

46
Q

ma does have an incoming edges or control flows , when does this action start executing ?

A

when the owning activity begins the action ma begins

47
Q

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

A

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
Q

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

A
  1. multiple edges can come in into flow final node
49
Q

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 ?

A

it becomes non-deterministic , the reader cant know which path the tokens takes

50
Q

key idea of a fork node
when a token arrives at a fork node those tokens are duplicated and tokens .
tokens flow concurrently and

A

independently

if control flow comes in , control flow comes out
if object flow comes in , object flow comes out

51
Q

join node
all three of these actions must come to a stop before the action is

A

is done executing

join node serves as a synchronization point

52
Q

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

A

passed

53
Q

Activity partition
displays who does what . An activity partition conveys _______

A

allocation

totally optionally to add this in your diagrams

53
Q

the column flight computer is a an element that you have assigned to that activity

A

partition .

54
Q

four common elements to add that are structural representations in an activity partition
1. part property
2. block
3. actor
4.

A

reference property

55
Q

greatest weakness of activity partitions ?

A

cannot determine which element invokes an action