![]() |
SUMO - Simulation of Urban MObility
|
Computes the shortest path through a contracted network. More...
#include <CHRouterWrapper.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 | |
CHRouterWrapper (const std::vector< E *> &edges, const bool ignoreErrors, typename BASE::Operation operation, const SUMOTime begin, const SUMOTime end, const SUMOTime weightPeriod, const int numThreads) | |
Constructor. More... | |
virtual SUMOAbstractRouter< E, V > * | clone () |
bool | compute (const E *from, const E *to, const V *const vehicle, SUMOTime msTime, std::vector< const E *> &into) |
~CHRouterWrapper () | |
Private Types | |
typedef CHRouter< E, V, SUMOAbstractRouter< E, V > > | CHRouterType |
typedef std::map< std::pair< const SUMOVehicleClass, const double >, std::vector< CHRouterType * > > | RouterMap |
Private Attributes | |
const SUMOTime | myBegin |
const std::vector< E * > & | myEdges |
all edges with numerical ids More... | |
const SUMOTime | myEnd |
const bool | myIgnoreErrors |
const int | myMaxNumInstances |
RouterMap | myRouters |
const SUMOTime | myWeightPeriod |
Computes the shortest path through a contracted network.
The template parameters are:
E | The edge class to use (MSEdge/ROEdge) |
V | The vehicle class to use (MSVehicle/ROVehicle) |
PF | The prohibition function to use (prohibited_withPermissions/noProhibitions) |
The router is edge-based. It must know the number of edges for internal reasons and whether a missing connection between two given edges (unbuild route) shall be reported as an error or as a warning.
Definition at line 65 of file CHRouterWrapper.h.
|
private |
Definition at line 146 of file CHRouterWrapper.h.
typedef double(* CHRouterWrapper< E, V, BASE >::Operation) (const E *const, const V *const, double) |
Type of the function that is used to retrieve the edge effort.
Definition at line 69 of file CHRouterWrapper.h.
|
private |
Definition at line 173 of file CHRouterWrapper.h.
|
inline |
Constructor.
Definition at line 73 of file CHRouterWrapper.h.
|
inline |
Definition at line 84 of file CHRouterWrapper.h.
References CHRouterWrapper< E, V, BASE >::myRouters.
|
inlinevirtual |
Definition at line 93 of file CHRouterWrapper.h.
References CHRouterWrapper< E, V, BASE >::myBegin, CHRouterWrapper< E, V, BASE >::myEdges, CHRouterWrapper< E, V, BASE >::myEnd, CHRouterWrapper< E, V, BASE >::myIgnoreErrors, CHRouterWrapper< E, V, BASE >::myMaxNumInstances, CHRouterWrapper< E, V, BASE >::myRouters, and CHRouterWrapper< E, V, BASE >::myWeightPeriod.
|
inline |
Definition at line 104 of file CHRouterWrapper.h.
References CHRouterWrapper< E, V, BASE >::myBegin, CHRouterWrapper< E, V, BASE >::myEdges, CHRouterWrapper< E, V, BASE >::myEnd, CHRouterWrapper< E, V, BASE >::myIgnoreErrors, CHRouterWrapper< E, V, BASE >::myMaxNumInstances, CHRouterWrapper< E, V, BASE >::myRouters, and CHRouterWrapper< E, V, BASE >::myWeightPeriod.
|
private |
Definition at line 182 of file CHRouterWrapper.h.
Referenced by CHRouterWrapper< E, V, BASE >::clone(), and CHRouterWrapper< E, V, BASE >::compute().
|
private |
all edges with numerical ids
Definition at line 178 of file CHRouterWrapper.h.
Referenced by CHRouterWrapper< E, V, BASE >::clone(), and CHRouterWrapper< E, V, BASE >::compute().
|
private |
Definition at line 183 of file CHRouterWrapper.h.
Referenced by CHRouterWrapper< E, V, BASE >::clone(), and CHRouterWrapper< E, V, BASE >::compute().
|
private |
Definition at line 180 of file CHRouterWrapper.h.
Referenced by CHRouterWrapper< E, V, BASE >::clone(), and CHRouterWrapper< E, V, BASE >::compute().
|
private |
Definition at line 185 of file CHRouterWrapper.h.
Referenced by CHRouterWrapper< E, V, BASE >::clone(), and CHRouterWrapper< E, V, BASE >::compute().
|
private |
Definition at line 175 of file CHRouterWrapper.h.
Referenced by CHRouterWrapper< E, V, BASE >::clone(), CHRouterWrapper< E, V, BASE >::compute(), and CHRouterWrapper< E, V, BASE >::~CHRouterWrapper().
|
private |
Definition at line 184 of file CHRouterWrapper.h.
Referenced by CHRouterWrapper< E, V, BASE >::clone(), and CHRouterWrapper< E, V, BASE >::compute().