Struct sumo::Network [−][src]
pub struct Network { pub location: Location, pub normal_edges: BTreeMap<EdgeID, Edge>, pub internal_edges: BTreeMap<EdgeID, InternalEdge>, pub junctions: BTreeMap<NodeID, Junction>, pub connections: Vec<Connection>, }
A normalized form of a SUMO
network. A raw::Network
is a direct representation of a .net.xml file. That’s further simplified to produce this structure, which should be easier to work with. The
transformations:
- Any unspecified edge and lane attributes are inherited from
types
or set to defaults - Internal edges are represented separately
- Internal junctions are filtered out
- The Y coordinate is inverted, so that Y decreases northbound
Fields
location: Location
normal_edges: BTreeMap<EdgeID, Edge>
internal_edges: BTreeMap<EdgeID, InternalEdge>
junctions: BTreeMap<NodeID, Junction>
connections: Vec<Connection>
Implementations
impl Network
[src]
impl Network
[src]Auto Trait Implementations
impl RefUnwindSafe for Network
impl Send for Network
impl Sync for Network
impl Unpin for Network
impl UnwindSafe for Network
Blanket Implementations
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self