Prev | Next |
StateMachine Table
A StateMachine table is one of two variants of a StateMachine (the other is the StateMachine diagram). It displays the information of the StateMachine in table form, and is a method of specifying the discrete behavior of a finite state-transition system; that is, what state the StateMachine moves to and the conditions under which the transition takes place.
Access
Context Menu |
Right-click on the background of a StateMachine diagram | Statechart Editor | Table (option) |
StateMachine Table Display
You can display the State transition in the table as one of two different types of relationship:
Type |
Description |
See also |
---|---|---|
State - Trigger |
The rows indicate the current states and the columns indicate trigger events. The cell at the intersection of a row and column identifies the target state in the transition if the trigger occurs, and the condition (or guard) of the transition, or the other way around if you prefer, in a Trigger - State format. |
Example State-Trigger Table |
State - Next State |
The rows and columns both indicate states, and the cell at the intersection of a row and column indicates:
|
Example State-Next State Table |
Select the display format
Step |
Action |
---|---|
1 |
Right-click on the diagram background and select the 'Statechart Editor' option. |
2 |
Select the appropriate display option:
|