SUMO - Simulation of Urban MObility
NIImporter_SUMO Class Reference

Importer for networks stored in SUMO format. More...

#include <NIImporter_SUMO.h>

Inheritance diagram for NIImporter_SUMO:
Inheritance graph
Collaboration diagram for NIImporter_SUMO:
Collaboration graph

Data Structures

struct  Connection
 A connection description. More...
 
struct  Crossing
 Describes a pedestrian crossing. More...
 
struct  EdgeAttrs
 Describes the values found in an edge's definition and this edge's lanes. More...
 
struct  JunctionAttrs
 Describes the values found in a junction. More...
 
struct  LaneAttrs
 Describes the values found in a lane's definition. More...
 
struct  Prohibition
 Describes the values found in a prohibition. More...
 
struct  WalkingAreaParsedCustomShape
 Describes custom shape for a walking area during parsing. More...
 

Public Member Functions

void characters (const XMLCh *const chars, const XERCES3_SIZE_t length)
 The inherited method called when characters occured. More...
 
void endElement (const XMLCh *const uri, const XMLCh *const localname, const XMLCh *const qname)
 The inherited method called when a tag is being closed. More...
 
const std::string & getFileName () const
 returns the current file name More...
 
void registerParent (const int tag, GenericSAXHandler *handler)
 Assigning a parent handler which is enabled when the specified tag is closed. More...
 
void setFileName (const std::string &name)
 Sets the current file name. More...
 
void startElement (const XMLCh *const uri, const XMLCh *const localname, const XMLCh *const qname, const XERCES_CPP_NAMESPACE::Attributes &attrs)
 The inherited method called when a new tag opens. More...
 
SAX ErrorHandler callbacks
void warning (const XERCES_CPP_NAMESPACE::SAXParseException &exception)
 Handler for XML-warnings. More...
 
void error (const XERCES_CPP_NAMESPACE::SAXParseException &exception)
 Handler for XML-errors. More...
 
void fatalError (const XERCES_CPP_NAMESPACE::SAXParseException &exception)
 Handler for XML-errors. More...
 

Static Public Member Functions

static void addPhase (const SUMOSAXAttributes &attrs, NBLoadedSUMOTLDef *currentTL)
 adds a phase to the traffic lights logic currently build More...
 
static NBLoadedSUMOTLDefinitTrafficLightLogic (const SUMOSAXAttributes &attrs, NBLoadedSUMOTLDef *currentTL)
 begins the reading of a traffic lights logic More...
 
static GeoConvHelperloadLocation (const SUMOSAXAttributes &attrs)
 Parses network location description and registers it with GeoConveHelper::setLoaded. More...
 
static void loadNetwork (OptionsCont &oc, NBNetBuilder &nb)
 Loads content of the optionally given SUMO file. More...
 

Protected Member Functions

std::string buildErrorMessage (const XERCES_CPP_NAMESPACE::SAXParseException &exception)
 Builds an error message. More...
 
virtual void myCharacters (int element, const std::string &chars)
 Callback method for characters to implement by derived classes. More...
 
 NIImporter_SUMO (NBNetBuilder &nb)
 Constructor. More...
 
 ~NIImporter_SUMO ()
 Destructor. More...
 
inherited from GenericSAXHandler
void myStartElement (int element, const SUMOSAXAttributes &attrs)
 Called on the opening of a tag;. More...
 
void myEndElement (int element)
 Called when a closing tag occurs. More...
 

Private Member Functions

void _loadNetwork (OptionsCont &oc)
 load the network More...
 
LaneAttrsgetLaneAttrsFromID (EdgeAttrs *edge, std::string lane_id)
 Parses lane index from lane ID an retrieve lane from EdgeAttrs. More...
 
void parseProhibitionConnection (const std::string &attr, std::string &from, std::string &to, bool &ok)
 parses connection string of a prohibition (very old school) More...
 
Object instance parsing methods
void addEdge (const SUMOSAXAttributes &attrs)
 Parses an edge and stores the values in "myCurrentEdge". More...
 
void addLane (const SUMOSAXAttributes &attrs)
 Parses a lane and stores the values in "myCurrentLane". More...
 
void addJunction (const SUMOSAXAttributes &attrs)
 Parses a junction and saves it in the node control. More...
 
void addRequest (const SUMOSAXAttributes &attrs)
 Parses a reques and saves selected attributes in myCurrentJunction. More...
 
