36 #include <xercesc/sax/HandlerBase.hpp>
37 #include <xercesc/sax/SAXException.hpp>
38 #include <xercesc/sax/AttributeList.hpp>
216 void parseLanes(
const std::string& junctionID,
const std::string& def, std::vector<MSLane*>& into,
bool& ok);
void beginE3Detector(const SUMOSAXAttributes &attrs)
Starts building of an e3 detector using the given specification.
void addPoly(const SUMOSAXAttributes &attrs)
adds a polygon
void addWAUTJunction(const SUMOSAXAttributes &attrs)
Builds detectors for microsim.
virtual void addE2Detector(const SUMOSAXAttributes &attrs)
Builds an e2 detector using the given specification.
bool myCurrentIsInternalToSkip
Information whether the currently parsed edge is internal and not wished, here.
bool myHaveWarnedAboutDeprecatedLanes
virtual void openWAUT(const SUMOSAXAttributes &attrs)
Position myNetworkOffset
The network offset.
void parseLanes(const std::string &junctionID, const std::string &def, std::vector< MSLane * > &into, bool &ok)
virtual void addVTypeProbeDetector(const SUMOSAXAttributes &attrs)
Builds a vtype-detector using the given specification.
void addRoundabout(const SUMOSAXAttributes &attrs)
NLDetectorBuilder & myDetectorBuilder
The detector builder to use.
virtual void addE1Detector(const SUMOSAXAttributes &attrs)
Builds an e1 detector using the given specification.
NLHandler(const std::string &file, MSNet &net, NLDetectorBuilder &detBuilder, NLTriggerBuilder &triggerBuilder, NLEdgeControlBuilder &edgeBuilder, NLJunctionControlBuilder &junctionBuilder)
Constructor.
void beginEdgeParsing(const SUMOSAXAttributes &attrs)
begins the processing of an edge
std::string myCurrentDistrictID
The id of the current district.
virtual void endE3Detector()
Builds of an e3 detector using collected values.
A class that stores a 2D geometrical boundary.
The simulated network and simulation perfomer.
bool myAmInTLLogicMode
internal information whether a tls-logic is currently read
LinkDirection
The different directions a link between two lanes may take (or a stream between two edges)...
void addParam(const SUMOSAXAttributes &attrs)
void addDistrict(const SUMOSAXAttributes &attrs)
void setLocation(const SUMOSAXAttributes &attrs)
Parses network location description.
Boundary myOrigBoundary
The network's boundaries.
virtual void openJunction(const SUMOSAXAttributes &attrs)
opens a junction for processing
NLEdgeControlBuilder & myEdgeControlBuilder
The edge builder to use.
void addE3Entry(const SUMOSAXAttributes &attrs)
Adds an entry to the currently processed e3 detector.
std::vector< MSLane * > LaneVector
Definition of a lane vector.
Encapsulated SAX-Attributes.
void addE3Exit(const SUMOSAXAttributes &attrs)
Adds an exit to the currently processed e3 detector.
Builder of microsim-junctions and tls.
A point in 2D or 3D with translation and scaling methods.
void addWAUTSwitch(const SUMOSAXAttributes &attrs)
void addRequest(const SUMOSAXAttributes &attrs)
adds a request item to the current junction logic
void addConnection(const SUMOSAXAttributes &attrs)
adds a connection
LinkState
The right-of-way state of a link between two lanes used when constructing a NBTrafficLightLogic, in MSLink and GNEInternalLane.
virtual void myStartElement(int element, const SUMOSAXAttributes &attrs)
Called on the opening of a tag;.
bool myHaveSeenInternalEdge
whether the loaded network contains internal lanes
LinkDirection parseLinkDir(const std::string &dir)
Parses the given character into an enumeration typed link direction.
An upper class for objects with additional parameters.
std::string myCurrentWAUTID
The id of the currently processed WAUT.
virtual void addInstantE1Detector(const SUMOSAXAttributes &attrs)
Builds an e1 detector using the given specification.
virtual void closeEdge()
Closes the process of building an edge.
virtual void addRouteProbeDetector(const SUMOSAXAttributes &attrs)
Builds a routeProbe-detector using the given specification.
void addLane(const SUMOSAXAttributes &attrs)
adds a lane to the previously opened edge
virtual ~NLHandler()
Destructor.
NLTriggerBuilder & myTriggerBuilder
The trigger builder to use.
bool haveSeenInternalEdge() const
NLHandler & operator=(const NLHandler &s)
void addPhase(const SUMOSAXAttributes &attrs)
adds a phase to the traffic lights logic currently build
void addDistrictEdge(const SUMOSAXAttributes &attrs, bool isSource)
MSNet & myNet
The net to fill (preinitialised)
LinkState parseLinkState(const std::string &state)
Parses the given character into an enumeration typed link state.
The parent class for traffic light logics.
NLDiscreteEventBuilder myActionBuilder
A builder for object actions.
virtual void myEndElement(int element)
Called when a closing tag occurs.
virtual void addEdgeLaneMeanData(const SUMOSAXAttributes &attrs, int objecttype)
Builds edge or lane base mean data collector using the given specification.
Builds trigger objects for microsim.
void initJunctionLogic(const SUMOSAXAttributes &attrs)
begins the reading of a junction row logic
Parameterised * myLastParameterised
NLJunctionControlBuilder & myJunctionControlBuilder
The junction builder to use.
Parser and container for routes during their loading.
void initTrafficLightLogic(const SUMOSAXAttributes &attrs)
begins the reading of a traffic lights logic
Interface for building edges.
void addPOI(const SUMOSAXAttributes &attrs)
adds a polygon