![]() |
SUMO - Simulation of Urban MObility
|
#include <MSNet.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 () |
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 *, const E *, const _IntermodalTrip *const, SUMOTime, std::vector< const E *> &) |
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 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 |
virtual bool | isProhibited (const E *const, const IntermodalTrip< E, N, V > *const) 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, SUMOTime msTime) const |
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 |
virtual | ~PedestrianRouter () |
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... | |
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, SUMOAbstractRouterPermissions< _IntermodalEdge, _IntermodalTrip > > | _InternalRouter |
Private Member Functions | |
PedestrianRouter & | operator= (const PedestrianRouter &s) |
Invalidated assignment operator. More... | |
Private Attributes | |
const bool | myAmClone |
_InternalRouter * | myInternalRouter |
_IntermodalNetwork * | myPedNet |
The router for pedestrians (on a bidirectional network of sidewalks and crossings)
|
private |
Definition at line 50 of file PedestrianRouter.h.
|
private |
Definition at line 51 of file PedestrianRouter.h.
|
private |
Definition at line 52 of file PedestrianRouter.h.
|
private |
Definition at line 53 of file PedestrianRouter.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 57 of file PedestrianRouter.h.
References IntermodalNetwork< E, L, N, V >::getAllEdges(), IntermodalEdge< E, L, N, V >::getTravelTimeStatic(), PedestrianRouter< E, L, N, V >::myInternalRouter, and PedestrianRouter< E, L, N, V >::myPedNet.
|
inline |
Definition at line 63 of file PedestrianRouter.h.
References IntermodalNetwork< E, L, N, V >::getAllEdges(), IntermodalEdge< E, L, N, V >::getTravelTimeStatic(), PedestrianRouter< E, L, N, V >::myInternalRouter, and PedestrianRouter< E, L, N, V >::myPedNet.
|
inlinevirtual |
Destructor.
Definition at line 70 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 77 of file PedestrianRouter.h.
References PedestrianRouter< E, L, N, V >::myPedNet.
|
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 83 of file PedestrianRouter.h.
References DijkstraRouter< E, V, BASE >::compute(), IntermodalNetwork< E, L, N, V >::getArrivalConnector(), IntermodalNetwork< E, L, N, V >::getDepartConnector(), 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::Person::rerouteTraveltime().
|
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 122 of file PedestrianRouter.h.
|
inlineinherited |
Definition at line 180 of file SUMOAbstractRouter.h.
References SysUtils::getCurrentMillis(), SUMOAbstractRouter< E, V >::myQueryStartTime, SUMOAbstractRouter< E, V >::myQueryTimeSum, and SUMOAbstractRouter< E, V >::myQueryVisits.
|
inlineinherited |
Definition at line 171 of file SUMOAbstractRouter.h.
References SUMOAbstractRouter< E, V >::myOperation.
|
inlineinherited |
Definition at line 128 of file SUMOAbstractRouter.h.
References SUMOAbstractRouter< E, V >::EdgeInfo::effort, and SUMOAbstractRouter< E, V >::myTTOperation.
|
inlinevirtualinherited |
Definition at line 124 of file SUMOAbstractRouter.h.
|
private |
Invalidated assignment operator.
|
inline |
Definition at line 127 of file PedestrianRouter.h.
References IntermodalNetwork< E, L, N, V >::getBothDirections(), PedestrianRouter< E, L, N, V >::myInternalRouter, and PedestrianRouter< E, L, N, V >::myPedNet.
Referenced by MSNet::getPedestrianRouter().
|
inlineinherited |
Definition at line 155 of file SUMOAbstractRouter.h.
References SUMOAbstractRouter< E, V >::EdgeInfo::effort, SUMOAbstractRouter< E, V >::isProhibited(), SUMOAbstractRouter< E, V >::EdgeInfo::prev, STEPS2TIME, and SUMOAbstractRouter< E, V >::updateViaCost().
|
inlineinherited |
Definition at line 185 of file SUMOAbstractRouter.h.
References SUMOAbstractRouter< E, V >::myBulkMode.
|
inlineinherited |
Definition at line 175 of file SUMOAbstractRouter.h.
References SysUtils::getCurrentMillis(), SUMOAbstractRouter< E, V >::myNumQueries, and SUMOAbstractRouter< E, V >::myQueryStartTime.
|
inlineinherited |
Definition at line 132 of file SUMOAbstractRouter.h.
References SUMOAbstractRouter< E, V >::getEffort(), and SUMOAbstractRouter< E, V >::getTravelTime().
|
private |
Definition at line 137 of file PedestrianRouter.h.
Referenced by PedestrianRouter< E, L, N, V >::~PedestrianRouter().
|
protectedinherited |
whether we are currently operating several route queries in a bulk
Definition at line 197 of file SUMOAbstractRouter.h.
|
private |
Definition at line 138 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().
|
protectedinherited |
The object's operation to perform.
Definition at line 191 of file SUMOAbstractRouter.h.
|
private |
Definition at line 139 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 |
The object's operation to perform for travel times.
Definition at line 194 of file SUMOAbstractRouter.h.