pub struct E2Detector {
pub id: DetectorId,
pub coverage: Option<LaneCoverage>,
pub position: Option<LanePosition>,
pub end_position: Option<LanePosition>,
pub length: Option<Length>,
pub file: String,
pub period: Option<Time>,
pub name: Option<String>,
pub friendly_position: Option<bool>,
pub speed_threshold: Option<Velocity>,
pub time_threshold: Option<Time>,
pub jam_threshold: Option<Length>,
}Expand description
A lane area detector (SUMO’s e2Detector, also spelled
laneAreaDetector): covers a stretch of one lane, or a chain of lanes.
Fields§
§id: DetectorId§coverage: Option<LaneCoverage>Which lanes the detector covers. None when the document set
neither lane nor lanes, which additional_file.xsd permits
(both are use="optional") even though SUMO itself rejects it.
position: Option<LanePosition>§end_position: Option<LanePosition>§length: Option<Length>§file: String§period: Option<Time>§name: Option<String>§friendly_position: Option<bool>§speed_threshold: Option<Velocity>speedThreshold: below this speed a vehicle counts as halting.
time_threshold: Option<Time>timeThreshold: how long a vehicle must stay under
Self::speed_threshold before it counts as halting.
jam_threshold: Option<Length>jamThreshold: how close the next halting vehicle has to be for the
two to count as one jam. A distance, not a speed — it is a separate
attribute from Self::speed_threshold, which an earlier version of
this file conflated.
Trait Implementations§
Source§impl Clone for E2Detector
impl Clone for E2Detector
Source§impl Debug for E2Detector
impl Debug for E2Detector
Source§impl PartialEq for E2Detector
impl PartialEq for E2Detector
impl StructuralPartialEq for E2Detector
Auto Trait Implementations§
impl Freeze for E2Detector
impl RefUnwindSafe for E2Detector
impl Send for E2Detector
impl Sync for E2Detector
impl Unpin for E2Detector
impl UnsafeUnpin for E2Detector
impl UnwindSafe for E2Detector
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more