Expand description
Built-in repositioning strategies. Built-in repositioning strategies for idle elevators.
§Example
use elevator_core::prelude::*;
use elevator_core::dispatch::BuiltinReposition;
let sim = SimulationBuilder::demo()
.reposition(SpreadEvenly, BuiltinReposition::SpreadEvenly)
.build()
.unwrap();Structs§
- Adaptive
Parking - Mode-gated reposition: dispatches to an inner strategy chosen
by the current
TrafficMode. - Demand
Weighted - Position idle elevators near stops with historically high demand.
- Nearest
Idle - No-op strategy: idle elevators stay where they stopped.
- Predictive
Parking - Predictive parking: park idle elevators near stops with the highest recent per-stop arrival rate.
- Reposition
Cooldowns - World resource: per-car tick-when-next-eligible for reposition.
- Return
ToLobby - Return idle elevators to a configured home stop (default: first stop).
- Spread
Evenly - Distribute idle elevators evenly across the group’s stops.
Constants§
- DEFAULT_
REPOSITION_ COOLDOWN_ TICKS - Default reposition cooldown in ticks (~4 s at 60 Hz).