![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <NBPTLineCont.h>
Public Member Functions | |
| void | fixBidiStops (const NBEdgeCont &ec) |
| select the correct stop on superposed rail edges | |
| void | fixPermissions () |
| ensure that all turn lanes have sufficient permissions | |
| const std::map< std::string, NBPTLine * > & | getLines () const |
| std::set< std::string > | getServedPTStops () |
| bool | insert (NBPTLine *ptLine) |
| insert new line | |
| void | process (NBEdgeCont &ec, NBPTStopCont &sc, bool routeOnly=false) |
| void | removeInvalidEdges (const NBEdgeCont &ec) |
| filter out edges that were removed due to –geometry.remove | |
| void | replaceEdge (const std::string &edgeID, const EdgeVector &replacement) |
| replace the edge with the given edge list in all lines | |
| NBPTLine * | retrieve (const std::string &lineID) |
| ~NBPTLineCont () | |
| destructor | |
Private Member Functions | |
| void | constructRoute (NBPTLine *myPTLine, const NBEdgeCont &cont) |
| std::shared_ptr< NBPTStop > | findWay (NBPTLine *line, std::shared_ptr< NBPTStop > stop, const NBEdgeCont &ec, NBPTStopCont &sc) const |
| void | reviseSingleWayStops (NBPTLine *line, const NBEdgeCont &ec, NBPTStopCont &sc) |
| void | reviseStops (NBPTLine *line, const NBEdgeCont &ec, NBPTStopCont &sc) |
| find directional edge for all stops of the line | |
Static Private Member Functions | |
| static double | getCost (const NBEdgeCont &ec, SUMOAbstractRouter< NBRouterEdge, NBVehicle > &router, const std::shared_ptr< NBPTStop > from, const std::shared_ptr< NBPTStop > to, const NBVehicle *veh) |
| static std::string | getWayID (const std::string &edgeID) |
Private Attributes | |
| std::map< std::string, std::set< NBPTLine * > > | myPTLineLookup |
| The map of edge ids to lines that use this edge in their route. | |
| std::map< std::string, NBPTLine * > | myPTLines |
| The map of names to pt lines. | |
Static Private Attributes | |
| static const int | BWD |
| static const int | FWD |
Definition at line 33 of file NBPTLineCont.h.
| NBPTLineCont::~NBPTLineCont | ( | ) |
|
private |
Definition at line 305 of file NBPTLineCont.cpp.
References DEBUGLINEID, Named::getIDSecure(), NBPTLine::getLineID(), NBPTLine::getName(), NBPTLine::getVClass(), NBPTLine::getWays(), isRailway(), NBEdgeCont::retrieve(), NBPTLine::setEdges(), and toString().
Referenced by process().
|
private |
Definition at line 222 of file NBPTLineCont.cpp.
References DEBUGSTOPID, PositionVector::distance2D(), NBPTStopCont::findStop(), OptionsCont::getFloat(), NBEdge::getID(), Named::getIDSecure(), NBEdge::getLaneShape(), NBPTLine::getLineID(), OptionsCont::getOptions(), NBPTLine::getRoute(), getWayID(), NBPTLine::getWays(), NBPTStopCont::insert(), NBPTLine::replaceStop(), TL, toString(), and WRITE_WARNINGF.
Referenced by reviseSingleWayStops(), and reviseStops().
| void NBPTLineCont::fixBidiStops | ( | const NBEdgeCont & | ec | ) |
select the correct stop on superposed rail edges
Definition at line 483 of file NBPTLineCont.cpp.
References NBEdgeCont::getAllRouterEdges(), getCost(), NBPTLine::getLineID(), NBPTLine::getRef(), NBPTLine::getStops(), NBRouterEdge::getTravelTimeStatic(), NBPTLine::getType(), myPTLines, NBPTLine::replaceStops(), SVC_BUS, SVC_RAIL, SVC_RAIL_URBAN, SVC_SHIP, SVC_TRAM, TL, and WRITE_WARNINGF.
Referenced by NBNetBuilder::compute().
| void NBPTLineCont::fixPermissions | ( | ) |
ensure that all turn lanes have sufficient permissions
Definition at line 593 of file NBPTLineCont.cpp.
References NBEdge::getConnectionsFromLane(), NBEdge::getPermissions(), NBPTLine::getRoute(), NBPTLine::getVClass(), myPTLines, and NBEdge::setPermissions().
Referenced by NBNetBuilder::compute().
|
staticprivate |
Definition at line 623 of file NBPTLineCont.cpp.
References SUMOAbstractRouter< E, V >::compute(), NBEdge::getBidiEdge(), NBEdgeCont::getByID(), and SUMOAbstractRouter< E, V >::recomputeCosts().
Referenced by fixBidiStops().
|
inline |
Definition at line 43 of file NBPTLineCont.h.
References myPTLines.
Referenced by NBRailwayTopologyAnalyzer::addBidiEdgesForStops(), NBNetBuilder::compute(), NBRailwayTopologyAnalyzer::findBidiCandidates(), NBRailwayTopologyAnalyzer::repairTopology(), and NWWriter_XML::writePTLines().
| std::set< std::string > NBPTLineCont::getServedPTStops | ( | ) |
Definition at line 470 of file NBPTLineCont.cpp.
References NBPTLine::getStops(), and myPTLines.
Referenced by NBNetBuilder::compute().
|
staticprivate |
Definition at line 649 of file NBPTLineCont.cpp.
Referenced by findWay().
| bool NBPTLineCont::insert | ( | NBPTLine * | ptLine | ) |
insert new line
Definition at line 60 of file NBPTLineCont.cpp.
References NBPTLine::getLineID(), and myPTLines.
Referenced by NIXMLPTHandler::addPTLine(), and NIXMLPTHandler::addPTLineFromFlow().
| void NBPTLineCont::process | ( | NBEdgeCont & | ec, |
| NBPTStopCont & | sc, | ||
| bool | routeOnly = false |
||
| ) |
Definition at line 79 of file NBPTLineCont.cpp.
References constructRoute(), NBPTLine::deleteInvalidStops(), NBPTLine::getRoute(), NBPTLine::getStops(), myPTLines, reviseStops(), and NBPTLine::setEdges().
Referenced by NBNetBuilder::compute().
| void NBPTLineCont::removeInvalidEdges | ( | const NBEdgeCont & | ec | ) |
filter out edges that were removed due to –geometry.remove
Definition at line 585 of file NBPTLineCont.cpp.
References myPTLines.
Referenced by NBNetBuilder::compute().
| void NBPTLineCont::replaceEdge | ( | const std::string & | edgeID, |
| const EdgeVector & | replacement | ||
| ) |
replace the edge with the given edge list in all lines
Definition at line 449 of file NBPTLineCont.cpp.
References myPTLineLookup, and myPTLines.
Referenced by NBEdgeCont::joinTramEdges(), and NBNodeCont::removeUnwishedNodes().
| NBPTLine * NBPTLineCont::retrieve | ( | const std::string & | lineID | ) |
Definition at line 70 of file NBPTLineCont.cpp.
References myPTLines.
Referenced by NIXMLPTHandler::addPTLine().
|
private |
Definition at line 202 of file NBPTLineCont.cpp.
References findWay(), NBPTLine::getRef(), NBPTLine::getStops(), and NBPTLine::getWays().
Referenced by reviseStops().
|
private |
find directional edge for all stops of the line
Definition at line 114 of file NBPTLineCont.cpp.
References BWD, findWay(), FWD, NBEdgeCont::getByID(), NBEdge::getID(), NBPTLine::getLineID(), NBPTLine::getRef(), NBPTStopCont::getReverseEdge(), NBPTStopCont::getReverseStop(), NBPTLine::getRoute(), NBPTLine::getStops(), NBPTLine::getWayNodes(), NBPTLine::getWays(), NBPTStopCont::insert(), NBPTLine::replaceStop(), reviseSingleWayStops(), TL, and WRITE_WARNINGF.
Referenced by process().
|
staticprivate |
Definition at line 65 of file NBPTLineCont.h.
Referenced by reviseStops().
|
staticprivate |
Definition at line 64 of file NBPTLineCont.h.
Referenced by reviseStops().
|
private |
The map of edge ids to lines that use this edge in their route.
Definition at line 87 of file NBPTLineCont.h.
Referenced by replaceEdge().
|
private |
The map of names to pt lines.
Definition at line 68 of file NBPTLineCont.h.
Referenced by fixBidiStops(), fixPermissions(), getLines(), getServedPTStops(), insert(), process(), removeInvalidEdges(), replaceEdge(), retrieve(), and ~NBPTLineCont().