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,
59 const std::vector<NBPTStop*>&
getStops();
61 void addWayNode(
long long int way,
long long int node);
83 bool isConsistent(
const std::vector<NBEdge*>& stops)
const;
106 inline const std::vector<std::string>&
getWays()
const {
110 std::vector<long long int>*
getWaysNodes(std::string wayId);
131 void setEdges(
const std::vector<NBEdge*>& edges);
136 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.
const std::string & getType() const
void deleteDuplicateStops()
std::vector< NBPTStop * > myPTStops
SUMOVehicleClass myVClass
bool isConsistent(const std::vector< NBEdge * > &stops) const
return whether the mentioned edges appear in that order in the route
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
const std::vector< NBPTStop * > & getStops()
void removeInvalidEdges(const NBEdgeCont &ec)
remove invalid edges from the line
const std::string & getName() const
std::vector< std::pair< NBEdge *, std::string > > getStopEdges(const NBEdgeCont &ec) const
get stop edges and stop ids
const std::string & getLineID() const
std::vector< long long int > * getWaysNodes(std::string wayId)
SUMOVehicleClass getVClass() const
const std::string & getRef() const
get line reference (not unique)
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)
std::string myNightService
NBEdge * getRouteStart(const NBEdgeCont &ec) const
return first valid edge of myRoute (if it doest not lie after the first stop)
const std::vector< std::string > & getWays() const
std::map< std::string, std::vector< long long int > > myWaysNodes
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
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.