![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <NBPTLine.h>
Public Member Functions | |
void | addPTStop (NBPTStop *pStop) |
void | addWayNode (long long int way, long long int node) |
const std::string & | getLineID () const |
const std::vector< std::string > & | getMyWays () const |
const std::string & | getName () const |
const std::string & | getRef () const |
get line reference (not unique) More... | |
const std::vector< NBEdge * > & | getRoute () const |
NBEdge * | getRouteEnd (const NBEdgeCont &ec) const |
return last valid edge of myRoute (if it doest not lie before the last stop) More... | |
NBEdge * | getRouteStart (const NBEdgeCont &ec) const |
return first valid edge of myRoute (if it doest not lie after the first stop) More... | |
std::vector< NBEdge * > | getStopEdges (const NBEdgeCont &ec) const |
get stop edges More... | |
std::vector< NBPTStop * > | getStops () |
const std::string & | getType () const |
std::vector< long long int > * | getWaysNodes (std::string wayId) |
NBPTLine (const std::string &id, const std::string &name, const std::string &type, const std::string &ref, int interval, const std::string &nightService, SUMOVehicleClass vClass) | |
void | replaceStop (NBPTStop *oldStop, NBPTStop *newStop) |
replace the given stop More... | |
void | replaceStops (std::vector< NBPTStop * > stops) |
void | setEdges (const std::vector< NBEdge * > &edges) |
void | setMyNumOfStops (int numStops) |
void | write (OutputDevice &device, NBEdgeCont &ec) |
Private Attributes | |
std::string | myCurrentWay |
int | myInterval |
std::string | myName |
std::string | myNightService |
int | myNumOfStops |
std::string | myPTLineId |
std::vector< NBPTStop * > | myPTStops |
std::string | myRef |
std::vector< NBEdge * > | myRoute |
std::string | myType |
SUMOVehicleClass | myVClass |
std::vector< std::string > | myWays |
std::map< std::string, std::vector< long long int > > | myWaysNodes |
Definition at line 33 of file NBPTLine.h.
|
explicit |
Definition at line 27 of file NBPTLine.cpp.
void NBPTLine::addPTStop | ( | NBPTStop * | pStop | ) |
Definition at line 38 of file NBPTLine.cpp.
References myPTStops.
Referenced by NIXMLPTHandler::addPTLineStop(), and NIImporter_OpenStreetMap::RelationHandler::myEndElement().
void NBPTLine::addWayNode | ( | long long int | way, |
long long int | node | ||
) |
Definition at line 90 of file NBPTLine.cpp.
References myCurrentWay, myWays, myWaysNodes, and toString().
Referenced by NIImporter_OpenStreetMap::RelationHandler::myEndElement().
|
inline |
Definition at line 42 of file NBPTLine.h.
References myPTLineId.
Referenced by NIXMLPTHandler::addPTLineStop(), NBPTLineCont::constructRoute(), NBPTLineCont::findWay(), NBPTLineCont::fixBidiStops(), NBPTLineCont::insert(), NIImporter_OpenStreetMap::RelationHandler::myEndElement(), and NBPTLineCont::reviseStops().
const std::vector< std::string > & NBPTLine::getMyWays | ( | ) | const |
Definition at line 99 of file NBPTLine.cpp.
References myWays.
Referenced by NBPTLineCont::constructRoute(), NBPTLineCont::findWay(), and NBPTLineCont::reviseStops().
|
inline |
Definition at line 46 of file NBPTLine.h.
References myName.
Referenced by NIXMLPTHandler::addRoute(), and NBPTLineCont::constructRoute().
|
inline |
get line reference (not unique)
Definition at line 61 of file NBPTLine.h.
References myRef.
Referenced by NBRailwayTopologyAnalyzer::addBidiEdgesForStops(), NBPTLineCont::fixBidiStops(), and NBPTLineCont::reviseStops().
const std::vector< NBEdge * > & NBPTLine::getRoute | ( | ) | const |
Definition at line 136 of file NBPTLine.cpp.
References myRoute.
Referenced by NBPTLineCont::findWay(), and NBPTLineCont::reviseStops().
NBEdge * NBPTLine::getRouteEnd | ( | const NBEdgeCont & | ec | ) | const |
return last valid edge of myRoute (if it doest not lie before the last stop)
Definition at line 182 of file NBPTLine.cpp.
References NBEdge::getID(), myPTLineId, myPTStops, myRoute, NBEdgeCont::retrieve(), and WRITE_WARNING.
Referenced by NBRailwayTopologyAnalyzer::addBidiEdgesForStops().
NBEdge * NBPTLine::getRouteStart | ( | const NBEdgeCont & | ec | ) | const |
return first valid edge of myRoute (if it doest not lie after the first stop)
Definition at line 153 of file NBPTLine.cpp.
References NBEdge::getID(), myPTLineId, myPTStops, myRoute, NBEdgeCont::retrieve(), and WRITE_WARNING.
Referenced by NBRailwayTopologyAnalyzer::addBidiEdgesForStops().
std::vector< NBEdge * > NBPTLine::getStopEdges | ( | const NBEdgeCont & | ec | ) | const |
get stop edges
Definition at line 141 of file NBPTLine.cpp.
References myPTStops, and NBEdgeCont::retrieve().
Referenced by NBRailwayTopologyAnalyzer::addBidiEdgesForStops().
std::vector< NBPTStop * > NBPTLine::getStops | ( | ) |
Definition at line 43 of file NBPTLine.cpp.
References myPTStops.
Referenced by NBPTLineCont::fixBidiStops(), NIXMLPTHandler::myEndElement(), NIImporter_OpenStreetMap::RelationHandler::myEndElement(), and NBPTLineCont::reviseStops().
|
inline |
Definition at line 50 of file NBPTLine.h.
References myType.
Referenced by NBPTLineCont::fixBidiStops().
std::vector< long long int > * NBPTLine::getWaysNodes | ( | std::string | wayId | ) |
Definition at line 102 of file NBPTLine.cpp.
References myWaysNodes.
Referenced by NBPTLineCont::reviseStops().
replace the given stop
Definition at line 211 of file NBPTLine.cpp.
References myPTStops.
Referenced by NBPTLineCont::findWay().
|
inline |
Definition at line 65 of file NBPTLine.h.
References myPTStops.
Referenced by NBPTLineCont::fixBidiStops().
void NBPTLine::setEdges | ( | const std::vector< NBEdge * > & | edges | ) |
Definition at line 110 of file NBPTLine.cpp.
References myRoute, myVClass, SUMO_const_laneWidth, SVC_BICYCLE, and SVC_PEDESTRIAN.
Referenced by NIXMLPTHandler::addRoute(), and NBPTLineCont::constructRoute().
void NBPTLine::setMyNumOfStops | ( | int | numStops | ) |
Definition at line 133 of file NBPTLine.cpp.
References myNumOfStops.
Referenced by NIXMLPTHandler::myEndElement(), and NIImporter_OpenStreetMap::RelationHandler::myEndElement().
void NBPTLine::write | ( | OutputDevice & | device, |
NBEdgeCont & | ec | ||
) |
Definition at line 47 of file NBPTLine.cpp.
References OutputDevice::closeTag(), StringUtils::escapeXML(), myInterval, myName, myNightService, myNumOfStops, myPTLineId, myPTStops, myRef, myRoute, myType, myVClass, OutputDevice::openTag(), NBEdgeCont::retrieve(), SUMO_ATTR_EDGES, SUMO_ATTR_ID, SUMO_ATTR_LINE, SUMO_ATTR_NAME, SUMO_ATTR_PERIOD, SUMO_ATTR_TYPE, SUMO_ATTR_VCLASS, SUMO_TAG_BUS_STOP, SUMO_TAG_PT_LINE, SUMO_TAG_ROUTE, toString(), and OutputDevice::writeAttr().
|
private |
Definition at line 93 of file NBPTLine.h.
Referenced by addWayNode().
|
private |
Definition at line 96 of file NBPTLine.h.
Referenced by write().
|
private |
Definition at line 81 of file NBPTLine.h.
|
private |
Definition at line 97 of file NBPTLine.h.
Referenced by write().
|
private |
Definition at line 109 of file NBPTLine.h.
Referenced by setMyNumOfStops(), and write().
|
private |
Definition at line 94 of file NBPTLine.h.
Referenced by getLineID(), getRouteEnd(), getRouteStart(), and write().
|
private |
Definition at line 83 of file NBPTLine.h.
Referenced by addPTStop(), getRouteEnd(), getRouteStart(), getStopEdges(), getStops(), replaceStop(), replaceStops(), and write().
|
private |
Definition at line 95 of file NBPTLine.h.
|
private |
Definition at line 104 of file NBPTLine.h.
Referenced by getRoute(), getRouteEnd(), getRouteStart(), setEdges(), and write().
|
private |
Definition at line 82 of file NBPTLine.h.
|
private |
Definition at line 98 of file NBPTLine.h.
Referenced by setEdges(), and write().
|
private |
Definition at line 87 of file NBPTLine.h.
Referenced by addWayNode(), and getMyWays().
|
private |
Definition at line 86 of file NBPTLine.h.
Referenced by addWayNode(), and getWaysNodes().