ConstraintJS - v0.10.2
    Preparing search index...

    Interface Transition

    A transition between two states of an FSM.

    interface Transition {
        destroy(): void;
        getFrom(): string;
        getFSM(): FSM | undefined;
        getName(): string | undefined;
        getTo(): string;
        id(): number;
        run(...eventArgs: unknown[]): void;
        setEvent(event: CJSEvent): void;
    }
    Index
    • Stops the transition from running and cleans up.

      Returns void

    • The name of the state this transition goes from

      Returns string

    • The FSM this transition belongs to (undefined once it's destroyed)

      Returns FSM | undefined

    • Returns string | undefined

    • The name of the state this transition goes to

      Returns string

    • A unique id

      Returns number

    • Runs the transition, if its FSM is in the transition's from state. Arguments are passed to listeners.

      Parameters

      • ...eventArgs: unknown[]

      Returns void

    • The event (from cjs.on) that triggers this transition

      Parameters

      Returns void