![]() |
Eclipse 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... | |
void | fixBidiStops (const NBEdgeCont &ec) |
select the correct stop on superposed rail edges More... | |
const std::map< std::string, NBPTLine * > & | getLines () const |
std::set< std::string > & | getServedPTStops () |
void | insert (NBPTLine *ptLine) |
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< NBRouterEdge, NBVehicle > &router, const NBPTStop *from, const NBPTStop *to, const NBVehicle *veh) |
Private Attributes | |
std::map< std::string, 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 287 of file NBPTLineCont.cpp.
References OptionsCont::isSet(), and myPTLines.
Referenced by NBRampsComputer::computeRamps(), getLines(), and NBNodeCont::removeUnwishedNodes().
|
private |
Definition at line 169 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().
void NBPTLineCont::fixBidiStops | ( | const NBEdgeCont & | ec | ) |
select the correct stop on superposed rail edges
Definition at line 305 of file NBPTLineCont.cpp.
References NBEdgeCont::getAllRouterEdges(), NBPTStop::getBidiStop(), getCost(), NBPTStop::getID(), NBPTLine::getLineID(), NBPTLine::getRef(), NBPTLine::getStops(), NBRouterEdge::getTravelTimeStatic(), NBPTLine::getType(), myPTLines, NBPTLine::replaceStops(), 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 405 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 39 of file NBPTLineCont.h.
References addEdges2Keep(), fixBidiStops(), getServedPTStops(), myPTLines, and process().
Referenced by NBRailwayTopologyAnalyzer::addBidiEdgesForStops(), NIImporter_OpenStreetMap::RelationHandler::myEndElement(), and NWWriter_XML::writePTLines().
std::set< std::string > & NBPTLineCont::getServedPTStops | ( | ) |
Definition at line 299 of file NBPTLineCont.cpp.
References myServedPTStops.
Referenced by NBNetBuilder::compute(), and getLines().
void NBPTLineCont::insert | ( | NBPTLine * | ptLine | ) |
insert new line
Definition at line 51 of file NBPTLineCont.cpp.
References NBPTLine::getLineID(), and myPTLines.
Referenced by NIXMLPTHandler::addPTLine(), and NIImporter_OpenStreetMap::RelationHandler::myEndElement().
void NBPTLineCont::process | ( | NBEdgeCont & | cont | ) |
Definition at line 55 of file NBPTLineCont.cpp.
References constructRoute(), myPTLines, and reviseStops().
Referenced by NBNetBuilder::compute(), and getLines().
|
private |
Definition at line 62 of file NBPTLineCont.cpp.
References BWD, FWD, NBEdgeCont::getByID(), NBEdge::getID(), NBPTLine::getMyWays(), NBPTLine::getName(), NBPTLine::getRef(), NBPTStopCont::getReverseEdge(), NBPTLine::getStops(), NBPTLine::getWaysNodes(), myServedPTStops, and WRITE_WARNING.
Referenced by process().
|
staticprivate |
Definition at line 55 of file NBPTLineCont.h.
Referenced by reviseStops().
|
staticprivate |
Definition at line 54 of file NBPTLineCont.h.
Referenced by reviseStops().
|
private |
The map of names to pt lines.
Definition at line 58 of file NBPTLineCont.h.
Referenced by addEdges2Keep(), fixBidiStops(), getLines(), insert(), process(), and ~NBPTLineCont().
|
private |
Definition at line 63 of file NBPTLineCont.h.
Referenced by getServedPTStops(), and reviseStops().