22 #ifndef NIXMLEdgesHandler_h
23 #define NIXMLEdgesHandler_h
Importer for network edges stored in XML.
LaneSpreadFunction myLanesSpread
Information about how to spread the lanes.
Finds a split at the given position.
int nameid
A numerical id.
std::string myCurrentID
The current edge's id.
PositionVector myShape
The shape of the edge.
A container for traffic light definitions and built programs.
bool setNodes(const SUMOSAXAttributes &attrs)
Sets from/to node information of the currently parsed edge.
The representation of a single edge during network building.
NBNode * myFromNode
The nodes the edge starts and ends at.
A container for districts.
NIXMLEdgesHandler(NBNodeCont &nc, NBEdgeCont &ec, NBTypeCont &tc, NBDistrictCont &dc, NBTrafficLightLogicCont &tlc, OptionsCont &options)
Constructor.
bool myHaveReportedAboutOverwriting
Information whether at least one edge's attributes were overwritten.
NBDistrictCont & myDistrictCont
The districts container (needed if an edge must be split)
SAX-handler base for SUMO-files.
NIXMLEdgesHandler & operator=(const NIXMLEdgesHandler &s)
invalid assignment operator
bool operator()(const Split &e)
Comparing operator.
const bool myKeepEdgeShape
Whether the edge shape shall be kept generally.
bool myReinitKeepEdgeShape
Whether the edge shape shall be kept at reinitilization.
void addEdge(const SUMOSAXAttributes &attrs)
Parses an edge and stores the values in "myCurrentEdge".
~NIXMLEdgesHandler()
Destructor.
std::vector< Split > mySplits
The list of this edge's splits.
bool myHaveWarnedAboutDeprecatedLaneId
int operator()(const Split &e1, const Split &e2) const
Comparing operator.
Encapsulated SAX-Attributes.
void deleteEdge(const SUMOSAXAttributes &attrs)
parses delete tag and deletes the specified edge
A point in 2D or 3D with translation and scaling methods.
A structure which describes changes of lane number along the road.
void addSplit(const SUMOSAXAttributes &attrs)
Parses a split and stores it in mySplits. Splits are executed Upon reading the end tag of an edge...
std::string myCurrentType
The current edge's type.
Storage for edges, including some functionality operating on multiple edges.
std::vector< int > lanes
The lanes until this change.
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) ...
Sorts splits by their position (increasing)
LaneSpreadFunction tryGetLaneSpread(const SUMOSAXAttributes &attrs)
Tries to parse the spread type.
SUMOReal myPosition
The position to search for.
SVCPermissions myPermissions
Information about lane permissions.
bool myIsUpdate
Whether this edge definition is an update of a previously inserted edge.
SUMOReal myCurrentSpeed
The current edge's maximum speed.
void myEndElement(int element)
Called when a closing tag occurs.
A storage for options typed value containers)
NBEdge * myCurrentEdge
The currently processed edge.
OptionsCont & myOptions
A reference to the program's options.
LaneSpreadFunction
Numbers representing special SUMO-XML-attribute values Information how the edge's lateral offset shal...
NBTypeCont & myTypeCont
The types container (for retrieval of type defaults)
Represents a single node (junction) during network building.
Position gpos
A 2D-position (for the node to insert at this place)
SUMOReal myCurrentOffset
The current edge's offset till the destination node.
void myStartElement(int element, const SUMOSAXAttributes &attrs)
Called on the opening of a tag;.
NBEdgeCont & myEdgeCont
The edges container (for insertion of build edges)
int myCurrentLaneNo
The current edge's number of lanes.
Container for nodes during the netbuilding process.
SUMOReal myCurrentWidth
The current edge's lane width.
SUMOReal myLength
The current edge's length.
SUMOReal pos
The position of this change.
std::string myCurrentStreetName
The current edge's street name.
split_by_pos_finder(SUMOReal pos)
Constructor.
split_sorter()
Constructor.
void addLane(const SUMOSAXAttributes &attrs)
Parses a lane and modifies myCurrentEdge according to the given attribures.
int myCurrentPriority
The current edge's priority.
A storage for available types of edges.
PositionVector tryGetShape(const SUMOSAXAttributes &attrs)
Tries to parse the shape definition.