State Machine Definition
class StateMachineDefinition<S, E, C, A, R>(val defaultInitialState: S?, deriveInitialState: StateQuery<C, S>?, deriveInitialMap: StateMapQuery<C, S>?, val defaultStateMap: StateMapDefinition<S, E, C, A, R>, val namedStateMaps: Map<String, StateMapDefinition<S, E, C, A, R>>)
This class represents an immutable definition of a state machine.
Author
Corneil du Plessis
Properties
Functions
Link copied to clipboard
This function will create a state machine instance and set it to the initial state.
This function will create a state machine instance and set it to the state to a previously externalised state.
Link copied to clipboard
This function will provide a list of possible events given a specific state. The actual events may fail because of guard conditions or named state maps and the default state map behaviour being different.