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

#include <AStarRouter.h>

Inheritance diagram for AStarRouterTTBase< E, V, PF >:
SUMOAbstractRouter< E, V > PF AStarRouterTT_ByProxi< E, V, PF > AStarRouterTT_Direct< E, V, PF >

Data Structures

struct  EdgeInfo
class  EdgeInfoComparator

Public Member Functions

 AStarRouterTTBase (size_t noE, bool unbuildIsWarning)
 Constructor.
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 travel time.
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 ~AStarRouterTTBase ()
 Destructor.

Protected Attributes

EdgeInfoComparator 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 AStarRouterTTBase< E, V, PF >

Definition at line 69 of file AStarRouter.h.

Constructor & Destructor Documentation

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

Constructor.

Definition at line 75 of file AStarRouter.h.

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

Destructor.

Definition at line 84 of file AStarRouter.h.

Member Function Documentation

template<class E, class V, class PF>
void AStarRouterTTBase< E, V, PF >::buildPathFrom ( EdgeInfo rbegin,
std::vector< const E * > &  edges 
)
inline

Builds the path from marked edges.

Definition at line 235 of file AStarRouter.h.

Referenced by AStarRouterTTBase< MSEdge, SUMOVehicle, prohibited_withRestrictions< MSEdge, SUMOVehicle > >::compute().

template<class E, class V, class PF>
virtual void AStarRouterTTBase< E, V, PF >::compute ( const E *  from,
const E *  to,
const V *const  vehicle,
SUMOTime  msTime,
std::vector< const E * > &  into 
)
inlinevirtual

Builds the route between the given edges using the minimum travel time.

Implements SUMOAbstractRouter< E, V >.

Definition at line 157 of file AStarRouter.h.

template<class E, class V, class PF>
void AStarRouterTTBase< 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 81 of file SUMOAbstractRouter.h.

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

Implements SUMOAbstractRouter< E, V >.

Definition at line 221 of file AStarRouter.h.

Field Documentation

template<class E, class V, class PF>
EdgeInfoComparator AStarRouterTTBase< E, V, PF >::myComparator
protected
template<class E, class V, class PF>
std::vector<EdgeInfo> AStarRouterTTBase< E, V, PF >::myEdgeInfos
protected
template<class E, class V, class PF>
MsgHandler* const AStarRouterTTBase< E, V, PF >::myErrorMsgHandler
protected
template<class E, class V, class PF>
std::vector<EdgeInfo*> AStarRouterTTBase< E, V, PF >::myFound
protected
template<class E, class V, class PF>
std::vector<EdgeInfo*> AStarRouterTTBase< E, V, PF >::myFrontierList
protected

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