 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
64 Position getLanePos(
const std::string& poiID,
const std::string& laneID,
double lanePos,
double lanePosLat);
235 void parseLanes(
const std::string& junctionID,
const std::string& def, std::vector<MSLane*>& into,
bool& ok);
349 typedef std::map<std::string, std::pair<std::string, std::string> >
JunctionGraph;
virtual void openJunction(const SUMOSAXAttributes &attrs)
opens a junction for processing
bool myHaveSeenInternalEdge
whether the loaded network contains internal lanes
Parameterised myLastEdgeParameters
std::vector< MSLane * > LaneVector
Definition of a lane vector.
The XML-Handler for shapes loading network loading.
void addRequest(const SUMOSAXAttributes &attrs)
adds a request item to the current junction logic
An upper class for objects with additional parameters.
Interface for building edges.
bool myLefthand
whether the loaded network was built for left hand traffic
double networkVersion() const
std::string myCurrentDistrictID
The id of the current district.
bool myHaveSeenNeighs
whether the loaded network contains explicit neighbor lanes
std::map< std::string, std::pair< std::string, std::string > > JunctionGraph
temporary data for building the junction graph after network parsing is finished
bool haveSeenAdditionalSpeedRestrictions() const
The simulated network and simulation perfomer.
NLTriggerBuilder & myTriggerBuilder
The trigger builder to use.
virtual void addInstantE1Detector(const SUMOSAXAttributes &attrs)
Builds an e1 detector using the given specification.
virtual void addRouteProbeDetector(const SUMOSAXAttributes &attrs)
Builds a routeProbe-detector using the given specification.
void beginE3Detector(const SUMOSAXAttributes &attrs)
Starts building of an e3 detector using the given specification.
void setLocation(const SUMOSAXAttributes &attrs)
Parses network location description.
virtual void addE2Detector(const SUMOSAXAttributes &attrs)
Builds an e2 detector using the given specification.
Storage for geometrical objects.
void addDistrictEdge(const SUMOSAXAttributes &attrs, bool isSource)
void addParam(const SUMOSAXAttributes &attrs)
void addDistrict(const SUMOSAXAttributes &attrs)
Builds trigger objects for microsim.
virtual void openWAUT(const SUMOSAXAttributes &attrs)
bool myNetIsLoaded
whether the location element was already loadee
void addPhase(const SUMOSAXAttributes &attrs)
adds a phase to the traffic lights logic currently build
LinkDirection
The different directions a link between two lanes may take (or a stream between two edges)....
std::vector< Parameterised * > myLastParameterised
virtual void closeEdge()
Closes the process of building an edge.
LinkState parseLinkState(const std::string &state)
Parses the given character into an enumeration typed link state.
NLEdgeControlBuilder & myEdgeControlBuilder
The edge builder to use.
bool haveSeenInternalEdge() const
JunctionGraph myJunctionGraph
virtual void myEndElement(int element)
Called when a closing tag occurs.
bool myHaveWarnedAboutInvalidTLType
void addConnection(const SUMOSAXAttributes &attrs)
adds a connection
Position myNetworkOffset
The network offset.
Builder of microsim-junctions and tls.
NLDiscreteEventBuilder myActionBuilder
A builder for object actions.
virtual void addEdgeLaneMeanData(const SUMOSAXAttributes &attrs, int objecttype)
Builds edge or lane base mean data collector using the given specification.
LinkState
The right-of-way state of a link between two lanes used when constructing a NBTrafficLightLogic,...
LinkDirection parseLinkDir(const std::string &dir)
Parses the given character into an enumeration typed link direction.
std::string myCurrentWAUTID
The id of the currently processed WAUT.
virtual void addE1Detector(const SUMOSAXAttributes &attrs)
Builds an e1 detector using the given specification.
NLJunctionControlBuilder & myJunctionControlBuilder
The junction builder to use.
bool haveSeenNeighs() const
NLHandler(const std::string &file, MSNet &net, NLDetectorBuilder &detBuilder, NLTriggerBuilder &triggerBuilder, NLEdgeControlBuilder &edgeBuilder, NLJunctionControlBuilder &junctionBuilder)
Constructor.
A class that stores a 2D geometrical boundary.
void addLane(const SUMOSAXAttributes &attrs)
adds a lane to the previously opened edge
A point in 2D or 3D with translation and scaling methods.
virtual ~NLHandler()
Destructor.
void addWAUTJunction(const SUMOSAXAttributes &attrs)
The parent class for traffic light logics.
bool myCurrentIsInternalToSkip
Information whether the currently parsed edge is internal and not wished, here.
Boundary myOrigBoundary
The network's boundaries.
MSNet & myNet
The net to fill (preinitialised)
void addE3Entry(const SUMOSAXAttributes &attrs)
Adds an entry to the currently processed e3 detector.
NLDetectorBuilder & myDetectorBuilder
The detector builder to use.
std::string myCurrentTypeID
The id of the currently processed edge type.
void initJunctionLogic(const SUMOSAXAttributes &attrs)
begins the reading of a junction row logic
virtual void addVTypeProbeDetector(const SUMOSAXAttributes &attrs)
Builds a vtype-detector using the given specification.
Position getLanePos(const std::string &poiID, const std::string &laneID, double lanePos, double lanePosLat)
get position for a given laneID (Has to be implemented in all child)
virtual bool addLanePosParams()
Whether some input attributes shall be automatically added as params (Can be implemented in all child...
virtual void myStartElement(int element, const SUMOSAXAttributes &attrs)
Called on the opening of a tag;.
Parser and container for routes during their loading.
void beginEdgeParsing(const SUMOSAXAttributes &attrs)
begins the processing of an edge
virtual void endE3Detector()
Builds of an e3 detector using collected values.
The XML-Handler for network loading.
void initTrafficLightLogic(const SUMOSAXAttributes &attrs)
begins the reading of a traffic lights logic
The XML-Handler for network loading.
virtual ~NLShapeHandler()
Destructor.
NLShapeHandler(const std::string &file, ShapeContainer &sc)
bool myAmParsingTLLogicOrJunction
internal information whether a tls-logic is currently read
NLHandler & operator=(const NLHandler &s)
Encapsulated SAX-Attributes.
void addWAUTSwitch(const SUMOSAXAttributes &attrs)
bool myHaveSeenAdditionalSpeedRestrictions
whether additional files contained type-specific speed limits
double myNetworkVersion
the loaded network version
Builds detectors for microsim.
void parseLanes(const std::string &junctionID, const std::string &def, std::vector< MSLane * > &into, bool &ok)
void addRoundabout(const SUMOSAXAttributes &attrs)
void addE3Exit(const SUMOSAXAttributes &attrs)
Adds an exit to the currently processed e3 detector.