![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <NBPTLine.h>
Public Member Functions | |
void | addEdgeVector (std::vector< NBEdge *>::iterator fr, std::vector< NBEdge *>::iterator to) |
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 |
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) | |
void | replaceStops (std::vector< NBPTStop *> stops) |
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 |
std::vector< std::string > | myWays |
std::map< std::string, std::vector< long long int > > | myWaysNodes |
Definition at line 34 of file NBPTLine.h.
|
explicit |
Definition at line 27 of file NBPTLine.cpp.
void NBPTLine::addEdgeVector | ( | std::vector< NBEdge *>::iterator | fr, |
std::vector< NBEdge *>::iterator | to | ||
) |
Definition at line 109 of file NBPTLine.cpp.
References myRoute.
Referenced by NBPTLineCont::constructRoute().
void NBPTLine::addPTStop | ( | NBPTStop * | pStop | ) |
Definition at line 36 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 getType(), and NIImporter_OpenStreetMap::RelationHandler::myEndElement().
|
inline |
Definition at line 42 of file NBPTLine.h.
References myPTLineId.
Referenced by NIXMLPTHandler::addPTLineStop(), NBPTLineCont::constructRoute(), NBPTLineCont::fixBidiStops(), NBPTLineCont::insert(), and NIImporter_OpenStreetMap::RelationHandler::myEndElement().
const std::vector< std::string > & NBPTLine::getMyWays | ( | ) | const |
Definition at line 99 of file NBPTLine.cpp.
References myWays.
Referenced by NBPTLineCont::constructRoute(), and NBPTLineCont::reviseStops().
|
inline |
Definition at line 46 of file NBPTLine.h.
References myName.
Referenced by NBPTLineCont::constructRoute(), and NBPTLineCont::reviseStops().
|
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 116 of file NBPTLine.cpp.
References myRoute.
std::vector< NBPTStop * > NBPTLine::getStops | ( | ) |
Definition at line 41 of file NBPTLine.cpp.
References myPTStops.
Referenced by NBRailwayTopologyAnalyzer::addBidiEdgesForStops(), NBPTLineCont::constructRoute(), NBPTLineCont::fixBidiStops(), getType(), NIXMLPTHandler::myEndElement(), NIImporter_OpenStreetMap::RelationHandler::myEndElement(), and NBPTLineCont::reviseStops().
|
inline |
Definition at line 50 of file NBPTLine.h.
References addWayNode(), getStops(), myType, setMyNumOfStops(), and write().
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().
|
inline |
Definition at line 65 of file NBPTLine.h.
References myPTStops.
Referenced by NBPTLineCont::fixBidiStops().
void NBPTLine::setMyNumOfStops | ( | int | numStops | ) |
Definition at line 113 of file NBPTLine.cpp.
References myNumOfStops.
Referenced by getType(), NIXMLPTHandler::myEndElement(), and NIImporter_OpenStreetMap::RelationHandler::myEndElement().
void NBPTLine::write | ( | OutputDevice & | device, |
NBEdgeCont & | ec | ||
) |
Definition at line 44 of file NBPTLine.cpp.
References OutputDevice::closeTag(), StringUtils::escapeXML(), myInterval, myName, myNightService, myNumOfStops, myPTLineId, myPTStops, myRef, myRoute, myType, OutputDevice::openTag(), NBEdgeCont::retrieve(), SUMO_ATTR_EDGES, SUMO_ATTR_ID, SUMO_ATTR_LINE, SUMO_ATTR_NAME, SUMO_ATTR_PERIOD, SUMO_ATTR_TYPE, SUMO_TAG_BUS_STOP, SUMO_TAG_PT_LINE, SUMO_TAG_ROUTE, toString(), and OutputDevice::writeAttr().
Referenced by getType().
|
private |
Definition at line 82 of file NBPTLine.h.
Referenced by addWayNode().
|
private |
Definition at line 85 of file NBPTLine.h.
Referenced by write().
|
private |
Definition at line 70 of file NBPTLine.h.
|
private |
Definition at line 86 of file NBPTLine.h.
Referenced by write().
|
private |
Definition at line 97 of file NBPTLine.h.
Referenced by setMyNumOfStops(), and write().
|
private |
Definition at line 83 of file NBPTLine.h.
Referenced by getLineID(), and write().
|
private |
Definition at line 72 of file NBPTLine.h.
Referenced by addPTStop(), getStops(), replaceStops(), and write().
|
private |
Definition at line 84 of file NBPTLine.h.
|
private |
Definition at line 92 of file NBPTLine.h.
Referenced by addEdgeVector(), getRoute(), and write().
|
private |
Definition at line 71 of file NBPTLine.h.
|
private |
Definition at line 76 of file NBPTLine.h.
Referenced by addWayNode(), and getMyWays().
|
private |
Definition at line 75 of file NBPTLine.h.
Referenced by addWayNode(), and getWaysNodes().