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

    Type Alias JssmTransition<StateType, DataType>

    A single directed transition (edge) within a state machine. Captures both the topology (from / to), the FSL semantics (kind, forced_only, main_path), and any optional metadata such as a per-edge name, an action label, a guard check, a transition probability for stochastic models, and an after_time for timed transitions.

    type JssmTransition<StateType, DataType> = {
        action?: StateType;
        after_time?: number;
        check?: JssmTransitionPermitterMaybeArray<DataType>;
        forced_only: boolean;
        from: StateType;
        kind: JssmArrowKind;
        main_path: boolean;
        name?: StateType;
        probability?: number;
        se?: JssmCompileSe<StateType, DataType>;
        to: StateType;
    }

    Type Parameters

    • StateType

      The state-name type (usually string).

    • DataType

      The machine's data payload type (mDT).

    Index
    action?: StateType
    after_time?: number
    forced_only: boolean
    from: StateType
    main_path: boolean
    name?: StateType
    probability?: number
    se?: JssmCompileSe<StateType, DataType>