void addConnection (const SUMOSAXAttributes &attrs)
 Parses a connection and saves it into the lane's definition stored in "myCurrentLane". More...
 
void addProhibition (const SUMOSAXAttributes &attrs)
 Parses a prohibition and saves it. More...
 
void addRoundabout (const SUMOSAXAttributes &attrs)
 Parses a roundabout and stores it in myEdgeCont. More...
 

Static Private Member Functions

static Position readPosition (const SUMOSAXAttributes &attrs, const std::string &id, bool &ok)
 read position from the given attributes, attribute errors to id More...
 
static PositionVector reconstructEdgeShape (const EdgeAttrs *edge, const Position &from, const Position &to)
 reconstructs the edge shape from the node positions and the given lane shapes since we do not know the original LaneSpreadFunction this is only an approximation More...
 

Private Attributes

bool myAmLefthand
 whether the loaded network was built for lefthand traffic More...
 
int myCornerDetail
 the level of corner detail in the loaded network More...
 
EdgeAttrsmyCurrentEdge
 The currently parsed edge's definition (to add loaded lanes to) More...
 
JunctionAttrs myCurrentJunction
 The currently parsed junction definition to help in reconstructing crossings. More...
 
LaneAttrsmyCurrentLane
 The currently parsed lanes's definition (to add the shape to) More...
 
NBLoadedSUMOTLDefmyCurrentTL
 The currently parsed traffic light. More...
 
std::map< std::string, EdgeAttrs * > myEdges
 Loaded edge definitions. More...
 
bool myHaveSeenInternalEdge
 whether the loaded network contains internal lanes More...
 
std::vector< Parameterised * > myLastParameterised
 element to receive parameters More...
 
int myLinkDetail
 the level of geometry detail for internal lanes in the loaded network More...
 
GeoConvHelpermyLocation
 The coordinate transformation which was used to build the loaded network. More...
 
NBNetBuildermyNetBuilder
 The network builder to fill. More...
 
NBNodeContmyNodeCont
 The node container to fill. More...
 
std::map< std::string, std::vector< Crossing > > myPedestrianCrossings
 The pedestrian crossings found in the network. More...
 
std::vector< ProhibitionmyProhibitions
 Loaded prohibitions. More...
 
std::set< std::string > myRailSignals
 list of node id with rail signals (no NBTrafficLightDefinition exists) More...
 
bool myRectLaneCut
 whether all lanes of an edge should have the same stop line More...
 
std::vector< std::vector< std::string > > myRoundabouts
 loaded roundabout edges More...
 
NBTrafficLightLogicContmyTLLCont
 The node container to fill. More...
 
std::map< std::string, WalkingAreaParsedCustomShapemyWACustomShapes
 Map from walkingArea edge IDs to custom shapes. More...
 
bool myWalkingAreas
 whether walkingareas must be built More...
 

Detailed Description

Importer for networks stored in SUMO format.

Definition at line 58 of file NIImporter_SUMO.h.

Constructor & Destructor Documentation

◆ NIImporter_SUMO()

NIImporter_SUMO::NIImporter_SUMO ( NBNetBuilder nb)
protected

Constructor.

Parameters
[in]ncThe network builder to fill

Definition at line 72 of file NIImporter_SUMO.cpp.

◆ ~NIImporter_SUMO()

NIImporter_SUMO::~NIImporter_SUMO ( )
protected

Destructor.

Definition at line 90 of file NIImporter_SUMO.cpp.

References NIImporter_SUMO::EdgeAttrs::lanes, myEdges, and myLocation.

Member Function Documentation

◆ _loadNetwork()

void NIImporter_SUMO::_loadNetwork ( OptionsCont oc)
private

load the network

Definition at line 103 of file NIImporter_SUMO.cpp.

