DslStateMapHandler

class DslStateMapHandler<S, E, C, A, R>(fsm: StateMapBuilder<S, E, C, A, R>)

This handler will be active inside the top level of the stateMachine definition.

Author

Corneil du Plessis

Constructors

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

Functions

Link copied to clipboard

Defines a section for default behaviour for the state machine.

Link copied to clipboard
fun whenState(currentState: S, handler: DslStateMapEventHandler<S, E, C, A, R>.() -> Unit): DslStateMapEventHandler<S, E, C, A, R>

Defines a section for a specific state.