JME - Application Documentation
    Preparing search index...

    Everything the stats collector needs to read/mutate for one frame.

    interface StatsContext {
        completed: number;
        elapsedTime: number;
        getDistToSegmentEnd: (v: Vehicle) => number;
        globalMaxQueueLength: number;
        intersectionControllers: Map<string, IntersectionController>;
        junctionCounters: Map<string, JunctionCounter>;
        lastVehJunctionTag: Map<
            number,
            { jid: string
            | null; phase: string | null },
        >;
        roundaboutControllers: Map<string, RoundaboutController>;
        routes: { length: number };
        spawnState: { spawnDemandPerEntry: Map<string, number>; spawned: number };
        totalTravelTime: number;
        travelCount: number;
        vehicles: Vehicle[];
    }
    Index

    Properties

    completed: number
    elapsedTime: number
    getDistToSegmentEnd: (v: Vehicle) => number
    globalMaxQueueLength: number
    intersectionControllers: Map<string, IntersectionController>
    junctionCounters: Map<string, JunctionCounter>
    lastVehJunctionTag: Map<number, { jid: string | null; phase: string | null }>
    roundaboutControllers: Map<string, RoundaboutController>
    routes: { length: number }
    spawnState: { spawnDemandPerEntry: Map<string, number>; spawned: number }
    totalTravelTime: number
    travelCount: number
    vehicles: Vehicle[]