References NIImporter_SUMO::LaneAttrs::accelRamp, NBLoadedSUMOTLDef::addConnection(), NBNode::addCrossing(), NBEdge::addLane2LaneConnection(), NBEdgeCont::addRoundabout(), NBNode::addSortedLinkFoes(), NBNode::addWalkingAreaShape(), NIImporter_SUMO::LaneAttrs::allow, NIImporter_SUMO::EdgeAttrs::builtEdge, NIImporter_SUMO::LaneAttrs::connections, NIImporter_SUMO::Connection::contPos, NIImporter_SUMO::Crossing::crossingEdges, NIImporter_SUMO::Connection::customShape, NIImporter_SUMO::LaneAttrs::customShape, NIImporter_SUMO::Crossing::customShape, NIImporter_SUMO::Crossing::customTLIndex, NBEdge::declareConnectionsAsLoaded(), deprecatedVehicleClassesSeen, NIImporter_SUMO::LaneAttrs::disallow, EDGEFUNC_CROSSING, EDGEFUNC_INTERNAL, EDGEFUNC_WALKINGAREA, NIImporter_SUMO::LaneAttrs::endOffset, NBEdgeCont::erase(), NIImporter_SUMO::EdgeAttrs::fromNode, NIImporter_SUMO::EdgeAttrs::func, OptionsCont::getBool(), NBNetBuilder::getDistrictCont(), NBNetBuilder::getEdgeCont(), NBEdge::getEndOffset(), Named::getID(), SUMOXMLDefinitions::getJunctionIDFromInternalEdge(), NBEdge::getLaneID(), NBEdge::getLanes(), NBEdge::getLaneStruct(), NBEdge::getLaneWidth(), Parameterised::getMap(), NBNode::getPosition(), NBTrafficLightLogicCont::getPrograms(), OptionsCont::getStringVector(), NBEdge::getToNode(), NBNetBuilder::getTypeCont(), NBEdge::hasConnectionTo(), NBEdge::hasLaneSpecificEndOffset(), NBEdge::hasLaneSpecificWidth(), NBNetBuilder::haveLoadedNetworkWithoutInternalEdges(), NIImporter_SUMO::EdgeAttrs::id, NBEdgeCont::ignore(), NBEdgeCont::ignoreFilterMatch(), NBEdgeCont::insert(), OptionsCont::isDefault(), FileHelpers::isReadable(), OptionsCont::isUsableFileList(), NIImporter_SUMO::Connection::keepClear, NBEdge::L2L_VALIDATED, NIImporter_SUMO::EdgeAttrs::lanes, NIImporter_SUMO::EdgeAttrs::length, NIImporter_SUMO::EdgeAttrs::lsf, NIImporter_SUMO::LaneAttrs::maxSpeed, NIImporter_SUMO::EdgeAttrs::maxSpeed, NIImporter_SUMO::Connection::mayDefinitelyPass, myAmLefthand, myCornerDetail, myEdges, myHaveSeenInternalEdge, myLinkDetail, myNetBuilder, myNodeCont, myPedestrianCrossings, myProhibitions, myRailSignals, myRectLaneCut, myRoundabouts, myTLLCont, myWACustomShapes, myWalkingAreas, NBEdge::Lane::oppositeID, NIImporter_SUMO::LaneAttrs::oppositeID, parseVehicleClasses(), NIImporter_SUMO::EdgeAttrs::priority, NIImporter_SUMO::Crossing::priority, PROGRESS_BEGIN_MESSAGE, PROGRESS_DONE_MESSAGE, reconstructEdgeShape(), NBNodeCont::retrieve(), NBEdgeCont::retrieve(), XMLSubSys::runParser(), OptionsCont::set(), NBEdge::setAcceleration(), NBEdge::setEndOffset(), GenericSAXHandler::setFileName(), NBEdge::setLaneShape(), NBEdge::setLaneWidth(), NBEdge::setLoadedLength(), NBEdge::setPermissions(), NBEdge::setSpeed(), NIImporter_SUMO::LaneAttrs::shape, NIImporter_SUMO::EdgeAttrs::shape, NIImporter_SUMO::Connection::speed, NIImporter_SUMO::EdgeAttrs::streetName, NIImporter_SUMO::Connection::tlID, NIImporter_SUMO::Connection::tlLinkNo, NIImporter_SUMO::Connection::toEdgeID, NIImporter_SUMO::Connection::toLaneIdx, NIImporter_SUMO::EdgeAttrs::toNode, toString(), NIImporter_SUMO::EdgeAttrs::type, NBEdge::UNSPECIFIED_OFFSET, NBEdge::UNSPECIFIED_WIDTH, Parameterised::updateParameter(), NIImporter_SUMO::Connection::visibility, NBEdgeCont::wasIgnored(), NIImporter_SUMO::LaneAttrs::width, NIImporter_SUMO::Crossing::width, WRITE_ERROR, and WRITE_WARNING.

Referenced by loadNetwork().

◆ addConnection()

◆ addEdge()

void NIImporter_SUMO::addEdge ( const SUMOSAXAttributes attrs)
private

