NIImporter_OpenDrive::OpenDriveEdge Struct Reference

#include <NIImporter_OpenDrive.h>


Detailed Description

Representation of an openDrive "link".

Definition at line 207 of file NIImporter_OpenDrive.h.


Public Member Functions

unsigned int getMaxLaneNumber (SumoXMLTag dir) const throw ()
 OpenDriveEdge (const std::string &idArg, const std::string &junctionArg, SUMOReal lengthArg)

Data Fields

std::map< int, int > beginLaneMap
std::map< int, int > endLaneMap
NBNodefrom
Position2DVector geom
std::vector< OpenDriveGeometrygeometries
std::string id
 The id of the edge.
std::string junction
 The id of the junction the edge belongs to.
std::vector< OpenDriveLaneSectionlaneSections
SUMOReal length
 The length of the edge.
std::vector< OpenDriveLinklinks
NBNodeto

Constructor & Destructor Documentation

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

Definition at line 208 of file NIImporter_OpenDrive.h.

00209                 : id(idArg), junction(junctionArg), length(lengthArg),
00210                 from(0), to(0) { }


Member Function Documentation

unsigned int NIImporter_OpenDrive::OpenDriveEdge::getMaxLaneNumber ( SumoXMLTag  dir  )  const throw () [inline]

Definition at line 212 of file NIImporter_OpenDrive.h.

References laneSections, and MAX2().

Referenced by NIImporter_OpenDrive::loadNetwork().

00212                                                                     {
00213             unsigned int maxLaneNum = 0;
00214             for (std::vector<OpenDriveLaneSection>::const_iterator i=laneSections.begin(); i!=laneSections.end(); ++i) {
00215                 maxLaneNum = MAX2(maxLaneNum, (*i).getLaneNumber(dir));
00216             }
00217             return maxLaneNum;
00218         }


Field Documentation

Definition at line 230 of file NIImporter_OpenDrive.h.

Definition at line 231 of file NIImporter_OpenDrive.h.

Definition at line 228 of file NIImporter_OpenDrive.h.

Referenced by NIImporter_OpenDrive::loadNetwork().

The id of the junction the edge belongs to.

Definition at line 223 of file NIImporter_OpenDrive.h.

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

The length of the edge.

Definition at line 225 of file NIImporter_OpenDrive.h.


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

Generated on Wed May 5 00:06:52 2010 for Sumo - Simulation of Urban MObility by  doxygen 1.5.6