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