◆ addJunction()

◆ addLane()

◆ addPhase()

◆ addProhibition()

void NIImporter_SUMO::addProhibition ( const SUMOSAXAttributes attrs)
private

◆ addRequest()

void NIImporter_SUMO::addRequest ( const SUMOSAXAttributes attrs)
private

Parses a reques and saves selected attributes in myCurrentJunction.

Parameters
[in]attrsThe attributes to get the junction's values from

Definition at line 632 of file NIImporter_SUMO.cpp.

References SUMOSAXAttributes::get(), myCurrentJunction, NIImporter_SUMO::JunctionAttrs::node, NIImporter_SUMO::JunctionAttrs::response, and SUMO_ATTR_RESPONSE.

Referenced by myStartElement().

◆ addRoundabout()

void NIImporter_SUMO::addRoundabout ( const SUMOSAXAttributes attrs)
private

Parses a roundabout and stores it in myEdgeCont.

Parameters
[in]attrsThe attributes to get the roundabouts values from

Definition at line 908 of file NIImporter_SUMO.cpp.

References SUMOSAXAttributes::getStringVector(), SUMOSAXAttributes::hasAttribute(), myRoundabouts, SUMO_ATTR_EDGES, and WRITE_ERROR.

Referenced by myStartElement().

◆ buildErrorMessage()

std::string GenericSAXHandler::buildErrorMessage ( const XERCES_CPP_NAMESPACE::SAXParseException &  exception)
protectedinherited

Builds an error message.

The error message includes the file name and the line/column information as supported by the given SAXParseException

Parameters
[in]exceptionThe name of the currently processed file
Returns
A string describing the given exception

Definition at line 187 of file GenericSAXHandler.cpp.

References GenericSAXHandler::getFileName().

Referenced by GenericSAXHandler::error(), GenericSAXHandler::fatalError(), and GenericSAXHandler::warning().

◆ characters()

void GenericSAXHandler::characters ( const XMLCh *const  chars,
const XERCES3_SIZE_t  length 
)
inherited

The inherited method called when characters occured.

The retrieved characters are converted into a string and appended into a private buffer. They are reported as soon as the element ends.

Todo:

recheck/describe what happens with characters when a new element is opened

describe characters processing in the class' head

Definition at line 170 of file GenericSAXHandler.cpp.

References TplConvert::_2str(), and GenericSAXHandler::myCharactersVector.

◆ endElement()

void GenericSAXHandler::endElement ( const XMLCh *const  uri,
const XMLCh *const  localname,
const XMLCh *const  qname 
)
inherited

The inherited method called when a tag is being closed.

This method calls the user-implemented methods myCharacters with the previously collected and converted characters.

Then, myEndElement is called, supplying it the qname converted to its enum- and string-representations.

Todo:

recheck/describe encoding of the string-representation

do not generate and report the string-representation

Definition at line 121 of file GenericSAXHandler.cpp.

References TplConvert::_2str(), GenericSAXHandler::convertTag(), GenericSAXHandler::myCharacters(), GenericSAXHandler::myCharactersVector, GenericSAXHandler::myEndElement(), GenericSAXHandler::myParentHandler, GenericSAXHandler::myParentIndicator, XMLSubSys::setHandler(), SUMO_TAG_INCLUDE, and SUMO_TAG_NOTHING.

◆ error()

void GenericSAXHandler::error ( const XERCES_CPP_NAMESPACE::SAXParseException &  exception)
inherited

Handler for XML-errors.

The message is built using buildErrorMessage and thrown within a ProcessError.

Parameters
[in]exceptionThe occured exception to process
Exceptions
ProcessErrorOn any call

Definition at line 206 of file GenericSAXHandler.cpp.

References GenericSAXHandler::buildErrorMessage().

Referenced by MSRouteHandler::addPersonTrip(), MSRouteHandler::closeContainer(), MSRouteHandler::closePerson(), NIImporter_OpenDrive::geomFromSpiral(), and MSRouteHandler::myStartElement().

◆ fatalError()

void GenericSAXHandler::fatalError ( const XERCES_CPP_NAMESPACE::SAXParseException &  exception)
inherited

Handler for XML-errors.

The message is built using buildErrorMessage and thrown within a ProcessError.

Exceptions
ProcessErrorOn any call
Parameters
[in]exceptionThe occured exception to process

Definition at line 212 of file GenericSAXHandler.cpp.

