![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <PedestrianRouter.h>
Public Types | |
typedef double(* | Operation) (const E *const, const IntermodalTrip< E, N, V > *const, double) |
Type of the function that is used to retrieve the edge effort. More... | |
Public Member Functions | |
virtual SUMOAbstractRouter< E, _IntermodalTrip > * | clone () |
bool | compute (const E *, const E *, const _IntermodalTrip *const, SUMOTime, std::vector< const E * > &, bool) |
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... | |
double | compute (const E *from, const E *to, double departPos, double arrivalPos, double speed, SUMOTime msTime, const N *onlyNode, std::vector< const E * > &into, bool allEdges=false) |
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 | compute (const E *from, double fromPos, const E *to, double toPos, const IntermodalTrip< E, N, 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, also taking into account position along the edges to ensure currect handling of looped routes The definition of the effort depends on the wished routing scheme. More... | |
bool | computeLooped (const E *from, const E *to, const IntermodalTrip< E, N, 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 IntermodalTrip< E, N, V > *const v, double t) const |
double | getTravelTime (const E *const e, const IntermodalTrip< E, N, V > *const v, const double t, const double effort) const |
const std::string & | getType () const |
bool | isProhibited (const E *const edge, const IntermodalTrip< E, N, V > *const vehicle) const |
PedestrianRouter () | |
Constructor. More... | |
PedestrianRouter (_IntermodalNetwork *net) | |
void | prohibit (const std::vector< E * > &toProhibit) |
double | recomputeCosts (const std::vector< const E * > &edges, const IntermodalTrip< E, N, V > *const v, double fromPos, double toPos, SUMOTime msTime, double *lengthp=nullptr) const |
double | recomputeCosts (const std::vector< const E * > &edges, const IntermodalTrip< E, N, V > *const v, SUMOTime msTime, double *lengthp=nullptr) const |
virtual void | reset (const IntermodalTrip< E, N, V > *const vehicle) |
reset internal caches, used by CHRouter More... | |
void | setAutoBulkMode (const bool mode) |
void | setBulkMode (const bool mode) |
void | startQuery () |
void | updateViaCost (const E *const prev, const E *const e, const IntermodalTrip< E, N, V > *const v, double &time, double &effort, double &length) const |
void | updateViaEdgeCost (const E *viaEdge, const IntermodalTrip< E, N, V > *const v, double &time, double &effort, double &length) const |
virtual | ~PedestrianRouter () |
Destructor. More... | |
Protected Attributes | |
bool | myAutoBulkMode |
whether we are currently trying to detect bulk mode automatically More... | |
bool | myBulkMode |
whether we are currently operating several route queries in a bulk More... | |
MsgHandler *const | myErrorMsgHandler |
the handler for routing errors More... | |
const bool | myHavePermissions |
whether edge permissions need to be considered More... | |
const bool | myHaveRestrictions |
whether edge restrictions need to be considered 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 Types | |
typedef IntermodalEdge< E, L, N, V > | _IntermodalEdge |
typedef IntermodalNetwork< E, L, N, V > | _IntermodalNetwork |
typedef IntermodalTrip< E, N, V > | _IntermodalTrip |
typedef DijkstraRouter< _IntermodalEdge, _IntermodalTrip > | _InternalRouter |
Private Member Functions | |
PedestrianRouter & | operator= (const PedestrianRouter &s) |
Invalidated assignment operator. More... | |
Private Attributes | |
const bool | myAmClone |
_InternalRouter * | myInternalRouter |
long long int | myNumQueries |
_IntermodalNetwork * | myPedNet |
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... | |
The router for pedestrians (on a bidirectional network of sidewalks and crossings)
Definition at line 45 of file PedestrianRouter.h.
|
private |
Definition at line 47 of file PedestrianRouter.h.
|
private |
Definition at line 48 of file PedestrianRouter.h.
|
private |
Definition at line 49 of file PedestrianRouter.h.
|
private |
Definition at line 50 of file PedestrianRouter.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 54 of file PedestrianRouter.h.
References IntermodalNetwork< E, L, N, V >::getAllEdges(), IntermodalEdge< E, L, N, V >::getTravelTimeStatic(), IntermodalEdge< E, L, N, V >::getTravelTimeStaticRandomized(), gWeightsRandomFactor, PedestrianRouter< E, L, N, V >::myInternalRouter, and PedestrianRouter< E, L, N, V >::myPedNet.
|
inline |
Definition at line 61 of file PedestrianRouter.h.
References IntermodalNetwork< E, L, N, V >::getAllEdges(), IntermodalEdge< E, L, N, V >::getTravelTimeStatic(), IntermodalEdge< E, L, N, V >::getTravelTimeStaticRandomized(), gWeightsRandomFactor, PedestrianRouter< E, L, N, V >::myInternalRouter, and PedestrianRouter< E, L, N, V >::myPedNet.
|
inlinevirtual |
Destructor.
Definition at line 69 of file PedestrianRouter.h.
References PedestrianRouter< E, L, N, V >::myAmClone, PedestrianRouter< E, L, N, V >::myInternalRouter, and PedestrianRouter< E, L, N, V >::myPedNet.
|
inlinevirtual |
Implements SUMOAbstractRouter< E, IntermodalTrip< E, N, V > >.
Definition at line 76 of file PedestrianRouter.h.
References PedestrianRouter< E, L, N, V >::myPedNet.
|
inlinevirtual |
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.
Implements SUMOAbstractRouter< E, IntermodalTrip< E, N, V > >.
Definition at line 121 of file PedestrianRouter.h.
|
inline |
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.
Definition at line 82 of file PedestrianRouter.h.
References DijkstraRouter< E, V >::compute(), IntermodalNetwork< E, L, N, V >::getArrivalConnector(), IntermodalNetwork< E, L, N, V >::getDepartConnector(), SUMOAbstractRouter< E, V >::getEffort(), PedestrianRouter< E, L, N, V >::myInternalRouter, PedestrianRouter< E, L, N, V >::myPedNet, TIME2STEPS, toString(), and WRITE_WARNING.
Referenced by MSPModel_Striping::getNextLane(), MSPModel_Striping::PState::PState(), and LIBSUMO_NAMESPACE::Person::rerouteTraveltime().
|
inlineinherited |
Builds the route between the given edges using the minimum effort at the given time, also taking into account position along the edges to ensure currect handling of looped routes The definition of the effort depends on the wished routing scheme.
Definition at line 157 of file SUMOAbstractRouter.h.
|
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 172 of file SUMOAbstractRouter.h.
|
inlineinherited |
Definition at line 279 of file SUMOAbstractRouter.h.
|
inlineinherited |
Definition at line 270 of file SUMOAbstractRouter.h.
|
inlineinherited |
Definition at line 207 of file SUMOAbstractRouter.h.
|
inlineinherited |
Definition at line 143 of file SUMOAbstractRouter.h.
|
inlineinherited |
Definition at line 201 of file SUMOAbstractRouter.h.
|
private |
Invalidated assignment operator.
|
inlinevirtual |
Reimplemented from SUMOAbstractRouter< E, IntermodalTrip< E, N, V > >.
Definition at line 126 of file PedestrianRouter.h.
References IntermodalNetwork< E, L, N, V >::getBothDirections(), PedestrianRouter< E, L, N, V >::myInternalRouter, PedestrianRouter< E, L, N, V >::myPedNet, and DijkstraRouter< E, V >::prohibit().
|
inlineinherited |
Definition at line 258 of file SUMOAbstractRouter.h.
|
inlineinherited |
Definition at line 237 of file SUMOAbstractRouter.h.
|
inlinevirtualinherited |
reset internal caches, used by CHRouter
Definition at line 139 of file SUMOAbstractRouter.h.
|
inlineinherited |
Definition at line 288 of file SUMOAbstractRouter.h.
|
inlineinherited |
Definition at line 284 of file SUMOAbstractRouter.h.
|
inlineinherited |
Definition at line 274 of file SUMOAbstractRouter.h.
|
inlineinherited |
Definition at line 221 of file SUMOAbstractRouter.h.
|
inlineinherited |
Definition at line 211 of file SUMOAbstractRouter.h.
|
private |
Definition at line 136 of file PedestrianRouter.h.
Referenced by PedestrianRouter< E, L, N, V >::~PedestrianRouter().
|
protectedinherited |
whether we are currently trying to detect bulk mode automatically
Definition at line 306 of file SUMOAbstractRouter.h.
|
protectedinherited |
whether we are currently operating several route queries in a bulk
Definition at line 303 of file SUMOAbstractRouter.h.
|
protectedinherited |
the handler for routing errors
Definition at line 294 of file SUMOAbstractRouter.h.
|
protectedinherited |
whether edge permissions need to be considered
Definition at line 309 of file SUMOAbstractRouter.h.
|
protectedinherited |
whether edge restrictions need to be considered
Definition at line 312 of file SUMOAbstractRouter.h.
|
private |
Definition at line 137 of file PedestrianRouter.h.
Referenced by PedestrianRouter< E, L, N, V >::compute(), PedestrianRouter< E, L, N, V >::PedestrianRouter(), PedestrianRouter< E, L, N, V >::prohibit(), and PedestrianRouter< E, L, N, V >::~PedestrianRouter().
|
privateinherited |
Definition at line 322 of file SUMOAbstractRouter.h.
|
protectedinherited |
The object's operation to perform.
Definition at line 297 of file SUMOAbstractRouter.h.
|
private |
Definition at line 138 of file PedestrianRouter.h.
Referenced by PedestrianRouter< E, L, N, V >::clone(), PedestrianRouter< E, L, N, V >::compute(), PedestrianRouter< E, L, N, V >::PedestrianRouter(), PedestrianRouter< E, L, N, V >::prohibit(), and PedestrianRouter< E, L, N, V >::~PedestrianRouter().
|
protectedinherited |
Definition at line 314 of file SUMOAbstractRouter.h.
|
privateinherited |
the time spent querying in milliseconds
Definition at line 324 of file SUMOAbstractRouter.h.
|
privateinherited |
Definition at line 325 of file SUMOAbstractRouter.h.
|
privateinherited |
counters for performance logging
Definition at line 321 of file SUMOAbstractRouter.h.
|
protectedinherited |
The object's operation to perform for travel times.
Definition at line 300 of file SUMOAbstractRouter.h.
|
privateinherited |
the type of this router
Definition at line 318 of file SUMOAbstractRouter.h.