SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DijkstraRouterTTBase< E, V, PF > Class Template Reference

#include <DijkstraRouterTT.h>

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

Data Structures

struct  EdgeInfo
class  EdgeInfoByTTComparator

Public Member Functions

void buildPathFrom (EdgeInfo *rbegin, std::vector< const E * > &edges)
 Builds the path from marked edges.
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.
 DijkstraRouterTTBase (size_t noE, bool unbuildIsWarning)
 Constructor.
void endQuery (int visits)
virtual SUMOReal getEffort (const E *const e, const V *const v, SUMOReal t) const =0
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 ()
virtual ~DijkstraRouterTTBase ()
 Destructor.

Protected Attributes

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

Detailed Description

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

Definition at line 70 of file DijkstraRouterTT.h.

Constructor & Destructor Documentation

template<class E , class V , class PF >
DijkstraRouterTTBase< E, V, PF >::DijkstraRouterTTBase ( size_t  noE,
bool  unbuildIsWarning 
)
inline

Constructor.

Definition at line 76 of file DijkstraRouterTT.h.

References DijkstraRouterTTBase< E, V, PF >::myEdgeInfos.

template<class E , class V , class PF >
virtual DijkstraRouterTTBase< E, V, PF >::~DijkstraRouterTTBase ( )
inlinevirtual

Destructor.

Definition at line 86 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 
)
inline
template<class E, class V>
void SUMOAbstractRouter< E, V >::endQuery ( int  visits)
inlineinherited
template<class E , class V , class PF >
virtual SUMOReal DijkstraRouterTTBase< E, V, PF >::getEffort ( const E *const  e,
const V *const  v,
SUMOReal  t 
) const
pure virtual
template<class E , class V , class PF >
void DijkstraRouterTTBase< E, V, PF >::init ( )
inline
template<class E, class V>
virtual void SUMOAbstractRouter< E, V >::prepare ( const E *  ,
const V *  ,
bool   
)
inlinevirtualinherited

Definition at line 80 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
inlinevirtual
template<class E, class V>
void SUMOAbstractRouter< E, V >::startQuery ( )
inlineinherited

Field Documentation

template<class E , class V , class PF >
EdgeInfoByTTComparator DijkstraRouterTTBase< E, V, PF >::myComparator
protected

Definition at line 254 of file DijkstraRouterTT.h.

Referenced by DijkstraRouterTTBase< E, V, PF >::compute().

template<class E , class V , class PF >
std::vector<EdgeInfo> DijkstraRouterTTBase< E, V, PF >::myEdgeInfos
protected

The container of edge information.

Definition at line 247 of file DijkstraRouterTT.h.

Referenced by DijkstraRouterTTBase< E, V, PF >::compute(), and DijkstraRouterTTBase< E, V, PF >::DijkstraRouterTTBase().

template<class E , class V , class PF >
MsgHandler* const DijkstraRouterTTBase< E, V, PF >::myErrorMsgHandler
protected

the handler for routing errors

Definition at line 257 of file DijkstraRouterTT.h.

Referenced by DijkstraRouterTTBase< E, V, PF >::compute().

template<class E , class V , class PF >
std::vector<EdgeInfo*> DijkstraRouterTTBase< E, V, PF >::myFound
protected

list of visited Edges (for resetting)

Definition at line 252 of file DijkstraRouterTT.h.

Referenced by DijkstraRouterTTBase< E, V, PF >::compute(), and DijkstraRouterTTBase< E, V, PF >::init().

template<class E , class V , class PF >
std::vector<EdgeInfo*> DijkstraRouterTTBase< E, V, PF >::myFrontierList
protected

A container for reusage of the min edge heap.

Definition at line 250 of file DijkstraRouterTT.h.

Referenced by DijkstraRouterTTBase< E, V, PF >::compute(), and DijkstraRouterTTBase< E, V, PF >::init().


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