- Output is produced by
state machine
depends on input events fed tostate machine
&& theactive state
of thestate machine
. - Output (also known as
input action
) is produced duringtransition
; not inside the state itself. - Output is represented along each input separated by a
/
on transition arrow.
- Output is determined ONLY by the
active state
of thestate machine
and NOT by any input events. - Output (also known as
entry action
) is produced inside the state itself; not duringtransition
. - Output is represented inside state.
- Nested Switch Approach.
- State Table Approach.
- State Handler Approach.