 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
27 NBPTLine::NBPTLine(
const std::string&
id,
const std::string& name,
const std::string& type,
const std::string& ref,
int interval,
const std::string& nightService) :
31 myRef(ref !=
"" ? ref : name),
33 myNightService(nightService) {
62 std::vector<std::string> validEdgeIDs;
67 validEdgeIDs.push_back(e->getID());
std::vector< NBEdge * > myRoute
NBEdge * retrieve(const std::string &id, bool retrieveExtracted=false) const
Returns the edge that has the given id.
Storage for edges, including some functionality operating on multiple edges.
Static storage of an output device and its base (abstract) implementation.
std::vector< NBPTStop * > getStops()
std::vector< long long int > * getWaysNodes(std::string wayId)
std::vector< NBPTStop * > myPTStops
void setMyNumOfStops(int numStops)
std::string myNightService
void write(OutputDevice &device, NBEdgeCont &ec)
The representation of a single edge during network building.
bool closeTag(const std::string &comment="")
Closes the most recently opened tag and optionally adds a comment.
NBPTLine(const std::string &id, const std::string &name, const std::string &type, const std::string &ref, int interval, const std::string &nightService)
OutputDevice & writeAttr(const SumoXMLAttr attr, const T &val)
writes a named attribute
std::vector< std::string > myWays
static std::string escapeXML(const std::string &orig, const bool maskDoubleHyphen=false)
Replaces the standard escapes by their XML entities.
void addPTStop(NBPTStop *pStop)
const std::vector< NBEdge * > & getRoute() const
std::map< std::string, std::vector< long long int > > myWaysNodes
OutputDevice & openTag(const std::string &xmlElement)
Opens an XML tag.
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
const std::vector< std::string > & getMyWays() const
begin/end of the description of a route
void addEdgeVector(std::vector< NBEdge * >::iterator fr, std::vector< NBEdge * >::iterator to)
void addWayNode(long long int way, long long int node)
The representation of a single pt stop.