Expand description
Cross-domain mobility policy re-exports.
rustsim-mobility does not own traffic or transit policy internals, but it
exposes the common contracts from one module so multimodal simulations can
wire queue, service, and control behavior without coupling domain crates to
each other.
Structs§
- Capacity
Stop Queue Policy - Stop queue policy that enforces the stop’s soft capacity as a hard cap.
- Control
Context - Signal/control context for an approach or movement.
- Dispatch
Context - Dispatch request context for one route at one simulation time.
- Fifo
Boarding Policy - FIFO boarding policy with an optional per-stop-event boarding cap.
- Fifo
GapPolicy - FIFO policy with a fixed gap to the leader and fixed exit clearance.
- Fixed
Control Policy - Fixed-rule control policy for uncontrolled, yield, stop, and signal controls.
- Linear
Dwell Policy - Linear dwell policy backed by
DwellParams. - Scheduled
Dispatch Policy - Schedule-following dispatch policy with optional active-vehicle caps.
- Speed
Decision - Speed chosen by a queue policy.
Enums§
- Control
Decision - Control decision for a movement.
- Dispatch
Decision - Decision returned by a dispatch policy.
- Speed
Constraint - Why a policy constrained an agent’s speed.
Traits§
- Boarding
Policy - Policy for deciding which queued passengers board a vehicle.
- Control
Policy - Policy that decides whether a movement may proceed through a control point.
- Dispatch
Policy - Policy that decides whether a route should dispatch a vehicle.
- Dwell
Policy - Policy for computing stop dwell times from passenger exchange counts.
- Queue
Policy - Policy for choosing an agent’s link speed from ordered occupancy.
- Stop
Queue Policy - Policy for admitting passengers to a stop queue.
Functions§
- board_
with_ policy - Apply a boarding policy to a queue and vehicle.