Skip to main content

Module prelude

Module prelude 

Source
Expand description

Convenience re-exports.

Re-exports§

pub use crate::leg::Leg;
pub use crate::leg::TripPlan;
pub use crate::leg::Waypoint;
pub use crate::mode_state::ModeController;
pub use crate::mode_state::ModeState;
pub use crate::mode_state::TravellerContext;
pub use crate::obstacle::Obstacle;
pub use crate::obstacle::ObstacleKind;
pub use crate::obstacle::ObstacleSnapshot;
pub use crate::obstacle::PedestrianObstacle;
pub use crate::obstacle::VehicleObstacle;
pub use crate::router::only;
pub use crate::router::shortest_path;
pub use crate::router::ModalEdge;
pub use crate::router::ModalGraph;
pub use crate::router::ModalGraphBuildError;
pub use crate::router::ModalRoute;

Structs§

CapacityStopQueuePolicy
Stop queue policy that enforces the stop’s soft capacity as a hard cap.
ControlContext
Signal/control context for an approach or movement.
DispatchContext
Dispatch request context for one route at one simulation time.
FifoBoardingPolicy
FIFO boarding policy with an optional per-stop-event boarding cap.
FifoGapPolicy
FIFO policy with a fixed gap to the leader and fixed exit clearance.
FixedControlPolicy
Fixed-rule control policy for uncontrolled, yield, stop, and signal controls.
LinearDwellPolicy
Linear dwell policy backed by DwellParams.
ScheduledDispatchPolicy
Schedule-following dispatch policy with optional active-vehicle caps.
SpeedDecision
Speed chosen by a queue policy.

Enums§

ControlDecision
Control decision for a movement.
DispatchDecision
Decision returned by a dispatch policy.
SpeedConstraint
Why a policy constrained an agent’s speed.
TravelMode
High-level travel mode used in multimodal simulations.

Traits§

BoardingPolicy
Policy for deciding which queued passengers board a vehicle.
ControlPolicy
Policy that decides whether a movement may proceed through a control point.
DispatchPolicy
Policy that decides whether a route should dispatch a vehicle.
DwellPolicy
Policy for computing stop dwell times from passenger exchange counts.
QueuePolicy
Policy for choosing an agent’s link speed from ordered occupancy.
StopQueuePolicy
Policy for admitting passengers to a stop queue.

Functions§

board_with_policy
Apply a boarding policy to a queue and vehicle.