Class StateMachineInstructions<State>

Set of instructions for a state machine. The set keeps all methods for dedicated actions defined for the states and all dedicated methods defined for transitions to other states, as well as default methods. Instructions exist independently from StateMachines. A statemachine instance is passed as parameter to the instruction set. Multiple statemachine-instances can thus use the same instruction set and different instruction sets could operate on the same statemachine.

Type Parameters

  • State

Hierarchy

  • Map<State, StateMachineMapStateToMethods<State>>
    • StateMachineInstructions

Constructors

  • Type Parameters

    • State

    Parameters

    • Optional entries: readonly (readonly [State, StateMachineMapStateToMethods<State>])[]

    Returns StateMachineInstructions<State>

  • Type Parameters

    • State

    Parameters

    • Optional iterable: Iterable<readonly [State, StateMachineMapStateToMethods<State>]>

    Returns StateMachineInstructions<State>

Methods