References GenericSAXHandler::buildErrorMessage().

◆ getFileName()

◆ getLaneAttrsFromID()

NIImporter_SUMO::LaneAttrs * NIImporter_SUMO::getLaneAttrsFromID ( EdgeAttrs edge,
std::string  lane_id 
)
private

Parses lane index from lane ID an retrieve lane from EdgeAttrs.

Parameters
[in]edgeThe EdgeAttrs* which should contain the lane
[in]lane_idThe ID of the lane

Definition at line 743 of file NIImporter_SUMO.cpp.

References NIImporter_SUMO::EdgeAttrs::id, NBHelpers::interpretLaneID(), NIImporter_SUMO::EdgeAttrs::lanes, and WRITE_ERROR.

◆ initTrafficLightLogic()

NBLoadedSUMOTLDef * NIImporter_SUMO::initTrafficLightLogic ( const SUMOSAXAttributes attrs,
NBLoadedSUMOTLDef currentTL 
)
static

◆ loadLocation()

GeoConvHelper * NIImporter_SUMO::loadLocation ( const SUMOSAXAttributes attrs)
static

Parses network location description and registers it with GeoConveHelper::setLoaded.

Definition at line 852 of file NIImporter_SUMO.cpp.

References SUMOSAXAttributes::get(), GeoConvHelper::setLoaded(), SUMO_ATTR_CONV_BOUNDARY, SUMO_ATTR_NET_OFFSET, SUMO_ATTR_ORIG_BOUNDARY, and SUMO_ATTR_ORIG_PROJ.

Referenced by NIXMLNodesHandler::myStartElement(), and myStartElement().

◆ loadNetwork()

void NIImporter_SUMO::loadNetwork ( OptionsCont oc,
NBNetBuilder nb 
)
static

Loads content of the optionally given SUMO file.

If the option "sumo-net-file" is set, the file stored therein is read and the network definition stored therein is stored within the given network builder.

If the option "sumo-net-file" is not set, this method simply returns.

The loading is done by parsing the network definition as an XML file using the SAXinterface and handling the incoming data via this class' methods.

Parameters
[in,out]ocThe options to use (option no-internal-links may be modified)
[in]nbThe network builder to fill

Definition at line 63 of file NIImporter_SUMO.cpp.

References _loadNetwork().

Referenced by NILoader::load().

◆ myCharacters()

void GenericSAXHandler::myCharacters ( int  element,
const std::string &  chars 
)
protectedvirtualinherited

Callback method for characters to implement by derived classes.

Called by "endElement" (see there).

Parameters
[in]elementThe opened element, given as a int
[in]charsThe complete embedded character string ProcessError These method may throw a ProcessError if something fails

Reimplemented in NIImporter_ITSUMO::Handler.

Definition at line 222 of file GenericSAXHandler.cpp.

Referenced by GenericSAXHandler::endElement().

◆ myEndElement()

◆ myStartElement()

◆ parseProhibitionConnection()

void NIImporter_SUMO::parseProhibitionConnection ( const std::string &  attr,
std::string &  from,
std::string &  to,
bool &  ok 
)
private

parses connection string of a prohibition (very old school)

Parameters
[in]attrThe connection attribute
[out]fromID of the source edge
[out]toID of the destination edge
[out]okWhether parsing completed successfully

Definition at line 879 of file NIImporter_SUMO.cpp.

References myEdges, and WRITE_ERROR.

Referenced by addProhibition().

◆ readPosition()

Position NIImporter_SUMO::readPosition ( const SUMOSAXAttributes attrs,
const std::string &  id,
bool &  ok 
)
staticprivate

read position from the given attributes, attribute errors to id

Definition at line 870 of file NIImporter_SUMO.cpp.

References SUMOSAXAttributes::get(), SUMOSAXAttributes::getOpt(), SUMO_ATTR_X, SUMO_ATTR_Y, and SUMO_ATTR_Z.

Referenced by addJunction().

◆ reconstructEdgeShape()

PositionVector NIImporter_SUMO::reconstructEdgeShape ( const EdgeAttrs edge,
const Position from,
const Position to 
)
staticprivate

reconstructs the edge shape from the node positions and the given lane shapes since we do not know the original LaneSpreadFunction this is only an approximation

Parameters
[in]lanesThe list of lane attributes

= -2.; //

Todo:
: actually, when looking at the road networks, the center line is not in the center

