![]() |
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 &ec, NBPTStopCont &sc) |
| ~NBPTLineCont () | |
| destructor More... | |
Private Member Functions | |
| void | constructRoute (NBPTLine *myPTLine, NBEdgeCont &cont) |
| NBPTStop * | findWay (NBPTLine *line, NBPTStop *stop, const NBEdgeCont &ec, NBPTStopCont &sc) const |
| void | reviseStops (NBPTLine *line, const NBEdgeCont &ec, NBPTStopCont &sc) |
| find directional edge for all stops of the line More... | |
Static Private Member Functions | |
| static double | getCost (const NBEdgeCont &ec, SUMOAbstractRouter< NBRouterEdge, NBVehicle > &router, const NBPTStop *from, const NBPTStop *to, const NBVehicle *veh) |
| static std::string | getWayID (const std::string &edgeID) |
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 26 of file NBPTLineCont.h.
| NBPTLineCont::NBPTLineCont | ( | ) |
constructor
Definition at line 42 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 333 of file NBPTLineCont.cpp.
References OptionsCont::isSet(), and myPTLines.
Referenced by NBRampsComputer::computeRamps().
|
private |
Definition at line 231 of file NBPTLineCont.cpp.
References NBPTLine::getLineID(), NBPTLine::getMyWays(), NBPTLine::getName(), NBEdgeCont::retrieve(), NBPTLine::setEdges(), toString(), and WRITE_WARNING.
Referenced by process().
|
private |
Definition at line 149 of file NBPTLineCont.cpp.
References DEBUGSTOPID, PositionVector::distance2D(), NBPTStopCont::findStop(), NBPTStop::getEdgeId(), OptionsCont::getFloat(), NBPTStop::getID(), NBEdge::getID(), Named::getIDSecure(), NBEdge::getLaneShape(), NBPTStop::getLength(), NBPTLine::getLineID(), NBPTStop::getMyAdditionalEdgeCandidates(), NBPTLine::getMyWays(), NBPTStop::getName(), OptionsCont::getOptions(), NBPTStop::getOrigEdgeId(), NBPTStop::getPermissions(), NBPTStop::getPosition(), NBPTLine::getRoute(), getWayID(), NBPTStopCont::insert(), NBPTStop::isLoose(), NBPTLine::replaceStop(), NBPTStop::setEdgeId(), NBPTStop::setMyOrigEdgeId(), toString(), and WRITE_WARNING.
Referenced by reviseStops().
| void NBPTLineCont::fixBidiStops | ( | const NBEdgeCont & | ec | ) |
select the correct stop on superposed rail edges
Definition at line 351 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().
|
staticprivate |
Definition at line 450 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 38 of file NBPTLineCont.h.
References myPTLines.
Referenced by NBRailwayTopologyAnalyzer::addBidiEdgesForStops(), and NWWriter_XML::writePTLines().
| std::set< std::string > & NBPTLineCont::getServedPTStops | ( | ) |
Definition at line 345 of file NBPTLineCont.cpp.
References myServedPTStops.
Referenced by NBNetBuilder::compute().
|
staticprivate |
Definition at line 468 of file NBPTLineCont.cpp.
Referenced by findWay().
| void NBPTLineCont::insert | ( | NBPTLine * | ptLine | ) |
insert new line
Definition at line 53 of file NBPTLineCont.cpp.
References NBPTLine::getLineID(), and myPTLines.
Referenced by NIXMLPTHandler::addPTLine().
| void NBPTLineCont::process | ( | NBEdgeCont & | ec, |
| NBPTStopCont & | sc | ||
| ) |
Definition at line 57 of file NBPTLineCont.cpp.
References constructRoute(), myPTLines, and reviseStops().
Referenced by NBNetBuilder::compute().
|
private |
find directional edge for all stops of the line
Definition at line 69 of file NBPTLineCont.cpp.
References BWD, findWay(), FWD, NBEdgeCont::getByID(), NBEdge::getID(), NBPTLine::getLineID(), NBPTLine::getMyWays(), NBPTLine::getRef(), NBPTStopCont::getReverseEdge(), NBPTLine::getRoute(), NBPTLine::getStops(), NBPTLine::getWaysNodes(), myServedPTStops, and WRITE_WARNING.
Referenced by process().
|
staticprivate |
Definition at line 54 of file NBPTLineCont.h.
Referenced by reviseStops().
|
staticprivate |
Definition at line 53 of file NBPTLineCont.h.
Referenced by reviseStops().
|
private |
The map of names to pt lines.
Definition at line 57 of file NBPTLineCont.h.
Referenced by addEdges2Keep(), fixBidiStops(), getLines(), insert(), process(), and ~NBPTLineCont().
|
private |
Definition at line 68 of file NBPTLineCont.h.
Referenced by getServedPTStops(), and reviseStops().