![]() |
SUMO - Simulation of Urban MObility
|
#include <SUMOAbstractRouter.h>
Public Types | |
typedef double(* | Operation) (const E *const, const V *const, double) |
Type of the function that is used to retrieve the edge effort. More... | |
Public Member Functions | |
virtual SUMOAbstractRouter * | clone ()=0 |
virtual bool | compute (const E *from, const E *to, const V *const vehicle, SUMOTime msTime, std::vector< const E *> &into)=0 |
Builds the route between the given edges using the minimum effort at the given time The definition of the effort depends on the wished routing scheme. More... | |
void | endQuery (int visits) |
double | getEffort (const E *const e, const V *const v, double t) const |
double | getTravelTime (const E *const e, const V *const v, const double t, const double effort) const |
bool | isProhibited (const E *const edge, const V *const vehicle) const |
void | prohibit (const std::vector< E *> &toProhibit) |
double | recomputeCosts (const std::vector< const E *> &edges, const V *const v, SUMOTime msTime) const |
void | setBulkMode (const bool mode) |
void | startQuery () |
SUMOAbstractRouterPermissions (const std::string &type, typename SUMOAbstractRouter< E, V >::Operation operation=nullptr, typename SUMOAbstractRouter< E, V >::Operation ttOperation=nullptr) | |
Constructor. More... | |
void | updateViaCost (const E *const prev, const E *const e, const V *const v, double &time, double &effort, double &length) const |
virtual | ~SUMOAbstractRouterPermissions () |
Destructor. More... | |
Protected Attributes | |
bool | myBulkMode |
whether we are currently operating several route queries in a bulk More... | |
Operation | myOperation |
The object's operation to perform. More... | |
std::vector< E * > | myProhibited |
Operation | myTTOperation |
The object's operation to perform for travel times. More... | |
Definition at line 216 of file SUMOAbstractRouter.h.
|
inherited |
Type of the function that is used to retrieve the edge effort.
Definition at line 96 of file SUMOAbstractRouter.h.
|
inline |
Constructor.
Definition at line 219 of file SUMOAbstractRouter.h.
|
inlinevirtual |
Destructor.
Definition at line 224 of file SUMOAbstractRouter.h.
|
pure virtualinherited |
Implemented in AStarRouter< MSEdge, SUMOVehicle, SUMOAbstractRouterPermissions< MSEdge, SUMOVehicle > >, IntermodalRouter< E, L, N, V >, PedestrianRouter< E, L, N, V >, and ROJTRRouter.
Referenced by LandmarkLookupTable< E, V >::LandmarkLookupTable(), and SUMOAbstractRouter< E, IntermodalTrip< E, N, V > >::~SUMOAbstractRouter().
|
pure virtualinherited |
Builds the route between the given edges using the minimum effort at the given time The definition of the effort depends on the wished routing scheme.
Implemented in IntermodalRouter< E, L, N, V >, AStarRouter< MSEdge, SUMOVehicle, SUMOAbstractRouterPermissions< MSEdge, SUMOVehicle > >, and PedestrianRouter< E, L, N, V >.
Referenced by NBRailwayTopologyAnalyzer::addBidiEdgesForStops(), libsumo::Vehicle::changeTarget(), TraCIServerAPI_Simulation::commandDistanceRequest(), IntermodalRouter< E, L, N, V >::compute(), libsumo::Simulation::findRoute(), NBPTLineCont::getCost(), libsumo::Simulation::getDistance2D(), libsumo::Simulation::getDistanceRoad(), ROMAAssignments::getKPaths(), ROMAAssignments::incremental(), LandmarkLookupTable< E, V >::LandmarkLookupTable(), MSTriggeredRerouter::notifyEnter(), RORouteDef::repairCurrentRoute(), MSBaseVehicle::reroute(), MSTriggeredRerouter::rerouteParkingArea(), MSVehicle::rerouteParkingArea(), ROMAAssignments::sue(), and SUMOAbstractRouter< E, IntermodalTrip< E, N, V > >::~SUMOAbstractRouter().
|
inlineinherited |
Definition at line 180 of file SUMOAbstractRouter.h.
|
inlineinherited |
Definition at line 171 of file SUMOAbstractRouter.h.
Referenced by IntermodalRouter< E, L, N, V >::compute(), CHBuilder< E, V >::synchronize(), and SUMOAbstractRouter< E, IntermodalTrip< E, N, V > >::updateViaCost().
|
inlineinherited |
Definition at line 128 of file SUMOAbstractRouter.h.
Referenced by SUMOAbstractRouter< E, IntermodalTrip< E, N, V > >::updateViaCost().
|
inlinevirtual |
Reimplemented from SUMOAbstractRouter< E, V >.
Definition at line 227 of file SUMOAbstractRouter.h.
|
inline |
Definition at line 234 of file SUMOAbstractRouter.h.
Referenced by MSRoutingEngine::getRouterTT(), and IntermodalRouter< E, L, N, V >::prohibit().
|
inlineinherited |
Definition at line 155 of file SUMOAbstractRouter.h.
Referenced by RORouteDef::addAlternative(), computeRoutes(), libsumo::Simulation::findRoute(), NBPTLineCont::getCost(), LandmarkLookupTable< E, V >::LandmarkLookupTable(), MSTriggeredRerouter::notifyEnter(), MSBaseVehicle::reroute(), MSTriggeredRerouter::rerouteParkingArea(), MSVehicle::rerouteParkingArea(), and ROMAAssignments::sue().
|
inlineinherited |
Definition at line 185 of file SUMOAbstractRouter.h.
Referenced by ROMAAssignments::incremental().
|
inlineinherited |
Definition at line 175 of file SUMOAbstractRouter.h.
|
inlineinherited |
Definition at line 132 of file SUMOAbstractRouter.h.
Referenced by IntermodalRouter< E, L, N, V >::compute(), and SUMOAbstractRouter< E, IntermodalTrip< E, N, V > >::recomputeCosts().
|
protectedinherited |
whether we are currently operating several route queries in a bulk
Definition at line 197 of file SUMOAbstractRouter.h.
Referenced by SUMOAbstractRouter< E, IntermodalTrip< E, N, V > >::setBulkMode().
|
protectedinherited |
The object's operation to perform.
Definition at line 191 of file SUMOAbstractRouter.h.
Referenced by SUMOAbstractRouter< E, IntermodalTrip< E, N, V > >::getEffort().
|
protected |
Definition at line 239 of file SUMOAbstractRouter.h.
|
protectedinherited |
The object's operation to perform for travel times.
Definition at line 194 of file SUMOAbstractRouter.h.
Referenced by SUMOAbstractRouter< E, IntermodalTrip< E, N, V > >::getTravelTime().