SUMO - Simulation of Urban MObility
|
#include <SUMOAbstractRouter.h>
Public Member Functions | |
virtual void | compute (const E *from, const E *to, const V *const vehicle, SUMOTime msTime, std::vector< const E * > &into)=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. | |
void | endQuery (int visits) |
virtual void | prepare (const E *, const V *, bool) |
virtual SUMOReal | recomputeCosts (const std::vector< const E * > &edges, const V *const v, SUMOTime msTime) const =0 |
void | startQuery () |
SUMOAbstractRouter (const std::string &type) | |
Constructor. | |
virtual | ~SUMOAbstractRouter () |
Destructor. |
Private Attributes | |
int | myNumQueries |
long | myQueryStartTime |
the time spent querying in milliseconds | |
long | myQueryTimeSum |
int | myQueryVisits |
counters for performance logging | |
const std::string | myType |
the type of this router |
The interface for routing the vehicles over the network.
Definition at line 52 of file SUMOAbstractRouter.h.
|
inline |
Constructor.
Definition at line 55 of file SUMOAbstractRouter.h.
|
inlinevirtual |
Destructor.
Definition at line 64 of file SUMOAbstractRouter.h.
|
pure virtual |
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 AStarRouterTTBase< E, V, PF >, DijkstraRouterEffortBase< E, V, PF >, DijkstraRouterTTBase< E, V, PF >, TraCIDijkstraRouter< E >, and ROJTRRouter.
Referenced by RORouteDef_OrigDest::preComputeCurrentRoute(), RORouteDef_Alternatives::preComputeCurrentRoute(), RORouteDef_Complete::preComputeCurrentRoute(), and MSBaseVehicle::reroute().
|
inline |
Definition at line 89 of file SUMOAbstractRouter.h.
Referenced by DijkstraRouterEffortBase< E, V, PF >::compute(), DijkstraRouterTTBase< E, V, PF >::compute(), and AStarRouterTTBase< E, V, PF >::compute().
|
inlinevirtual |
Definition at line 80 of file SUMOAbstractRouter.h.
|
pure virtual |
Implemented in DijkstraRouterTTBase< E, V, PF >, AStarRouterTTBase< E, V, PF >, DijkstraRouterEffortBase< E, V, PF >, TraCIDijkstraRouter< E >, and ROJTRRouter.
Referenced by RORouteDef_Alternatives::addAlternative(), RORouteDef_OrigDest::addAlternative(), RORouteDef_Alternatives::preComputeCurrentRoute(), RORouteDef_Complete::preComputeCurrentRoute(), and RORouteDef_Complete::writeXMLDefinition().
|
inline |
Definition at line 84 of file SUMOAbstractRouter.h.
Referenced by DijkstraRouterEffortBase< E, V, PF >::compute(), DijkstraRouterTTBase< E, V, PF >::compute(), and AStarRouterTTBase< E, V, PF >::compute().
|
private |
Definition at line 99 of file SUMOAbstractRouter.h.
Referenced by SUMOAbstractRouter< E, MSVehicle >::startQuery(), and SUMOAbstractRouter< E, MSVehicle >::~SUMOAbstractRouter().
|
private |
the time spent querying in milliseconds
Definition at line 101 of file SUMOAbstractRouter.h.
Referenced by SUMOAbstractRouter< E, MSVehicle >::endQuery(), and SUMOAbstractRouter< E, MSVehicle >::startQuery().
|
private |
Definition at line 102 of file SUMOAbstractRouter.h.
Referenced by SUMOAbstractRouter< E, MSVehicle >::endQuery(), and SUMOAbstractRouter< E, MSVehicle >::~SUMOAbstractRouter().
|
private |
counters for performance logging
Definition at line 98 of file SUMOAbstractRouter.h.
Referenced by SUMOAbstractRouter< E, MSVehicle >::endQuery(), and SUMOAbstractRouter< E, MSVehicle >::~SUMOAbstractRouter().
|
private |
the type of this router
Definition at line 96 of file SUMOAbstractRouter.h.
Referenced by SUMOAbstractRouter< E, MSVehicle >::~SUMOAbstractRouter().