![]() |
SUMO - Simulation of Urban MObility
|
#include <NBPTLineCont.h>
Public Member Functions | |
void | addEdges2Keep (const OptionsCont &oc, std::set< std::string > &into) |
add edges that must be kept More... | |
std::vector< NBPTLine * >::const_iterator | begin () const |
Returns the pointer to the begin of the stored pt lines. More... | |
std::vector< NBPTLine * >::const_iterator | end () const |
Returns the pointer to the end of the stored pt lines. More... | |
void | fixBidiStops (const NBEdgeCont &ec) |
select the correct stop on superposed rail edges More... | |
const std::vector< NBPTLine * > & | getLines () const |
std::set< std::string > & | getServedPTStops () |
void | insert (NBPTLine *pLine) |
insert new line More... | |
NBPTLineCont () | |
constructor More... | |
void | process (NBEdgeCont &cont) |
~NBPTLineCont () | |
destructor More... | |
Private Member Functions | |
void | constructRoute (NBPTLine *myPTLine, NBEdgeCont &cont) |
void | reviseStops (NBPTLine *myPTLine, NBEdgeCont &cont) |
Static Private Member Functions | |
static double | getCost (const NBEdgeCont &ec, SUMOAbstractRouter< NBEdge, NBVehicle > &router, const NBPTStop *from, const NBPTStop *to, const NBVehicle *veh) |
Private Attributes | |
long long int | myIdCnt |
std::vector< NBPTLine * > | myPTLines |
The map of names to pt lines. More... | |
std::set< std::string > | myServedPTStops |
Static Private Attributes | |
static const int | BWD |
static const int | FWD |
Definition at line 27 of file NBPTLineCont.h.
NBPTLineCont::NBPTLineCont | ( | ) |
constructor
Definition at line 40 of file NBPTLineCont.cpp.
NBPTLineCont::~NBPTLineCont | ( | ) |
void NBPTLineCont::addEdges2Keep | ( | const OptionsCont & | oc, |
std::set< std::string > & | into | ||
) |
add edges that must be kept
Definition at line 295 of file NBPTLineCont.cpp.
References OptionsCont::isSet(), and myPTLines.
Referenced by NBRampsComputer::computeRamps(), getLines(), and NBNodeCont::removeUnwishedNodes().
|
inline |
Returns the pointer to the begin of the stored pt lines.
Definition at line 42 of file NBPTLineCont.h.
References myPTLines.
Referenced by NWWriter_XML::writePTLines().
|
private |
Definition at line 177 of file NBPTLineCont.cpp.
References NBPTLine::addEdgeVector(), NBPTStop::getEdgeId(), NBPTLine::getLineID(), NBPTLine::getMyWays(), NBPTLine::getName(), NBPTLine::getStops(), NBEdgeCont::retrieve(), toString(), and WRITE_WARNING.
Referenced by process().
|
inline |
Returns the pointer to the end of the stored pt lines.
Definition at line 49 of file NBPTLineCont.h.
References myPTLines.
Referenced by NWWriter_XML::writePTLines().
void NBPTLineCont::fixBidiStops | ( | const NBEdgeCont & | ec | ) |
select the correct stop on superposed rail edges
Definition at line 313 of file NBPTLineCont.cpp.
References NBEdgeCont::getAllEdges(), NBPTStop::getBidiStop(), getCost(), NBPTStop::getID(), NBEdge::getTravelTimeStatic(), myPTLines, SVC_BUS, SVC_RAIL, SVC_RAIL_URBAN, SVC_SHIP, SVC_TRAM, toString(), and WRITE_WARNING.
Referenced by NBNetBuilder::compute(), and getLines().
|
staticprivate |
Definition at line 412 of file NBPTLineCont.cpp.
References SUMOAbstractRouter< E, V >::compute(), NBEdgeCont::getByID(), NBPTStop::getEdgeId(), and SUMOAbstractRouter< E, V >::recomputeCosts().
Referenced by fixBidiStops().
|
inline |
Definition at line 53 of file NBPTLineCont.h.
References addEdges2Keep(), fixBidiStops(), getServedPTStops(), myPTLines, and process().
Referenced by NBRailwayTopologyAnalyzer::addBidiEdgesForStops().
std::set< std::string > & NBPTLineCont::getServedPTStops | ( | ) |
Definition at line 307 of file NBPTLineCont.cpp.
References myServedPTStops.
Referenced by NBNetBuilder::compute(), and getLines().
void NBPTLineCont::insert | ( | NBPTLine * | pLine | ) |
insert new line
Definition at line 53 of file NBPTLineCont.cpp.
References myIdCnt, myPTLines, and NBPTLine::setId().
Referenced by NIXMLPTHandler::addPTLine(), and NIImporter_OpenStreetMap::RelationHandler::myEndElement().
void NBPTLineCont::process | ( | NBEdgeCont & | cont | ) |
Definition at line 57 of file NBPTLineCont.cpp.
References constructRoute(), myPTLines, and reviseStops().
Referenced by NBNetBuilder::compute(), and getLines().
|
private |
Definition at line 70 of file NBPTLineCont.cpp.
References BWD, FWD, NBEdgeCont::getByID(), Named::getID(), NBPTLine::getMyWays(), NBPTLine::getName(), NBPTLine::getRef(), NBPTStopCont::getReverseEdge(), NBPTLine::getStops(), NBPTLine::getWaysNodes(), myServedPTStops, and WRITE_WARNING.
Referenced by process().
|
staticprivate |
Definition at line 69 of file NBPTLineCont.h.
Referenced by reviseStops().
|
staticprivate |
Definition at line 68 of file NBPTLineCont.h.
Referenced by reviseStops().
|
private |
Definition at line 74 of file NBPTLineCont.h.
Referenced by insert().
|
private |
The map of names to pt lines.
Definition at line 72 of file NBPTLineCont.h.
Referenced by addEdges2Keep(), begin(), end(), fixBidiStops(), getLines(), insert(), process(), and ~NBPTLineCont().
|
private |
Definition at line 78 of file NBPTLineCont.h.
Referenced by getServedPTStops(), and reviseStops().