Interface InputState

Defines a type of state that can receive input events.

interface InputState {
    fsm: FSM;
    name: string;
    acceptVisitor(visitor): void;
    checkStartingState(): void;
    enter(): void;
    uninstall(): void;
}

Hierarchy

Implemented by

Properties

fsm: FSM

The FSM that contains the state.

name: string

The name of the state.

Methods

  • Checks whether the starting state of the fsm is this state. In this case, the fsm is notified about the starting of the FSM.

    Returns void

    Throws

    CancelFSMException

  • Actions done while entering this state.

    Returns void

    Throws

    CancelFSMException If entering the state leads to a cancelling of the FSM execution.

  • Uninstall (ie flushes) the state. Useful to clear data. The state must not be used after that.

    Returns void

Generated using TypeDoc