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§
- Demand
Weighted - Position idle elevators near stops with historically high demand.
- Nearest
Idle - No-op strategy: idle elevators stay where they stopped.
- Return
ToLobby - Return idle elevators to a configured home stop (default: first stop).
- Spread
Evenly - Distribute idle elevators evenly across the group’s stops.