 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
17 #ifndef NIXMLTrafficLightsHandler_h
18 #define NIXMLTrafficLightsHandler_h
Storage for edges, including some functionality operating on multiple edges.
SAX-handler base for SUMO-files.
A container for traffic light definitions and built programs.
int retrieveLaneIndex(const SUMOSAXAttributes &attrs, SumoXMLAttr attr, NBEdge *edge, bool &ok, bool isDelete=false)
parses a lane index and verifies its correctness
Importer for edge connections stored in XML.
NBTrafficLightLogicCont & myTLLCont
The traffic light container to fill.
NIXMLTrafficLightsHandler(NBTrafficLightLogicCont &tlCont, NBEdgeCont &ec, bool ignoreUnknown=false)
Constructor.
The representation of a single edge during network building.
~NIXMLTrafficLightsHandler()
Destructor.
void myStartElement(int element, const SUMOSAXAttributes &attrs)
Called on the opening of a tag;.
void removeTlConnection(const SUMOSAXAttributes &attrs)
reads and removes tl-controlled connection
NBEdgeCont & myEdgeCont
The edge container for retrieving edges.
NIXMLTrafficLightsHandler & operator=(const NIXMLTrafficLightsHandler &s)
invalidated assignment operator
NBLoadedSUMOTLDef * myCurrentTL
The currently parsed traffic light.
bool myIgnoreUnknown
whether definitions for unknown traffic lights shall be silently ignored
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
Encapsulated SAX-Attributes.
void addTlConnection(const SUMOSAXAttributes &attrs)
reads and adds tl-controlled connection
NBLoadedSUMOTLDef * initTrafficLightLogic(const SUMOSAXAttributes &attrs, NBLoadedSUMOTLDef *currentTL)
NBEdge * retrieveEdge(const SUMOSAXAttributes &attrs, SumoXMLAttr attr, bool &ok)
parses and edge id an returns an existing edge
void myEndElement(int element)
Called when a closing tag occurs.
bool myResetPhases
whether phases of a previously loaded traffic light must be reset
A loaded (complete) traffic light logic.