on Event
Defines a transition when the state is the currentState and the on is received. The state is changed to the targetState.
Parameters
A Pair with the first being the on and the second being the targetState.
The action will be performed
Defines a guarded transition. Where the transition will only be used if the guarded expression is met
Parameters
The event and targetState the defines the transition
The guard expression must be met before the transition is considered.
The optional action that may be executed
Defines a transition where an on causes an action but doesn't change the state.
Parameters
The event and targetState the defines the transition
The optional action that may be executed
Defines a guarded transition where an on causes an action but doesn't change the state and will only be used if the guard expression is met. This will be an internal transition with no change in state.
Parameters
The event that will trigger the transition.
The guard expression must be met before the transition is considered.
The optional action that may be executed