Definition at line 808 of file NIImporter_SUMO.cpp.

References PositionVector::extrapolate(), NIImporter_SUMO::EdgeAttrs::id, PositionVector::intersectionPosition2D(), PositionVector::intersects(), NIImporter_SUMO::EdgeAttrs::lanes, LANESPREAD_RIGHT, NIImporter_SUMO::EdgeAttrs::lsf, PositionVector::sideOffset(), SUMO_const_laneOffset, SUMO_const_laneWidth, and WRITE_WARNING.

Referenced by _loadNetwork().

◆ registerParent()

void GenericSAXHandler::registerParent ( const int  tag,
GenericSAXHandler handler 
)
inherited

◆ setFileName()

void GenericSAXHandler::setFileName ( const std::string &  name)
inherited

Sets the current file name.

Parameters
[in]nameThe name of the currently processed file
Todo:
Hmmm - this is as unsafe as having a direct access to the variable; recheck

Definition at line 75 of file GenericSAXHandler.cpp.

References GenericSAXHandler::myFileName.

Referenced by _loadNetwork(), GUISettingsHandler::GUISettingsHandler(), PCNetProjectionLoader::load(), NIImporter_OpenStreetMap::load(), loadNet(), ROLoader::loadNet(), NIImporter_ITSUMO::loadNetwork(), NIImporter_MATSim::loadNetwork(), NIImporter_Vissim::loadXML(), NILoader::loadXMLType(), main(), and XMLSubSys::runParser().

◆ startElement()

void GenericSAXHandler::startElement ( const XMLCh *const  uri,
const XMLCh *const  localname,
const XMLCh *const  qname,
const XERCES_CPP_NAMESPACE::Attributes &  attrs 
)
inherited

The inherited method called when a new tag opens.

The method parses the supplied XMLCh*-qname using the internal name/enum-map to obtain the enum representation of the attribute name.

Then, "myStartElement" is called supplying the enumeration value, the string-representation of the name and the attributes.

Todo:

recheck/describe encoding of the string-representation

do not generate and report the string-representation

Definition at line 100 of file GenericSAXHandler.cpp.

References TplConvert::_2str(), GenericSAXHandler::convertTag(), FileHelpers::getConfigurationRelative(), GenericSAXHandler::getFileName(), SUMOSAXAttributesImpl_Xerces::getString(), FileHelpers::isAbsolute(), GenericSAXHandler::myCharactersVector, GenericSAXHandler::myPredefinedTags, GenericSAXHandler::myPredefinedTagsMML, GenericSAXHandler::myStartElement(), XMLSubSys::runParser(), SUMO_ATTR_HREF, and SUMO_TAG_INCLUDE.

◆ warning()

void GenericSAXHandler::warning ( const XERCES_CPP_NAMESPACE::SAXParseException &  exception)
inherited

Handler for XML-warnings.

The message is built using buildErrorMessage and reported to the warning-instance of the MsgHandler.

Parameters
[in]exceptionThe occured exception to process

Definition at line 200 of file GenericSAXHandler.cpp.

References GenericSAXHandler::buildErrorMessage(), and WRITE_WARNING.

Field Documentation

◆ myAmLefthand

bool NIImporter_SUMO::myAmLefthand
private

whether the loaded network was built for lefthand traffic

Definition at line 355 of file NIImporter_SUMO.h.

Referenced by _loadNetwork(), and myStartElement().

◆ myCornerDetail

int NIImporter_SUMO::myCornerDetail
private

the level of corner detail in the loaded network

Definition at line 358 of file NIImporter_SUMO.h.

Referenced by _loadNetwork(), and myStartElement().

◆ myCurrentEdge

EdgeAttrs* NIImporter_SUMO::myCurrentEdge
private

The currently parsed edge's definition (to add loaded lanes to)

Definition at line 328 of file NIImporter_SUMO.h.

Referenced by addEdge(), addLane(), and myEndElement().

◆ myCurrentJunction

JunctionAttrs NIImporter_SUMO::myCurrentJunction
private

The currently parsed junction definition to help in reconstructing crossings.

Definition at line 331 of file NIImporter_SUMO.h.

Referenced by addJunction(), addRequest(), and myEndElement().

◆ myCurrentLane

LaneAttrs* NIImporter_SUMO::myCurrentLane
private

The currently parsed lanes's definition (to add the shape to)

Definition at line 334 of file NIImporter_SUMO.h.

