Module 5 - Activity Diagrams Part 1 Flashcards

1
Q

Three kinds of behaviors in Sysml are
1. activity
2. state machines
3. __________

A

Interaction

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

Three kinds of behavioral diagrams in sysml are
1. activity diagram
2.
3. state machine diagram

A

sequence diagram

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

T/F Activity and activity diagrams are synonyms

A

False
activity - behavior / element of definition
activity diagram - behavioral diagrams

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

T/F Is it legal to create multiple views of a model element ?

A

True
a block can have 1 or more activity nested under it

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

what is the namespace of this diagram ?

A

Execute Hohmann transfer is an activity which contains all the elements

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

two top level categories that an activity can own
1. Nodes
2 .

A

Edges

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

Three kinds of nodes that appear in an activity diagram
1. actions node ( oval actions )
2.
3. control node ( fork node , decision node , initial node ,merge node , activity final , flow final )

A

object node ( square actions)

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

Two kinds of edges that appear in an activity diagram
1. object flow ( solid arrows)
2.

A

control flow ( dashed arrows)

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

two kinds of tokens that can flow through an activity

  1. object tokens
    2.
A

control tokens

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

object flows carry object ____
control flows carry control ____

A

tokens

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

what does an object token represent ( solid arrow) ?

A

an instance of an object of going from one action going into another action

object - matter , energy or data

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

object node is typed by
1. value type
2. signal
3.

A

block
object token can represent an instance of a block , value type or signal

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

what is the name of the object token going into the VC action ?

A

transfer command

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

what is the name of the input object token of “Generate response with invalid status” action ?

A

Boolean
when “generate command action is executed it will produce a command response

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

True / False
An object token will be an instance of that type of Command response

A

True

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

each object token that traverses an object flow represents an instance of a type

  1. value type
  2. block
    3
A

signal

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

What does a control token represent ? ( dashed arrow) at execution time

A

it represents one action must come to an end in order for one action to start

a control token does not represent an object of any kind. Therefore its not typed in a node

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

How many tokens will this Generate response with “Valid Command” Status action produce - look at output pins

A

two

1 command response and 1 control token

19
Q

What kind of action is this ?

A

opaque action or basic action

20
Q

An activity contains a set of ____________ contained within it

A

action

21
Q

what is the name of the execution ( behavior) being called ?
what is the action name ?

A

Action name : enter transfer orbit

Execution (behavior) name : Fire Thrusters

22
Q

When does an action start

  1. the activity that owns the action is currently
A

executing

23
Q

When does an action start

  1. A control token arrives on each of the incoming control
A

flows

24
Q

When does an action start

  1. A suffient number of object tokens arrive on each of the incoming object flows to satisfy lower
A

mulitplicity

25
Q

three kinds of object nodes

  1. basic
    2.
    3 .activity parameter node
A

pin

note : pins and activity parameters are optional to add in the diagram.

26
Q

Basic object node appears between two

A

actions

27
Q

activity parameter nodes appears on the _____ of the FRAME

A

boarders

Note : activity parameter represents input and output of the activity as a whole.

28
Q

T/F

Object nodes act like a buffer to hold the object tokens
All object nodes are elements of usage

A

True

the object token stay in the object node till an action downstream requires them to move to another action

29
Q

How would you interpret this model ?
each time the action ma comes to an end it produces

A

1 km object token

30
Q

what narrative is shown in this activity diagram ?
each time action ma finishes executing it will produce 1 object token of type km
which travels thru an object flow arriving on another action .. then the following action

A

action requires 1 token of type km a new execution of the action will start

31
Q

each time action ma finishes it will produce anywhere from 0 to 10 token flows as a batch

what will happen if 2 tokens are produced ? how many executions will it this will result in two executions of the __________ action being executed because the min token required is 1 km token

A

currentOrbitRadius

32
Q

action ma can execute and produce 0 tokens
0 tokens means that the pin is

A

optional

33
Q

what does the multiplicity convey on the input pin ?

A

the action requires a min of 2 tokens to be consumed by the execution
if a batch of 4 tokens arrive ,that starts 1 execution of the action

34
Q

nonstreaming behavior refers

A

to a token that emerges when an action finished execution , every time the lower bound is satisfied a execution starts the upstream action must finish before the downstream action

35
Q

streaming behavior on a pin refers to

A

the upstream action doesn’t have to finish executing in order to have a token appear on the pin

36
Q

streaming input pin will be used by the current action , they would not wait for the action to

A

finish

37
Q

difference between what types a control token and object token

block , value or signal types a object token

what types a control token ?

A

nothing

38
Q

For each input pin all the ( upper or lower ) multiplicity must be satisfied for an action to start ?

A

lower multiplicity

39
Q

when will action ma will start executing when the control tokens arrives? object tokens arrives ?

A

the control token arrives.

it does not need an object token because its multiplicity is 0

40
Q

when will action vc begin executing ?

A

it has an incoming control flow and an input pin ( default multiplicity is 1)

the action vc needs 1 object token AND a control token in order to start a new execution

41
Q

when will action rs start execution ?

A

It has an input pin ( 0 multiplicity )

has no input control tokens

the action rs will start executing the moment the owning activity starts executing

42
Q

a1 has no incoming edges , control flows or any input ..

when will action a1 start executing

A

a1 doesn’t need any control token

a1 doesn’t have any input pins

action a1 will begin executing once the owning action is executing

43
Q

common mistake modelers make is modeling a loop wrong ..

what is the design error ?

A

the orbitRadiusUpdated needs a control token to arrive from the previous action and the action that comes after the decision object node

deadlock - an action that will wait on multiple tokens that will arrive

44
Q

what does the streaming output pin on action 2 convey ?
it has to complete execution before

A

it produces a token going to the next action