JSSM, a JavaScript state machine - the FSM for FSL
    Preparing search index...

    Type Alias JssmMachineInternalState<DataType>

    The full internal bookkeeping snapshot of a jssm!Machine, exposed for advanced introspection. Contains the current state, the state map, the edge map and reverse-action map, and the original edge list. The internal_state_impl_version field exists so that consumers can detect shape changes if this representation evolves.

    type JssmMachineInternalState<DataType> = {
        actions: Map<StateType, Map<StateType, number>>;
        edge_map: Map<StateType, Map<StateType, number>>;
        edges: JssmTransition<StateType, DataType>[];
        internal_state_impl_version: 1;
        named_transitions: Map<StateType, number>;
        reverse_actions: Map<StateType, Map<StateType, number>>;
        state: StateType;
        states: Map<StateType, JssmGenericState>;
    }

    Type Parameters

    • DataType
    Index
    actions: Map<StateType, Map<StateType, number>>
    edge_map: Map<StateType, Map<StateType, number>>
    internal_state_impl_version: 1
    named_transitions: Map<StateType, number>
    reverse_actions: Map<StateType, Map<StateType, number>>
    state: StateType