Skip to main content

elevator_core/components/
mod.rs

1//! Entity components — the data attached to simulation entities.
2
3/// Access control for restricting rider stop access.
4pub mod access;
5/// Floor buttons pressed from inside a cab.
6pub mod car_call;
7/// Per-elevator ordered destination queue.
8pub mod destination_queue;
9/// Elevator state and properties.
10pub mod elevator;
11/// Hall calls: the up/down buttons at each stop.
12pub mod hall_call;
13/// Line (physical path) — shaft, tether, track.
14pub mod line;
15/// Rider patience and boarding preferences.
16pub mod patience;
17/// Position and velocity along the shaft axis.
18pub mod position;
19/// Rider (passenger/cargo) core data.
20pub mod rider;
21/// Internal rider lifecycle state with location data bundled into variants.
22pub(crate) mod rider_state;
23/// Multi-leg route planning.
24pub mod route;
25/// Service mode component for elevator operational modes.
26pub mod service_mode;
27/// Stop (floor/station) data.
28pub mod stop;
29/// Physical quantity newtypes (Weight, Speed, Accel).
30pub mod units;
31
32pub use access::AccessControl;
33pub use car_call::CarCall;
34pub use destination_queue::DestinationQueue;
35pub use elevator::{DOOR_COMMAND_QUEUE_CAP, Direction, Elevator, ElevatorPhase};
36pub use hall_call::{CallDirection, HallCall};
37pub use line::{Line, Orientation, SpatialPosition};
38pub use patience::{Patience, Preferences};
39pub use position::{Position, Velocity};
40pub use rider::{Rider, RiderPhase, RiderPhaseKind};
41pub use route::{Route, RouteLeg, TransportMode};
42pub use service_mode::ServiceMode;
43pub use stop::Stop;
44pub use units::{Accel, Speed, UnitError, Weight};