Module 9 - State Machine Part 1 Flashcards
state machines define the behavior of a system . a state machine diagram provides a view of a state machine behavior.
three kinds of behaviors are
state machine shows up on a STM
activity shows up ACT
interaction shows up SD
weakness of activity diagram ?
cannot answer which ____ invokes that action
structure
swimlane tells reader which structure performs the action
1 not an intuitive diagram
weakness of a sequence diagram ?
#2 harder for people to understand who are not familiar with sysml
#3
3 cannot model an idea to wait before an event is occuring
weakness of a state machine diagram
its the most specific behavior .. it defines a set of states and transitions between states as events occurs . BUT not every object falls in line with a state machine diagram
an owned behavior is a behavior under a block within your model.
a single block can have multiple behaviors nested
under it
classifier behavior
classifier behavior = owned behavior . the attitude control state machine is nested under the block
a classifier behavior is a special role that the behavior plays in the owning block
the behavior that you select to be the classifier behavior for a given block is the behavior that will begin executing ___________ when the block is instantiated
automatically
two top level categories of elements that a state machine can own
Vertices
Transitions
which are vertices in this diagram ?
orbit insertions
knowledge check
two kinds of vertices
1) states
2) pseudo states
and two kinds of transitions
1) external transitions
2)
internal transitions
when is an internal tranistion
three common kinds of states
1) simple state
2)
3) final state
4) submachine state ( not covered in the course) but its how you represent a nested state machine inside a state machine
composite state
two common pseudo states
1) junction pseudo state
2) ______ pseudo state
initial
state machines can have multiple _____ represented by dashed lines
regions. Each region must have at least one active state in a region.
a state machine may transition from one event to another one when an event occurs.
what are the names of the events in this state machine ? when an event occurs a transition may fire resulting in a change in a state.
guard must be true when the event occurs in order for an transition to fire.
startup Event
Shutdown Event
focus on the may if a sensor is in the offline state and a startup event occurs . might happen that powerAvailable == False.