41 NBPTLine(
const std::string&
id,
const std::string& name,
42 const std::string& type,
const std::string& ref,
int interval,
const std::string& nightService,
61 void addWayNode(
long long int way,
long long int node);
112 const std::vector<std::string>&
getMyWays()
const;
113 std::vector<long long int>*
getWaysNodes(std::string wayId);
129 void setEdges(
const std::vector<NBEdge*>& edges);
134 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.
void deleteDuplicateStops()
std::vector< NBPTStop * > myPTStops
SUMOVehicleClass myVClass
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, RGBColor color)
void setName(const std::string &name)
void addPTStop(NBPTStop *pStop)
std::vector< std::string > myWays
void deleteInvalidStops(const NBEdgeCont &ec, const NBPTStopCont &sc)
remove invalid stops from the line
void replaceStops(std::vector< NBPTStop * > stops)
void write(OutputDevice &device)
std::vector< NBEdge * > myRoute
void removeInvalidEdges(const NBEdgeCont &ec)
remove invalid edges from the line
const std::vector< std::string > & getMyWays() const
const std::string & getLineID() const
const std::string & getType() const
std::vector< long long int > * getWaysNodes(std::string wayId)
SUMOVehicleClass getVClass() const
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()
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.