mwg API
    Preparing search index...

    Interface Scenario<State, Command, Event, Random>

    interface Scenario<State, Command, Event, Random> {
        commands: readonly Command[];
        random: Random;
        state: State;
        status?: SimulationStatus;
        step: SimulationRule<State, Command, Event, Random>;
    }

    Type Parameters

    • State
    • Command
    • Event
    • Random
    Index
    commands: readonly Command[]

    Finite command sequence; automatic work inside a rule needs its own budget.

    random: Random
    state: State

    Use finished when resuming an already terminal snapshot.