|
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.
| SUMOAbstractRouter< E, V >::SUMOAbstractRouter | ( | const std::string & | type | ) | [inline] |
Constructor.
Definition at line 55 of file SUMOAbstractRouter.h.
| virtual SUMOAbstractRouter< E, V >::~SUMOAbstractRouter | ( | ) | [inline, virtual] |
Destructor.
Definition at line 64 of file SUMOAbstractRouter.h.
| virtual void SUMOAbstractRouter< E, V >::compute | ( | const E * | from, |
| const E * | to, | ||
| const V *const | vehicle, | ||
| SUMOTime | msTime, | ||
| std::vector< const E * > & | into | ||
| ) | [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 ROJTRRouter, TraCIDijkstraRouter< E >, AStarRouterTTBase< E, V, PF >, DijkstraRouterEffortBase< E, V, PF >, and DijkstraRouterTTBase< E, V, PF >.
Referenced by RORouteDef_OrigDest::preComputeCurrentRoute(), RORouteDef_Complete::preComputeCurrentRoute(), RORouteDef_Alternatives::preComputeCurrentRoute(), and MSBaseVehicle::reroute().
| void SUMOAbstractRouter< E, V >::endQuery | ( | int | visits | ) | [inline] |
Definition at line 89 of file SUMOAbstractRouter.h.
Referenced by DijkstraRouterTTBase< E, V, PF >::compute(), DijkstraRouterEffortBase< E, V, PF >::compute(), and AStarRouterTTBase< E, V, PF >::compute().
| virtual void SUMOAbstractRouter< E, V >::prepare | ( | const E * | , |
| const V * | , | ||
| bool | |||
| ) | [inline, virtual] |
Definition at line 80 of file SUMOAbstractRouter.h.
| virtual SUMOReal SUMOAbstractRouter< E, V >::recomputeCosts | ( | const std::vector< const E * > & | edges, |
| const V *const | v, | ||
| SUMOTime | msTime | ||
| ) | const [pure virtual] |
Implemented in ROJTRRouter, TraCIDijkstraRouter< E >, AStarRouterTTBase< E, V, PF >, DijkstraRouterEffortBase< E, V, PF >, and DijkstraRouterTTBase< E, V, PF >.
Referenced by RORouteDef_OrigDest::addAlternative(), RORouteDef_Alternatives::addAlternative(), RORouteDef_Complete::preComputeCurrentRoute(), RORouteDef_Alternatives::preComputeCurrentRoute(), and RORouteDef_Complete::writeXMLDefinition().
| void SUMOAbstractRouter< E, V >::startQuery | ( | ) | [inline] |
Definition at line 84 of file SUMOAbstractRouter.h.
Referenced by DijkstraRouterTTBase< E, V, PF >::compute(), DijkstraRouterEffortBase< E, V, PF >::compute(), and AStarRouterTTBase< E, V, PF >::compute().
int SUMOAbstractRouter< E, V >::myNumQueries [private] |
Definition at line 99 of file SUMOAbstractRouter.h.
Referenced by SUMOAbstractRouter< E, MSVehicle >::startQuery(), and SUMOAbstractRouter< E, MSVehicle >::~SUMOAbstractRouter().
long SUMOAbstractRouter< E, V >::myQueryStartTime [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().
long SUMOAbstractRouter< E, V >::myQueryTimeSum [private] |
Definition at line 102 of file SUMOAbstractRouter.h.
Referenced by SUMOAbstractRouter< E, MSVehicle >::endQuery(), and SUMOAbstractRouter< E, MSVehicle >::~SUMOAbstractRouter().
int SUMOAbstractRouter< E, V >::myQueryVisits [private] |
counters for performance logging
Definition at line 98 of file SUMOAbstractRouter.h.
Referenced by SUMOAbstractRouter< E, MSVehicle >::endQuery(), and SUMOAbstractRouter< E, MSVehicle >::~SUMOAbstractRouter().
const std::string SUMOAbstractRouter< E, V >::myType [private] |
the type of this router
Definition at line 96 of file SUMOAbstractRouter.h.
Referenced by SUMOAbstractRouter< E, MSVehicle >::~SUMOAbstractRouter().