60 template<
class E,
class V>
68 SUMOAbstractRouter<E, V>(
"CHRouterWrapper", ignoreErrors, operation, nullptr, false, false),
93 bool compute(
const E* from,
const E* to,
const V*
const vehicle,
94 SUMOTime msTime, std::vector<const E*>& into,
bool silent =
false) {
95 const std::pair<const SUMOVehicleClass, const double> svc = std::make_pair(vehicle->getVClass(), vehicle->getMaxSpeed());
102 return myRouters[svc]->compute(from, to, vehicle, msTime, into, silent);
Computes the shortest path through a contracted network.
Computes the shortest path through a contracted network.
virtual SUMOAbstractRouter< E, V > * clone()
const SUMOTime myWeightPeriod
const int myMaxNumInstances
bool compute(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 The definition of...
CHRouter< E, V > CHRouterType
const bool myIgnoreErrors
std::map< std::pair< const SUMOVehicleClass, const double >, CHRouterType * > RouterMap
CHRouterWrapper(const std::vector< E * > &edges, const bool ignoreErrors, typename SUMOAbstractRouter< E, V >::Operation operation, const SUMOTime begin, const SUMOTime end, const SUMOTime weightPeriod, const int numThreads)
Constructor.
const std::vector< E * > & myEdges
all edges with numerical ids
Operation myOperation
The object's operation to perform.