Skip to main content

Module mode_state

Module mode_state 

Source
Expand description

Mode-transition state machine for travellers.

A traveller progresses through their TripPlan one Leg at a time. This crate tracks the current phase deterministically so the domain crates (crowd, vehicle, transit) only have to react to state changes, not compute them.

Structs§

ModeController
Controller that advances a traveller through a TripPlan.
TravellerContext
Per-traveller context held by the caller.

Enums§

ModeState
High-level mode state.