SUMO - Simulation of Urban MObility
|
Importer for networks stored in SUMO format. More...
#include <NIImporter_SUMO.h>
Data Structures | |
struct | Connection |
A connection description. More... | |
struct | EdgeAttrs |
Describes the values found in an edge's definition and this edge's lanes. More... | |
struct | LaneAttrs |
Describes the values found in a lane's definition. More... | |
struct | Prohibition |
Describes the values found in a prohibition. 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 NBLoadedSUMOTLDef * | initTrafficLightLogic (const SUMOSAXAttributes &attrs, NBLoadedSUMOTLDef *currentTL) |
begins the reading of a traffic lights logic More... | |
static GeoConvHelper * | loadLocation (const SUMOSAXAttributes &attrs) |
Parses network location description and registers it with GeoConveHelper::setLoaded. More... | |
static void | loadNetwork (const 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 (const OptionsCont &oc) |
load the network More... | |
LaneAttrs * | getLaneAttrsFromID (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 | 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... | |
Static Private Member Functions | |
static void | interpretLaneID (const std::string &lane_id, std::string &edge_id, unsigned int &index) |
parses edge-id and index from lane-id More... | |
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 | |
EdgeAttrs * | myCurrentEdge |
The currently parsed edge's definition (to add loaded lanes to) More... | |
LaneAttrs * | myCurrentLane |
The currently parsed lanes's definition (to add the shape to) More... | |
NBLoadedSUMOTLDef * | myCurrentTL |
The currently parsed traffic light. More... | |
std::map< std::string, EdgeAttrs * > | myEdges |
Loaded edge definitions. More... | |
GeoConvHelper * | myLocation |
The coordinate transformation which was used to build the loaded network. More... | |
NBNetBuilder & | myNetBuilder |
The network builder to fill. More... | |
NBNodeCont & | myNodeCont |
The node container to fill. More... | |
std::vector< Prohibition > | myProhibitions |
Loaded prohibitions. More... | |
bool | mySuspectKeepShape |
whether we suspect a net that was built with xml.keep-shape More... | |
NBTrafficLightLogicCont & | myTLLCont |
The node container to fill. More... | |
Importer for networks stored in SUMO format.
Definition at line 58 of file NIImporter_SUMO.h.
|
protected |
Constructor.
[in] | nc | The network builder to fill |
Definition at line 76 of file NIImporter_SUMO.cpp.
|
protected |
Destructor.
Definition at line 88 of file NIImporter_SUMO.cpp.
References NIImporter_SUMO::EdgeAttrs::lanes, myEdges, and myLocation.
|
private |
load the network
Definition at line 101 of file NIImporter_SUMO.cpp.
References NBLoadedSUMOTLDef::addConnection(), NBEdge::addLane2LaneConnection(), NBNode::addSortedLinkFoes(), NIImporter_SUMO::LaneAttrs::allow, NIImporter_SUMO::EdgeAttrs::builtEdge, NIImporter_SUMO::LaneAttrs::connections, NBEdge::declareConnectionsAsLoaded(), NIImporter_SUMO::LaneAttrs::disallow, EDGEFUNC_INTERNAL, FileHelpers::exists(), NIImporter_SUMO::EdgeAttrs::fromNode, NIImporter_SUMO::EdgeAttrs::func, OptionsCont::getBool(), NBNetBuilder::getEdgeCont(), OptionsCont::getOptions(), NBNode::getPosition(), NBTrafficLightLogicCont::getPrograms(), OptionsCont::getStringVector(), NBEdge::getToNode(), NIImporter_SUMO::EdgeAttrs::id, NBEdgeCont::insert(), OptionsCont::isUsableFileList(), 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, myEdges, myNetBuilder, myNodeCont, myProhibitions, mySuspectKeepShape, myTLLCont, NIImporter_SUMO::LaneAttrs::offset, parseVehicleClasses(), NIImporter_SUMO::EdgeAttrs::priority, PROGRESS_BEGIN_MESSAGE, PROGRESS_DONE_MESSAGE, reconstructEdgeShape(), NBEdgeCont::retrieve(), NBNodeCont::retrieve(), XMLSubSys::runParser(), GenericSAXHandler::setFileName(), NBEdge::setLoadedLength(), NBEdge::setOffset(), NBEdge::setPermissions(), NBEdge::setSpeed(), NBEdge::setWidth(), NIImporter_SUMO::EdgeAttrs::shape, PositionVector::size(), NIImporter_SUMO::EdgeAttrs::streetName, NIImporter_SUMO::Connection::tlID, NIImporter_SUMO::Connection::tlLinkNo, NIImporter_SUMO::Connection::toEdgeID, NIImporter_SUMO::Connection::toLaneIdx, NIImporter_SUMO::EdgeAttrs::toNode, NIImporter_SUMO::EdgeAttrs::type, NBEdge::UNSPECIFIED_OFFSET, NBEdge::UNSPECIFIED_WIDTH, NIImporter_SUMO::LaneAttrs::width, WRITE_ERROR, and WRITE_WARNING.
Referenced by loadNetwork().
|
private |
Parses a connection and saves it into the lane's definition stored in "myCurrentLane".
[in] | attrs | The attributes to get the connection from |
Definition at line 431 of file NIImporter_SUMO.cpp.
References NBRampsComputer::ADDED_ON_RAMP_EDGE, SUMOSAXAttributes::getIntReporting(), SUMOSAXAttributes::getOptBoolReporting(), SUMOSAXAttributes::getOptStringReporting(), SUMOSAXAttributes::getStringReporting(), NIImporter_SUMO::EdgeAttrs::lanes, NIImporter_SUMO::Connection::mayDefinitelyPass, myEdges, SUMO_ATTR_FROM, SUMO_ATTR_FROM_LANE, SUMO_ATTR_PASS, SUMO_ATTR_TLID, SUMO_ATTR_TLLINKINDEX, SUMO_ATTR_TO, SUMO_ATTR_TO_LANE, NIImporter_SUMO::Connection::tlID, NIImporter_SUMO::Connection::tlLinkNo, NIImporter_SUMO::Connection::toEdgeID, NIImporter_SUMO::Connection::toLaneIdx, toString(), WRITE_ERROR, and WRITE_MESSAGE.
Referenced by myStartElement().
|
private |
Parses an edge and stores the values in "myCurrentEdge".
[in] | attrs | The attributes to get the edge's values from |
Definition at line 324 of file NIImporter_SUMO.cpp.
References NIImporter_SUMO::EdgeAttrs::builtEdge, EDGEFUNC_INTERNAL, NIImporter_SUMO::EdgeAttrs::fromNode, NIImporter_SUMO::EdgeAttrs::func, StringBijection< T >::get(), SUMOSAXAttributes::getEdgeFunc(), SUMOSAXAttributes::getOptIntReporting(), SUMOSAXAttributes::getOptStringReporting(), SUMOSAXAttributes::getOptSUMORealReporting(), SUMOSAXAttributes::getShapeReporting(), SUMOSAXAttributes::getStringReporting(), NIImporter_SUMO::EdgeAttrs::id, LANESPREAD_RIGHT, SUMOXMLDefinitions::LaneSpreadFunctions, NIImporter_SUMO::EdgeAttrs::length, NIImporter_SUMO::EdgeAttrs::lsf, NIImporter_SUMO::EdgeAttrs::maxSpeed, myCurrentEdge, myLocation, NIImporter_SUMO::EdgeAttrs::priority, NIImporter_SUMO::EdgeAttrs::shape, NIImporter_SUMO::EdgeAttrs::streetName, SUMO_ATTR_FROM, SUMO_ATTR_ID, SUMO_ATTR_LENGTH, SUMO_ATTR_NAME, SUMO_ATTR_PRIORITY, SUMO_ATTR_SHAPE, SUMO_ATTR_SPREADTYPE, SUMO_ATTR_TO, SUMO_ATTR_TYPE, NIImporter_SUMO::EdgeAttrs::toNode, toString(), NILoader::transformCoordinates(), NIImporter_SUMO::EdgeAttrs::type, NBEdge::UNSPECIFIED_LOADED_LENGTH, and WRITE_ERROR.
Referenced by myStartElement().
|
private |
Parses a junction and saves it in the node control.
[in] | attrs | The attributes to get the junction's values from |
Definition at line 389 of file NIImporter_SUMO.cpp.
References PositionVector::around(), PositionVector::distance(), SUMOSAXAttributes::getNodeType(), SUMOSAXAttributes::getShapeReporting(), SUMOSAXAttributes::getStringReporting(), SUMOSAXAttributes::hasAttribute(), NBNodeCont::insert(), myLocation, myNodeCont, mySuspectKeepShape, NODETYPE_DEAD_END, NODETYPE_DEAD_END_DEPRECATED, PositionVector::push_back_noDoublePos(), readPosition(), PositionVector::size(), SUMO_ATTR_ID, SUMO_ATTR_SHAPE, NILoader::transformCoordinates(), WRITE_ERROR, and WRITE_WARNING.
Referenced by myStartElement().
|
private |
Parses a lane and stores the values in "myCurrentLane".
[in] | attrs | The attributes to get the lane's values from |
Definition at line 363 of file NIImporter_SUMO.cpp.
References NIImporter_SUMO::LaneAttrs::allow, NIImporter_SUMO::LaneAttrs::disallow, EDGEFUNC_INTERNAL, NIImporter_SUMO::EdgeAttrs::func, SUMOSAXAttributes::getOptStringReporting(), SUMOSAXAttributes::getOptSUMORealReporting(), SUMOSAXAttributes::getShapeReporting(), SUMOSAXAttributes::getStringReporting(), SUMOSAXAttributes::getSUMORealReporting(), NIImporter_SUMO::LaneAttrs::maxSpeed, myCurrentEdge, myCurrentLane, myLocation, NIImporter_SUMO::LaneAttrs::offset, NIImporter_SUMO::LaneAttrs::shape, SUMO_ATTR_ALLOW, SUMO_ATTR_DISALLOW, SUMO_ATTR_ENDOFFSET, SUMO_ATTR_ID, SUMO_ATTR_SHAPE, SUMO_ATTR_SPEED, SUMO_ATTR_WIDTH, SUMOReal, NILoader::transformCoordinates(), NBEdge::UNSPECIFIED_OFFSET, NBEdge::UNSPECIFIED_WIDTH, NIImporter_SUMO::LaneAttrs::width, and WRITE_ERROR.
Referenced by myStartElement().
|
static |
adds a phase to the traffic lights logic currently build
Definition at line 537 of file NIImporter_SUMO.cpp.
References NBLoadedSUMOTLDef::addPhase(), Named::getID(), NBTrafficLightDefinition::getProgramID(), SUMOSAXAttributes::getStringReporting(), SUMOSAXAttributes::getSUMORealReporting(), SUMO_ATTR_DURATION, SUMO_ATTR_STATE, TIME2STEPS, and WRITE_ERROR.
Referenced by NIXMLTrafficLightsHandler::myStartElement(), and myStartElement().
|
private |
Parses a prohibition and saves it.
[in] | attrs | The attributes to get the connection from |
Definition at line 464 of file NIImporter_SUMO.cpp.
References SUMOSAXAttributes::getOptStringReporting(), myProhibitions, parseProhibitionConnection(), NIImporter_SUMO::Prohibition::prohibitedFrom, NIImporter_SUMO::Prohibition::prohibitedTo, NIImporter_SUMO::Prohibition::prohibitorFrom, NIImporter_SUMO::Prohibition::prohibitorTo, SUMO_ATTR_PROHIBITED, and SUMO_ATTR_PROHIBITOR.
Referenced by myStartElement().
|
protectedinherited |
Builds an error message.
The error message includes the file name and the line/column information as supported by the given SAXParseException
[in] | exception | The name of the currently processed file |
Definition at line 193 of file GenericSAXHandler.cpp.
References GenericSAXHandler::getFileName().
Referenced by GenericSAXHandler::error(), GenericSAXHandler::fatalError(), and GenericSAXHandler::warning().
|
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.
recheck/describe what happens with characters when a new element is opened
describe characters processing in the class' head
Definition at line 176 of file GenericSAXHandler.cpp.
References TplConvert::_2str(), and GenericSAXHandler::myCharactersVector.
|
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.
recheck/describe encoding of the string-representation
do not generate and report the string-representation
Definition at line 126 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.
|
inherited |
Handler for XML-errors.
The message is built using buildErrorMessage and thrown within a ProcessError.
[in] | exception | The occured exception to process |
ProcessError | On any call |
Definition at line 212 of file GenericSAXHandler.cpp.
References GenericSAXHandler::buildErrorMessage().
|
inherited |
Handler for XML-errors.
The message is built using buildErrorMessage and thrown within a ProcessError.
ProcessError | On any call |
[in] | exception | The occured exception to process |
Definition at line 218 of file GenericSAXHandler.cpp.
References GenericSAXHandler::buildErrorMessage().
|
inherited |
returns the current file name
Definition at line 86 of file GenericSAXHandler.cpp.
References GenericSAXHandler::myFileName.
Referenced by NLHandler::addE1Detector(), NLHandler::addE2Detector(), NLHandler::addEdgeLaneMeanData(), NLHandler::addInstantE1Detector(), NLHandler::addPOI(), NLHandler::addPoly(), NLHandler::addRouteProbeDetector(), NLHandler::addVTypeProbeDetector(), NLHandler::beginE3Detector(), GenericSAXHandler::buildErrorMessage(), MSRouteLoader::init(), PCNetProjectionLoader::loadIfSet(), NILoader::loadXMLType(), MSTriggeredXMLReader::myInit(), GUISettingsHandler::myStartElement(), RODFDetectorHandler::myStartElement(), RORDLoader_TripDefs::myStartElement(), SUMORouteHandler::myStartElement(), RORDLoader_SUMOBase::myStartElement(), PCLoaderXML::myStartElement(), NLHandler::myStartElement(), NIImporter_OpenDrive::myStartElement(), RORDGenerator_ODAmounts::RORDGenerator_ODAmounts(), ROTypedXMLRoutesLoader::ROTypedXMLRoutesLoader(), XMLSubSys::runParser(), and GenericSAXHandler::startElement().
|
private |
Parses lane index from lane ID an retrieve lane from EdgeAttrs.
[in] | edge | The EdgeAttrs* which should contain the lane |
[in] | lane_id | The ID of the lane |
Definition at line 482 of file NIImporter_SUMO.cpp.
References NIImporter_SUMO::EdgeAttrs::id, interpretLaneID(), NIImporter_SUMO::EdgeAttrs::lanes, and WRITE_ERROR.
|
static |
begins the reading of a traffic lights logic
Definition at line 514 of file NIImporter_SUMO.cpp.
References Named::getID(), SUMOSAXAttributes::getOptStringReporting(), SUMOSAXAttributes::getStringReporting(), SUMOSAXAttributes::getSUMORealReporting(), SUMO_ATTR_ID, SUMO_ATTR_OFFSET, SUMO_ATTR_PROGRAMID, SUMO_ATTR_TYPE, TIME2STEPS, TLTYPE_STATIC, toString(), WRITE_ERROR, and WRITE_WARNING.
Referenced by myStartElement().
|
staticprivate |
parses edge-id and index from lane-id
[in] | lane_id | The lane-id |
[out] | edge_id | ID of this lane's edge |
[out] | index | Index of this lane |
Definition at line 497 of file NIImporter_SUMO.cpp.
References TplConvert::_2int(), and WRITE_ERROR.
Referenced by getLaneAttrsFromID().
|
static |
Parses network location description and registers it with GeoConveHelper::setLoaded.
Definition at line 601 of file NIImporter_SUMO.cpp.
References SUMOSAXAttributes::getBoundaryReporting(), SUMOSAXAttributes::getShapeReporting(), SUMOSAXAttributes::getStringReporting(), 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().
|
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.
[in] | oc | The options to use |
[in] | nb | The network builder to fill |
Definition at line 67 of file NIImporter_SUMO.cpp.
References _loadNetwork().
Referenced by NILoader::load().
|
protectedvirtualinherited |
Callback method for characters to implement by derived classes.
Called by "endElement" (see there).
[in] | element | The opened element, given as a int |
[in] | chars | The complete embedded character string ProcessError These method may throw a ProcessError if something fails |
Reimplemented in NIImporter_ITSUMO::Handler.
Definition at line 228 of file GenericSAXHandler.cpp.
Referenced by GenericSAXHandler::endElement().
|
protectedvirtual |
Called when a closing tag occurs.
[in] | element | ID of the currently opened element |
ProcessError | If something fails |
Reimplemented from GenericSAXHandler.
Definition at line 287 of file NIImporter_SUMO.cpp.
References Named::getID(), OptionsCont::getOptions(), NBTrafficLightDefinition::getProgramID(), NIImporter_SUMO::EdgeAttrs::id, NBTrafficLightLogicCont::insert(), NIImporter_SUMO::EdgeAttrs::lanes, MAX2(), NIImporter_SUMO::LaneAttrs::maxSpeed, NIImporter_SUMO::EdgeAttrs::maxSpeed, myCurrentEdge, myCurrentLane, myCurrentTL, myEdges, myTLLCont, SUMO_TAG_EDGE, SUMO_TAG_LANE, SUMO_TAG_TLLOGIC, WRITE_ERROR, and WRITE_WARNING.
|
protectedvirtual |
Called on the opening of a tag;.
In dependence to the obtained type, an appropriate parsing method is called ("addEdge" if an edge encounters, f.e.).
[in] | element | ID of the currently opened element |
[in] | attrs | Attributes within the currently opened element |
ProcessError | If something fails |
Reimplemented from GenericSAXHandler.
Definition at line 235 of file NIImporter_SUMO.cpp.
References addConnection(), addEdge(), addJunction(), addLane(), addPhase(), addProhibition(), OptionsCont::getOptions(), initTrafficLightLogic(), loadLocation(), myCurrentTL, myLocation, SUMO_TAG_CONNECTION, SUMO_TAG_EDGE, SUMO_TAG_JUNCTION, SUMO_TAG_LANE, SUMO_TAG_LOCATION, SUMO_TAG_PHASE, SUMO_TAG_PROHIBITION, and SUMO_TAG_TLLOGIC.
|
private |
parses connection string of a prohibition (very old school)
[in] | attr | The connection attribute |
[out] | from | ID of the source edge |
[out] | to | ID of the destination edge |
[out] | ok | Whether parsing completed successfully |
Definition at line 631 of file NIImporter_SUMO.cpp.
References myEdges, and WRITE_ERROR.
Referenced by addProhibition().
|
staticprivate |
read position from the given attributes, attribute errors to id
Definition at line 619 of file NIImporter_SUMO.cpp.
References SUMOSAXAttributes::getSUMORealReporting(), SUMOSAXAttributes::hasAttribute(), SUMO_ATTR_X, SUMO_ATTR_Y, SUMO_ATTR_Z, and SUMOReal.
Referenced by addJunction().
|
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
[in] | lanes | The list of lane attributes |
Definition at line 561 of file NIImporter_SUMO.cpp.
References Line::extrapolateBy(), NIImporter_SUMO::EdgeAttrs::id, Line::intersects(), Line::intersectsAt(), NBEdge::laneOffset(), NIImporter_SUMO::EdgeAttrs::lanes, NIImporter_SUMO::EdgeAttrs::lsf, PositionVector::push_back(), PositionVector::size(), SUMO_const_laneWidthAndOffset, WRITE_WARNING, Position::x(), and Position::y().
Referenced by _loadNetwork().
|
inherited |
Assigning a parent handler which is enabled when the specified tag is closed.
Definition at line 168 of file GenericSAXHandler.cpp.
References GenericSAXHandler::myParentHandler, GenericSAXHandler::myParentIndicator, and XMLSubSys::setHandler().
Referenced by NLTriggerBuilder::parseAndBuildLaneSpeedTrigger(), and NLTriggerBuilder::parseAndBuildRerouter().
|
inherited |
Sets the current file name.
[in] | name | The name of the currently processed file |
Definition at line 80 of file GenericSAXHandler.cpp.
References GenericSAXHandler::myFileName.
Referenced by _loadNetwork(), GUISettingsHandler::GUISettingsHandler(), NIImporter_OpenStreetMap::load(), PCNetProjectionLoader::loadIfSet(), loadNet(), ROLoader::loadNet(), NIImporter_ITSUMO::loadNetwork(), NIImporter_MATSim::loadNetwork(), NIImporter_OpenDrive::loadNetwork(), and XMLSubSys::runParser().
|
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.
recheck/describe encoding of the string-representation
do not generate and report the string-representation
Definition at line 105 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.
|
inherited |
Handler for XML-warnings.
The message is built using buildErrorMessage and reported to the warning-instance of the MsgHandler.
[in] | exception | The occured exception to process |
Definition at line 206 of file GenericSAXHandler.cpp.
References GenericSAXHandler::buildErrorMessage(), and WRITE_WARNING.
|
private |
The currently parsed edge's definition (to add loaded lanes to)
Definition at line 266 of file NIImporter_SUMO.h.
Referenced by addEdge(), addLane(), and myEndElement().
|
private |
The currently parsed lanes's definition (to add the shape to)
Definition at line 269 of file NIImporter_SUMO.h.
Referenced by addLane(), and myEndElement().
|
private |
The currently parsed traffic light.
Definition at line 272 of file NIImporter_SUMO.h.
Referenced by myEndElement(), and myStartElement().
|
private |
Loaded edge definitions.
Definition at line 251 of file NIImporter_SUMO.h.
Referenced by _loadNetwork(), addConnection(), myEndElement(), parseProhibitionConnection(), and ~NIImporter_SUMO().
|
private |
The coordinate transformation which was used to build the loaded network.
Definition at line 275 of file NIImporter_SUMO.h.
Referenced by addEdge(), addJunction(), addLane(), myStartElement(), and ~NIImporter_SUMO().
|
private |
The network builder to fill.
Definition at line 257 of file NIImporter_SUMO.h.
Referenced by _loadNetwork().
|
private |
The node container to fill.
Definition at line 260 of file NIImporter_SUMO.h.
Referenced by _loadNetwork(), and addJunction().
|
private |
Loaded prohibitions.
Definition at line 254 of file NIImporter_SUMO.h.
Referenced by _loadNetwork(), and addProhibition().
|
private |
whether we suspect a net that was built with xml.keep-shape
Definition at line 278 of file NIImporter_SUMO.h.
Referenced by _loadNetwork(), and addJunction().
|
private |
The node container to fill.
Definition at line 263 of file NIImporter_SUMO.h.
Referenced by _loadNetwork(), and myEndElement().