![]() |
Eclipse 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, bool silent=false)=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... | |
bool | computeLooped (const E *from, const E *to, const V *const vehicle, SUMOTime msTime, std::vector< const E * > &into, bool silent=false) |
Builds the route between the given edges using the minimum effort at the given time if from == to, return the shortest looped route. 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, double *lengthp=nullptr) const |
void | setBulkMode (const bool mode) |
void | startQuery () |
SUMOAbstractRouterPermissions (const std::string &type, bool unbuildIsWarning, 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 |
void | updateViaEdgeCost (const E *viaEdge, 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... | |
MsgHandler *const | myErrorMsgHandler |
the handler for routing errors 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... | |
Private Attributes | |
long long int | myNumQueries |
long long int | myQueryStartTime |
the time spent querying in milliseconds More... | |
long long int | myQueryTimeSum |
long long int | myQueryVisits |
counters for performance logging More... | |
const std::string | myType |
the type of this router More... | |
Definition at line 258 of file SUMOAbstractRouter.h.
|
inherited |
Type of the function that is used to retrieve the edge effort.
Definition at line 94 of file SUMOAbstractRouter.h.
|
inline |
Constructor.
Definition at line 261 of file SUMOAbstractRouter.h.
|
inlinevirtual |
Destructor.
Definition at line 267 of file SUMOAbstractRouter.h.
|
pure virtualinherited |
|
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 AStarRouter< MSEdge, SUMOVehicle, SUMOAbstractRouterPermissions< MSEdge, SUMOVehicle > >, IntermodalRouter< E, L, N, V >, and PedestrianRouter< E, L, N, V >.
Referenced by NBRailwayTopologyAnalyzer::addBidiEdgesForStops(), libsumo::Vehicle::changeTarget(), TraCIServerAPI_Simulation::commandDistanceRequest(), IntermodalRouter< E, L, N, V >::compute(), SUMOAbstractRouter< E, IntermodalTrip< E, N, V > >::computeLooped(), ROMAAssignments::computePath(), libsumo::Simulation::findRoute(), NBPTLineCont::getCost(), libsumo::Simulation::getDistance2D(), libsumo::Simulation::getDistanceRoad(), LandmarkLookupTable< E, V >::LandmarkLookupTable(), MSTriggeredRerouter::notifyEnter(), RORouteDef::repairCurrentRoute(), MSBaseVehicle::reroute(), MSTriggeredRerouter::rerouteParkingArea(), and MSVehicle::rerouteParkingArea().
|
inlineinherited |
Builds the route between the given edges using the minimum effort at the given time if from == to, return the shortest looped route.
Definition at line 125 of file SUMOAbstractRouter.h.
Referenced by MSBaseVehicle::reroute(), and MSTriggeredRerouter::rerouteParkingArea().
|
inlineinherited |
Definition at line 219 of file SUMOAbstractRouter.h.
|
inlineinherited |
|
inlineinherited |
Definition at line 159 of file SUMOAbstractRouter.h.
Referenced by SUMOAbstractRouter< E, IntermodalTrip< E, N, V > >::updateViaCost(), and SUMOAbstractRouter< E, IntermodalTrip< E, N, V > >::updateViaEdgeCost().
|
inlinevirtual |
Reimplemented from SUMOAbstractRouter< E, V >.
Definition at line 270 of file SUMOAbstractRouter.h.
|
inline |
Definition at line 277 of file SUMOAbstractRouter.h.
Referenced by MSRoutingEngine::getRouterTT(), and IntermodalRouter< E, L, N, V >::prohibit().
|
inlineinherited |
Definition at line 189 of file SUMOAbstractRouter.h.
Referenced by RORouteDef::addAlternative(), SUMOAbstractRouter< E, IntermodalTrip< E, N, V > >::computeLooped(), ROMAAssignments::computePath(), 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 224 of file SUMOAbstractRouter.h.
Referenced by ROMAAssignments::incremental().
|
inlineinherited |
Definition at line 214 of file SUMOAbstractRouter.h.
|
inlineinherited |
Definition at line 173 of file SUMOAbstractRouter.h.
Referenced by IntermodalRouter< E, L, N, V >::compute(), and SUMOAbstractRouter< E, IntermodalTrip< E, N, V > >::recomputeCosts().
|
inlineinherited |
Definition at line 163 of file SUMOAbstractRouter.h.
Referenced by SUMOAbstractRouter< E, IntermodalTrip< E, N, V > >::updateViaCost().
|
protectedinherited |
whether we are currently operating several route queries in a bulk
Definition at line 239 of file SUMOAbstractRouter.h.
Referenced by SUMOAbstractRouter< E, IntermodalTrip< E, N, V > >::setBulkMode().
|
protectedinherited |
the handler for routing errors
Definition at line 230 of file SUMOAbstractRouter.h.
Referenced by SUMOAbstractRouter< E, IntermodalTrip< E, N, V > >::computeLooped().
|
privateinherited |
Definition at line 247 of file SUMOAbstractRouter.h.
Referenced by SUMOAbstractRouter< E, IntermodalTrip< E, N, V > >::startQuery(), and SUMOAbstractRouter< E, IntermodalTrip< E, N, V > >::~SUMOAbstractRouter().
|
protectedinherited |
The object's operation to perform.
Definition at line 233 of file SUMOAbstractRouter.h.
Referenced by SUMOAbstractRouter< E, IntermodalTrip< E, N, V > >::getEffort().
|
protected |
Definition at line 282 of file SUMOAbstractRouter.h.
Referenced by SUMOAbstractRouterPermissions< MSEdge, SUMOVehicle >::isProhibited(), and SUMOAbstractRouterPermissions< MSEdge, SUMOVehicle >::prohibit().
|
privateinherited |
the time spent querying in milliseconds
Definition at line 249 of file SUMOAbstractRouter.h.
Referenced by SUMOAbstractRouter< E, IntermodalTrip< E, N, V > >::endQuery(), and SUMOAbstractRouter< E, IntermodalTrip< E, N, V > >::startQuery().
|
privateinherited |
Definition at line 250 of file SUMOAbstractRouter.h.
Referenced by SUMOAbstractRouter< E, IntermodalTrip< E, N, V > >::endQuery(), and SUMOAbstractRouter< E, IntermodalTrip< E, N, V > >::~SUMOAbstractRouter().
|
privateinherited |
counters for performance logging
Definition at line 246 of file SUMOAbstractRouter.h.
Referenced by SUMOAbstractRouter< E, IntermodalTrip< E, N, V > >::endQuery(), and SUMOAbstractRouter< E, IntermodalTrip< E, N, V > >::~SUMOAbstractRouter().
|
protectedinherited |
The object's operation to perform for travel times.
Definition at line 236 of file SUMOAbstractRouter.h.
Referenced by SUMOAbstractRouter< E, IntermodalTrip< E, N, V > >::getTravelTime().
|
privateinherited |
the type of this router
Definition at line 243 of file SUMOAbstractRouter.h.
Referenced by SUMOAbstractRouter< E, IntermodalTrip< E, N, V > >::~SUMOAbstractRouter().