 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
20 #ifndef NIXMLEdgesHandler_h
21 #define NIXMLEdgesHandler_h
void addSplit(const SUMOSAXAttributes &attrs)
Parses a split and stores it in mySplits. Splits are executed Upon reading the end tag of an edge.
Importer for network edges stored in XML.
void myEndElement(int element)
Called when a closing tag occurs.
NIXMLEdgesHandler & operator=(const NIXMLEdgesHandler &s)
invalid assignment operator
bool myIsUpdate
Whether this edge definition is an update of a previously inserted edge.
Storage for edges, including some functionality operating on multiple edges.
SAX-handler base for SUMO-files.
std::vector< Parameterised * > myLastParameterised
element to receive parameters
A container for traffic light definitions and built programs.
split_by_pos_finder(double pos)
Constructor.
NBEdgeCont & myEdgeCont
The edges container (for insertion of build edges)
double myCurrentSpeed
The current edge's maximum speed.
OptionsCont & myOptions
A reference to the program's options.
NIXMLEdgesHandler(NBNodeCont &nc, NBEdgeCont &ec, NBTypeCont &tc, NBDistrictCont &dc, NBTrafficLightLogicCont &tlc, OptionsCont &options)
Constructor.
NBTypeCont & myTypeCont
The types container (for retrieval of type defaults)
void addEdge(const SUMOSAXAttributes &attrs)
Parses an edge and stores the values in "myCurrentEdge".
A container for districts.
bool myReinitKeepEdgeShape
Whether the edge shape shall be kept at reinitilization.
Container for nodes during the netbuilding process.
The representation of a single edge during network building.
Finds a split at the given position.
double myCurrentEndOffset
The current edge's offset till the destination node.
std::string myCurrentType
The current edge's type.
int SVCPermissions
bitset where each bit declares whether a certain SVC may use this edge/lane
double myBikeLaneWidth
The width of the bike lane that shall be added to the current edge.
double mySidewalkWidth
The width of the sidewalk that shall be added to the current edge.
PositionVector myShape
The shape of the edge.
bool myHaveReportedAboutOverwriting
Information whether at least one edge's attributes were overwritten.
NBNodeCont & myNodeCont
The nodes container (for retrieval of referenced nodes)
NBTrafficLightLogicCont & myTLLogicCont
The traffic lights container to add built tls to (when invalidating tls because of splits)
NBNode * myFromNode
The nodes the edge starts and ends at.
double myPosition
The position to search for.
double myLength
The current edge's length.
A storage for options typed value containers)
NBEdge * myCurrentEdge
The currently processed edge.
~NIXMLEdgesHandler()
Destructor.
double pos
The position of this change.
bool operator()(const NBEdgeCont::Split &e)
Comparing operator.
bool myHaveWarnedAboutDeprecatedLaneId
NBDistrictCont & myDistrictCont
The districts container (needed if an edge must be split)
void addLane(const SUMOSAXAttributes &attrs)
Parses a lane and modifies myCurrentEdge according to the given attribures.
bool setNodes(const SUMOSAXAttributes &attrs)
Sets from/to node information of the currently parsed edge.
std::vector< NBEdgeCont::Split > mySplits
The list of this edge's splits.
double myCurrentWidth
The current edge's lane width.
LaneSpreadFunction myLanesSpread
Information about how to spread the lanes.
SVCPermissions myPermissions
Information about lane permissions.
void deleteEdge(const SUMOSAXAttributes &attrs)
parses delete tag and deletes the specified edge or lane
A storage for available types of edges.
const bool myKeepEdgeShape
Whether the edge shape shall be kept generally.
void myStartElement(int element, const SUMOSAXAttributes &attrs)
Called on the opening of a tag;.
int myCurrentLaneIndex
The currently processed lane index.
bool myHaveReportedAboutTypeOverride
Information whether at least one edge's type was changed.
LaneSpreadFunction
Numbers representing special SUMO-XML-attribute values Information how the edge's lateral offset shal...
std::string myCurrentStreetName
The current edge's street name.
void addRoundabout(const SUMOSAXAttributes &attrs)
Parses a roundabout and stores it in myEdgeCont.
Represents a single node (junction) during network building.
Encapsulated SAX-Attributes.
A structure which describes changes of lane number or speed along the road.
int myCurrentLaneNo
The current edge's number of lanes.
PositionVector tryGetShape(const SUMOSAXAttributes &attrs)
Tries to parse the shape definition.
int myCurrentPriority
The current edge's priority.
LaneSpreadFunction tryGetLaneSpread(const SUMOSAXAttributes &attrs)
Tries to parse the spread type.
std::string myCurrentID
The current edge's id.