transition
This function defines a transition from the currentState equal to startState to the targetState when event is received and the guard expression is met. The action is executed after any exit action and before entry actions.
Parameters
The transition will be considered when currentState matches stateState
The event will trigger the consideration of this transition
The transition will change currentState to targetState after executing the option action
The guard expression will have to be met to consider the transition
The optional action will be executed when the transition occurs.
This function defines a transition that doesn't change the state also know as an internal transition. The transition will only occur if the guard expression is met.
Parameters
The transition will be considered when currentState matches stateState
The event will trigger the consideration of this transition
The guard expression will have to be met to consider the transition
The optional action will be executed when the transition occurs.
This function defines a transition that will be triggered when the currentState is the same as the startState and on is received. The FSM currentState will change to the targetState after the action was executed. Entry and Exit actions will also be performed.
Parameters
transition applies when FSM currentState is the same as stateState.
transition applies when on received.
FSM will transition to targetState.
The actions will be invoked
This function defines a transition that doesn't change the state of the state machine when the currentState is startState and the on is received and after the action was performed. No entry or exit actions performed.
Parameters
transition applies when when FSM currentState is the same as stateState
transition applies when on received
actions will be invoked