pub struct LineConfig {
pub id: u32,
pub name: String,
pub serves: Vec<StopId>,
pub elevators: Vec<ElevatorConfig>,
pub orientation: Orientation,
pub position: Option<SpatialPosition>,
pub min_position: Option<f64>,
pub max_position: Option<f64>,
pub max_cars: Option<usize>,
pub kind: Option<LineKind>,
}Expand description
Configuration for a single line (physical path).
A line represents a shaft, tether, track, or other physical pathway
that one or more elevator cars travel along. Lines belong to a
GroupConfig for dispatch purposes.
Fields§
§id: u32Unique line identifier (within the config).
name: StringHuman-readable name.
serves: Vec<StopId>Stops served by this line (references StopConfig::id).
elevators: Vec<ElevatorConfig>Elevators on this line.
orientation: OrientationPhysical orientation (defaults to Vertical).
position: Option<SpatialPosition>Optional floor-plan position.
min_position: Option<f64>Lowest reachable position (auto-computed from stops if None).
Used only when Self::kind is None; otherwise the kind’s own
bounds (or circumference) take precedence.
max_position: Option<f64>Highest reachable position (auto-computed from stops if None).
See Self::min_position for the kind interaction.
max_cars: Option<usize>Max cars on this line (None = unlimited).
kind: Option<LineKind>Topology kind. When Some, takes precedence over the flat
min_position/max_position fields. When None, falls back to
LineKind::Linear built from the flat fields (or
auto-computed from stops). RON authors can opt into a closed
loop with kind: Some(Loop(circumference: 200.0, min_headway: 10.0))
— but only when the loop_lines feature is enabled.
Trait Implementations§
Source§impl Clone for LineConfig
impl Clone for LineConfig
Source§fn clone(&self) -> LineConfig
fn clone(&self) -> LineConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more