SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
NIImporter_OpenDrive::OpenDriveEdge Struct Reference

Representation of an openDrive "link". More...

#include <NIImporter_OpenDrive.h>

Collaboration diagram for NIImporter_OpenDrive::OpenDriveEdge:
Collaboration graph

Public Member Functions

int getPriority (OpenDriveXMLTag dir) const
 Returns the edge's priority, regarding the direction. More...
 
 OpenDriveEdge (const std::string &idArg, const std::string &streetNameArg, const std::string &junctionArg, SUMOReal lengthArg)
 

Data Fields

std::set< Connectionconnections
 
std::vector< OpenDriveElevationelevations
 
NBNodefrom
 
PositionVector geom
 
std::vector< OpenDriveGeometrygeometries
 
std::string id
 The id of the edge. More...
 
bool isInner
 
std::string junction
 The id of the junction the edge belongs to. More...
 
std::vector< OpenDriveLaneSectionlaneSections
 
SUMOReal length
 The length of the edge. More...
 
std::vector< OpenDriveLinklinks
 
std::vector< OpenDriveSignalsignals
 
std::string streetName
 The road name of the edge. More...
 
NBNodeto
 

Detailed Description

Representation of an openDrive "link".

Definition at line 391 of file NIImporter_OpenDrive.h.

Constructor & Destructor Documentation

NIImporter_OpenDrive::OpenDriveEdge::OpenDriveEdge ( const std::string &  idArg,
const std::string &  streetNameArg,
const std::string &  junctionArg,
SUMOReal  lengthArg 
)
inline

Definition at line 392 of file NIImporter_OpenDrive.h.

References isInner, and junction.

Member Function Documentation

int NIImporter_OpenDrive::OpenDriveEdge::getPriority ( OpenDriveXMLTag  dir) const

Returns the edge's priority, regarding the direction.

The priority is determined by evaluating the signs located at the road

Parameters
[in]dirThe direction which priority shall be returned
Returns
The priority of the given direction

Definition at line 1266 of file NIImporter_OpenDrive.cpp.

References NIImporter_OpenDrive::OPENDRIVE_TAG_LEFT, and NIImporter_OpenDrive::OPENDRIVE_TAG_RIGHT.

Referenced by NIImporter_OpenDrive::loadNetwork().

Field Documentation

std::vector<OpenDriveElevation> NIImporter_OpenDrive::OpenDriveEdge::elevations
NBNode* NIImporter_OpenDrive::OpenDriveEdge::from
PositionVector NIImporter_OpenDrive::OpenDriveEdge::geom
std::vector<OpenDriveGeometry> NIImporter_OpenDrive::OpenDriveEdge::geometries
bool NIImporter_OpenDrive::OpenDriveEdge::isInner

Definition at line 429 of file NIImporter_OpenDrive.h.

Referenced by OpenDriveEdge().

std::string NIImporter_OpenDrive::OpenDriveEdge::junction

The id of the junction the edge belongs to.

Definition at line 417 of file NIImporter_OpenDrive.h.

Referenced by NIImporter_OpenDrive::loadNetwork(), and OpenDriveEdge().

SUMOReal NIImporter_OpenDrive::OpenDriveEdge::length

The length of the edge.

Definition at line 419 of file NIImporter_OpenDrive.h.

Referenced by NIImporter_OpenDrive::loadNetwork().

std::vector<OpenDriveLink> NIImporter_OpenDrive::OpenDriveEdge::links
std::vector<OpenDriveSignal> NIImporter_OpenDrive::OpenDriveEdge::signals
std::string NIImporter_OpenDrive::OpenDriveEdge::streetName

The road name of the edge.

Definition at line 415 of file NIImporter_OpenDrive.h.

Referenced by NIImporter_OpenDrive::loadNetwork().

NBNode* NIImporter_OpenDrive::OpenDriveEdge::to

The documentation for this struct was generated from the following files: