SUMO - Simulation of Urban MObility
DijkstraRouterTT_ByProxi< E, V, PF > Class Template Reference

#include <DijkstraRouterTT.h>

Inheritance diagram for DijkstraRouterTT_ByProxi< E, V, PF >:
DijkstraRouterTTBase< E, V, PF > SUMOAbstractRouter< E, V > PF

Public Types

typedef SUMOReal(* Operation) (const E *const, const V *const, SUMOReal)
 Type of the function that is used to retrieve the edge effort. More...
 

Public Member Functions

void buildPathFrom (EdgeInfo *rbegin, std::vector< const E * > &edges)
 Builds the path from marked edges. More...
 
virtual void compute (const E *from, const E *to, const V *const vehicle, SUMOTime msTime, std::vector< const E * > &into)
 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...
 
 DijkstraRouterTT_ByProxi (size_t noE, bool unbuildIsWarningOnly, Operation operation)
 
void endQuery (int visits)
 
SUMOReal getEffort (const E *const e, const V *const v, SUMOReal t) const
 
void init ()
 
virtual void prepare (const E *, const V *, bool)
 
SUMOReal recomputeCosts (const std::vector< const E * > &edges, const V *const v, SUMOTime msTime) const
 
void startQuery ()
 

Protected Attributes

EdgeInfoByTTComparator myComparator
 
std::vector< EdgeInfomyEdgeInfos
 The container of edge information. More...
 
MsgHandler *const myErrorMsgHandler
 the handler for routing errors More...
 
std::vector< EdgeInfo * > myFound
 list of visited Edges (for resetting) More...
 
std::vector< EdgeInfo * > myFrontierList
 A container for reusage of the min edge heap. More...
 

Private Attributes

Operation myOperation
 The object's operation to perform. More...
 

Detailed Description

template<class E, class V, class PF>
class DijkstraRouterTT_ByProxi< E, V, PF >

Definition at line 263 of file DijkstraRouterTT.h.

Member Typedef Documentation

template<class E, class V, class PF>
typedef SUMOReal(* DijkstraRouterTT_ByProxi< E, V, PF >::Operation) (const E *const, const V *const, SUMOReal)

Type of the function that is used to retrieve the edge effort.

Definition at line 266 of file DijkstraRouterTT.h.

Constructor & Destructor Documentation

template<class E, class V, class PF>
DijkstraRouterTT_ByProxi< E, V, PF >::DijkstraRouterTT_ByProxi ( size_t  noE,
bool  unbuildIsWarningOnly,
Operation  operation 
)
inline

Definition at line 268 of file DijkstraRouterTT.h.

Member Function Documentation

template<class E, class V, class PF>
void DijkstraRouterTTBase< E, V, PF >::buildPathFrom ( EdgeInfo rbegin,
std::vector< const E * > &  edges 
)
inlineinherited
template<class E, class V, class PF>
virtual void DijkstraRouterTTBase< E, V, PF >::compute ( const E *  from,
const E *  to,
const V *const  vehicle,
SUMOTime  msTime,
std::vector< const E * > &  into 
)
inlinevirtualinherited

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, V >.

Definition at line 151 of file DijkstraRouterTT.h.

template<class E, class V, class PF>
SUMOReal DijkstraRouterTT_ByProxi< E, V, PF >::getEffort ( const E *const  e,
const V *const  v,
SUMOReal  t 
) const
inlinevirtual

Implements DijkstraRouterTTBase< E, V, PF >.

Definition at line 272 of file DijkstraRouterTT.h.

template<class E, class V, class PF>
void DijkstraRouterTTBase< E, V, PF >::init ( )
inlineinherited
template<class E, class V>
virtual void SUMOAbstractRouter< E, V >::prepare ( const E *  ,
const V *  ,
bool   
)
inlinevirtualinherited

Definition at line 81 of file SUMOAbstractRouter.h.

template<class E, class V, class PF>
SUMOReal DijkstraRouterTTBase< E, V, PF >::recomputeCosts ( const std::vector< const E * > &  edges,
const V *const  v,
SUMOTime  msTime 
) const
inlinevirtualinherited

Implements SUMOAbstractRouter< E, V >.

Definition at line 223 of file DijkstraRouterTT.h.

Field Documentation

template<class E, class V, class PF>
EdgeInfoByTTComparator DijkstraRouterTTBase< E, V, PF >::myComparator
protectedinherited
template<class E, class V, class PF>
MsgHandler* const DijkstraRouterTTBase< E, V, PF >::myErrorMsgHandler
protectedinherited
template<class E, class V, class PF>
std::vector<EdgeInfo*> DijkstraRouterTTBase< E, V, PF >::myFound
protectedinherited
template<class E, class V, class PF>
std::vector<EdgeInfo*> DijkstraRouterTTBase< E, V, PF >::myFrontierList
protectedinherited
template<class E, class V, class PF>
Operation DijkstraRouterTT_ByProxi< E, V, PF >::myOperation
private

The documentation for this class was generated from the following file: