DslStateMapDefaultEventHandler

This handler will be active inside the default section of the statemachine.

Author

Corneil du Plessis

Constructors

Link copied to clipboard
constructor(fsm: StateMapBuilder<S, E, C, A, R>)

Functions

Link copied to clipboard
fun action(action: DefaultStateAction<C, S, E, A, R>)

Define a default action that will be applied when no other transitions are matched.

Link copied to clipboard

Defines an action to perform before a change in the currentState of the FSM

Link copied to clipboard
fun onEvent(event: E, action: SyncStateAction<C, A, R>?): DslStateMapDefaultEventHandler<S, E, C, A, R>

Defines a default internal transition for a specific event with no change in state.

Defines a default transition when an on is received to a specific state.

Link copied to clipboard

Defines an action to be performed after the currentState was changed.