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

#include <AStarRouter.h>

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

Public Types

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

Public Member Functions

 AStarRouterTT_ByProxi (size_t noE, bool unbuildIsWarningOnly, EC *receiver, Operation operation)
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)
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

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.

Private Attributes

Operation myOperation
 The object's operation to perform.
EC * myReceiver
 The object the action is directed to.

Detailed Description

template<class E, class V, class PF, class EC>
class AStarRouterTT_ByProxi< E, V, PF, EC >

Definition at line 260 of file AStarRouter.h.


Member Typedef Documentation

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

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

Definition at line 263 of file AStarRouter.h.


Constructor & Destructor Documentation

template<class E , class V , class PF , class EC >
AStarRouterTT_ByProxi< E, V, PF, EC >::AStarRouterTT_ByProxi ( size_t  noE,
bool  unbuildIsWarningOnly,
EC *  receiver,
Operation  operation 
)
inline

Definition at line 265 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 
)
inlineinherited

Builds the path from marked edges.

Definition at line 233 of file AStarRouter.h.

References AStarRouterTTBase< E, V, PF >::EdgeInfo::edge, and AStarRouterTTBase< E, V, PF >::EdgeInfo::prev.

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

template<class E, class V>
void SUMOAbstractRouter< E, V >::endQuery ( int  visits)
inlineinherited
template<class E , class V , class PF , class EC >
SUMOReal AStarRouterTT_ByProxi< E, V, PF, EC >::getEffort ( const E *const  e,
const V *const  v,
SUMOReal  t 
) const
inlinevirtual
template<class E , class V , class PF >
void AStarRouterTTBase< 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 80 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
inlinevirtualinherited
template<class E, class V>
void SUMOAbstractRouter< E, V >::startQuery ( )
inlineinherited

Field Documentation

template<class E , class V , class PF >
EdgeInfoComparator AStarRouterTTBase< E, V, PF >::myComparator
protectedinherited

Definition at line 251 of file AStarRouter.h.

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

template<class E , class V , class PF >
std::vector<EdgeInfo> AStarRouterTTBase< E, V, PF >::myEdgeInfos
protectedinherited

The container of edge information.

Definition at line 244 of file AStarRouter.h.

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

template<class E , class V , class PF >
MsgHandler* const AStarRouterTTBase< E, V, PF >::myErrorMsgHandler
protectedinherited

the handler for routing errors

Definition at line 254 of file AStarRouter.h.

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

template<class E , class V , class PF >
std::vector<EdgeInfo*> AStarRouterTTBase< E, V, PF >::myFound
protectedinherited

list of visited Edges (for resetting)

Definition at line 249 of file AStarRouter.h.

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

template<class E , class V , class PF >
std::vector<EdgeInfo*> AStarRouterTTBase< E, V, PF >::myFrontierList
protectedinherited

A container for reusage of the min edge heap.

Definition at line 247 of file AStarRouter.h.

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

template<class E , class V , class PF , class EC >
Operation AStarRouterTT_ByProxi< E, V, PF, EC >::myOperation
private

The object's operation to perform.

Definition at line 278 of file AStarRouter.h.

Referenced by AStarRouterTT_ByProxi< E, V, PF, EC >::getEffort().

template<class E , class V , class PF , class EC >
EC* AStarRouterTT_ByProxi< E, V, PF, EC >::myReceiver
private

The object the action is directed to.

Definition at line 275 of file AStarRouter.h.

Referenced by AStarRouterTT_ByProxi< E, V, PF, EC >::getEffort().


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