State machine diagram Flashcards
What is a state machine diagram?
A diagram that describes behaviours of an object in term of:
- The state that the object can be in
- The transitions between the states
Describe general syntax for labelling a transition
eventName(parameters)[guard]/actions
What is a composite state?
A state that includes many sub-states
The sub-states often share common transitions and actions
What is a state?
A point in the life-cycle of the object during which the object satisfies certain conditions and can respond to some kind of events
What is the meaning of transition to a composite state?
To start the sub-flow in the composite state
What is the meaning of transition from a composite state?
Can be applied to any of the sub-states in the composite state
Give history state example
Give concurrent states example
-
- States that exist in the composite state at the same time
How to hide the complexity of the state machine diagram?
- Using entry and exit point
- Draw the composite state in details elsewhere