Referenced by addLane(), myEndElement(), and myStartElement().

◆ myCurrentTL

NBLoadedSUMOTLDef* NIImporter_SUMO::myCurrentTL
private

The currently parsed traffic light.

Definition at line 337 of file NIImporter_SUMO.h.

Referenced by myEndElement(), and myStartElement().

◆ myEdges

std::map<std::string, EdgeAttrs*> NIImporter_SUMO::myEdges
private

Loaded edge definitions.

Definition at line 313 of file NIImporter_SUMO.h.

Referenced by _loadNetwork(), addConnection(), myEndElement(), parseProhibitionConnection(), and ~NIImporter_SUMO().

◆ myHaveSeenInternalEdge

bool NIImporter_SUMO::myHaveSeenInternalEdge
private

whether the loaded network contains internal lanes

Definition at line 352 of file NIImporter_SUMO.h.

Referenced by _loadNetwork(), and addEdge().

◆ myLastParameterised

std::vector<Parameterised*> NIImporter_SUMO::myLastParameterised
private

element to receive parameters

Definition at line 349 of file NIImporter_SUMO.h.

Referenced by addEdge(), addJunction(), addLane(), myEndElement(), and myStartElement().

◆ myLinkDetail

int NIImporter_SUMO::myLinkDetail
private

the level of geometry detail for internal lanes in the loaded network

Definition at line 361 of file NIImporter_SUMO.h.

Referenced by _loadNetwork(), and myStartElement().

◆ myLocation

GeoConvHelper* NIImporter_SUMO::myLocation
private

The coordinate transformation which was used to build the loaded network.

Definition at line 340 of file NIImporter_SUMO.h.

Referenced by addEdge(), addJunction(), addLane(), myStartElement(), and ~NIImporter_SUMO().

◆ myNetBuilder

NBNetBuilder& NIImporter_SUMO::myNetBuilder
private

The network builder to fill.

Definition at line 319 of file NIImporter_SUMO.h.

Referenced by _loadNetwork().

◆ myNodeCont

NBNodeCont& NIImporter_SUMO::myNodeCont
private

The node container to fill.

Definition at line 322 of file NIImporter_SUMO.h.

Referenced by _loadNetwork(), and addJunction().

◆ myPedestrianCrossings

std::map<std::string, std::vector<Crossing> > NIImporter_SUMO::myPedestrianCrossings
private

The pedestrian crossings found in the network.

Definition at line 343 of file NIImporter_SUMO.h.

Referenced by _loadNetwork(), addConnection(), addEdge(), and addLane().

◆ myProhibitions

std::vector<Prohibition> NIImporter_SUMO::myProhibitions
private

Loaded prohibitions.

Definition at line 316 of file NIImporter_SUMO.h.

Referenced by _loadNetwork(), and addProhibition().

◆ myRailSignals

std::set<std::string> NIImporter_SUMO::myRailSignals
private

list of node id with rail signals (no NBTrafficLightDefinition exists)

Definition at line 373 of file NIImporter_SUMO.h.

Referenced by _loadNetwork(), and addJunction().

◆ myRectLaneCut

bool NIImporter_SUMO::myRectLaneCut
private

whether all lanes of an edge should have the same stop line

Definition at line 364 of file NIImporter_SUMO.h.

Referenced by _loadNetwork(), and myStartElement().

◆ myRoundabouts

std::vector<std::vector<std::string> > NIImporter_SUMO::myRoundabouts
private

loaded roundabout edges

Definition at line 370 of file NIImporter_SUMO.h.

Referenced by _loadNetwork(), and addRoundabout().

◆ myTLLCont

NBTrafficLightLogicCont& NIImporter_SUMO::myTLLCont
private

The node container to fill.

Definition at line 325 of file NIImporter_SUMO.h.

Referenced by _loadNetwork(), and myEndElement().

◆ myWACustomShapes

std::map<std::string, WalkingAreaParsedCustomShape> NIImporter_SUMO::myWACustomShapes
private

Map from walkingArea edge IDs to custom shapes.

Definition at line 346 of file NIImporter_SUMO.h.

Referenced by _loadNetwork(), addConnection(), and addLane().

◆ myWalkingAreas

bool NIImporter_SUMO::myWalkingAreas
private

whether walkingareas must be built

Definition at line 367 of file NIImporter_SUMO.h.

Referenced by _loadNetwork(), and myStartElement().


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