39 explicit NBPTLine(
const std::string&
id,
const std::string& name,
40 const std::string& type,
const std::string& ref,
int interval,
const std::string& nightService,
59 void addWayNode(
long long int way,
long long int node);
96 std::map<std::string, std::vector<long long int> >
myWaysNodes;
99 const std::vector<std::string>&
getMyWays()
const;
100 std::vector<long long int>*
getWaysNodes(std::string wayId);
114 void setEdges(
const std::vector<NBEdge*>& edges);
119 const std::vector<NBEdge*>&
getRoute()
const;
std::vector< NBEdge * > EdgeVector
container for (sorted) edges
SUMOVehicleClass
Definition of vehicle classes to differ between different lane usage and authority types.
Storage for edges, including some functionality operating on multiple edges.
The representation of a single edge during network building.
std::vector< NBPTStop * > myPTStops
SUMOVehicleClass myVClass
void setName(const std::string &name)
void addPTStop(NBPTStop *pStop)
std::vector< std::string > myWays
void replaceStops(std::vector< NBPTStop * > stops)
std::vector< NBEdge * > myRoute
const std::vector< std::string > & getMyWays() const
const std::string & getLineID() const
void write(OutputDevice &device, NBEdgeCont &ec)
const std::string & getType() const
std::vector< long long int > * getWaysNodes(std::string wayId)
NBEdge * getRouteEnd(const NBEdgeCont &ec) const
return last valid edge of myRoute (if it doest not lie before the last stop)
const std::vector< NBEdge * > & getRoute() const
void addWayNode(long long int way, long long int node)
const std::string & getName() const
const std::string & getRef() const
get line reference (not unique)
std::string myNightService
NBEdge * getRouteStart(const NBEdgeCont &ec) const
return first valid edge of myRoute (if it doest not lie after the first stop)
std::map< std::string, std::vector< long long int > > myWaysNodes
std::vector< NBEdge * > getStopEdges(const NBEdgeCont &ec) const
get stop edges
void setMyNumOfStops(int numStops)
void replaceStop(NBPTStop *oldStop, NBPTStop *newStop)
replace the given stop
void replaceEdge(const std::string &edgeID, const EdgeVector &replacement)
replace the edge with the given edge list
std::vector< NBPTStop * > getStops()
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 setEdges(const std::vector< NBEdge * > &edges)
The representation of a single pt stop.
Static storage of an output device and its base (abstract) implementation.