Skip to main content

Module reposition

Module reposition 

Source
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§

DemandWeighted
Position idle elevators near stops with historically high demand.
NearestIdle
No-op strategy: idle elevators stay where they stopped.
ReturnToLobby
Return idle elevators to a configured home stop (default: first stop).
SpreadEvenly
Distribute idle elevators evenly across the group’s stops.