Skip to main content

Module policy

Module policy 

Source
Expand description

Transit queue, dispatch, and dwell policies.

Structs§

CapacityStopQueuePolicy
Stop queue policy that enforces the stop’s soft capacity as a hard cap.
DispatchContext
Dispatch request context for one route at one simulation time.
FifoBoardingPolicy
FIFO boarding policy with an optional per-stop-event boarding cap.
LinearDwellPolicy
Linear dwell policy backed by DwellParams.
ScheduledDispatchPolicy
Schedule-following dispatch policy with optional active-vehicle caps.

Enums§

DispatchDecision
Decision returned by a dispatch policy.

Traits§

BoardingPolicy
Policy for deciding which queued passengers board a vehicle.
DispatchPolicy
Policy that decides whether a route should dispatch a vehicle.
DwellPolicy
Policy for computing stop dwell times from passenger exchange counts.
StopQueuePolicy
Policy for admitting passengers to a stop queue.

Functions§

board_with_policy
Apply a boarding policy to a queue and vehicle.