HOG2
Public Member Functions | Private Types | Private Attributes | List of all members
LRTAStar< state, action, environment > Class Template Reference

#include <LRTAStar.h>

Inheritance diagram for LRTAStar< state, action, environment >:
Inheritance graph
[legend]
Collaboration diagram for LRTAStar< state, action, environment >:
Collaboration graph
[legend]

Public Member Functions

 LRTAStar ()
 
virtual ~LRTAStar (void)
 
void GetPath (environment *env, const state &from, const state &to, std::vector< state > &thePath)
 The core routine of LRTAStar – computes at most one-move path. More...
 
void GetPath (environment *, const state &, const state &, std::vector< action > &)
 
virtual const char * GetName ()
 
void SetHCost (environment *env, const state &where, const state &to, double val)
 
double HCost (environment *env, const state &from, const state &to) const
 
virtual uint64_t GetNodesExpanded () const
 
virtual uint64_t GetNodesTouched () const
 
virtual void LogFinalStats (StatCollection *s)
 
double GetAmountLearned ()
 
void OpenGLDraw () const
 
void OpenGLDraw (const environment *env) const
 
- Public Member Functions inherited from GenericSearchAlgorithm< state, action, environment >
 GenericSearchAlgorithm ()
 
virtual ~GenericSearchAlgorithm ()
 
virtual bool InitializeSearch (environment *env, const state &from, const state &to, std::vector< state > &thePath)
 
virtual bool DoSingleSearchStep (std::vector< state > &thePath)
 

Private Types

typedef std::unordered_map< uint64_t, learnedData< state >, Hash64LearnedHeuristic
 

Private Attributes

LearnedHeuristic heur
 
state goal
 
double fAmountLearned
 
uint64_t nodesExpanded
 
uint64_t nodesTouched
 

Detailed Description

template<class state, class action, class environment>
class LRTAStar< state, action, environment >

Definition at line 29 of file LRTAStar.h.

Member Typedef Documentation

◆ LearnedHeuristic

template<class state , class action , class environment >
typedef std::unordered_map<uint64_t, learnedData<state>, Hash64 > LRTAStar< state, action, environment >::LearnedHeuristic
private

Definition at line 67 of file LRTAStar.h.

Constructor & Destructor Documentation

◆ LRTAStar()

template<class state , class action , class environment >
LRTAStar< state, action, environment >::LRTAStar ( )
inline

Definition at line 31 of file LRTAStar.h.

References LRTAStar< state, action, environment >::fAmountLearned.

◆ ~LRTAStar()

template<class state , class action , class environment >
virtual LRTAStar< state, action, environment >::~LRTAStar ( void  )
inlinevirtual

Definition at line 33 of file LRTAStar.h.

Member Function Documentation

◆ GetAmountLearned()

template<class state , class action , class environment >
double LRTAStar< state, action, environment >::GetAmountLearned ( )
inlinevirtual

◆ GetName()

template<class state , class action , class environment >
virtual const char* LRTAStar< state, action, environment >::GetName ( )
inlinevirtual

◆ GetNodesExpanded()

template<class state , class action , class environment >
virtual uint64_t LRTAStar< state, action, environment >::GetNodesExpanded ( ) const
inlinevirtual

◆ GetNodesTouched()

template<class state , class action , class environment >
virtual uint64_t LRTAStar< state, action, environment >::GetNodesTouched ( ) const
inlinevirtual

◆ GetPath() [1/2]

template<class state , class action , class environment >
void LRTAStar< state, action, environment >::GetPath ( environment *  ,
const state &  ,
const state &  ,
std::vector< action > &   
)
inlinevirtual

Implements GenericSearchAlgorithm< state, action, environment >.

Definition at line 36 of file LRTAStar.h.

◆ GetPath() [2/2]

template<class state , class action , class environment >
void LRTAStar< state, action, environment >::GetPath ( environment *  env,
const state &  from,
const state &  to,
std::vector< state > &  thePath 
)
virtual

The core routine of LRTAStar – computes at most one-move path.

Implements GenericSearchAlgorithm< state, action, environment >.

Definition at line 77 of file LRTAStar.h.

References fequal(), fgreater(), and fless().

◆ HCost()

template<class state , class action , class environment >
double LRTAStar< state, action, environment >::HCost ( environment *  env,
const state &  from,
const state &  to 
) const
inline

Definition at line 43 of file LRTAStar.h.

References LRTAStar< state, action, environment >::heur.

◆ LogFinalStats()

template<class state , class action , class environment >
virtual void LRTAStar< state, action, environment >::LogFinalStats ( StatCollection s)
inlinevirtual

◆ OpenGLDraw() [1/2]

template<class state , class action , class environment >
void LRTAStar< state, action, environment >::OpenGLDraw ( ) const
inlinevirtual

Reimplemented from GenericSearchAlgorithm< state, action, environment >.

Definition at line 64 of file LRTAStar.h.

◆ OpenGLDraw() [2/2]

template<class state , class action , class environment >
void LRTAStar< state, action, environment >::OpenGLDraw ( const environment *  env) const
virtual

Reimplemented from GenericSearchAlgorithm< state, action, environment >.

Definition at line 185 of file LRTAStar.h.

◆ SetHCost()

template<class state , class action , class environment >
void LRTAStar< state, action, environment >::SetHCost ( environment *  env,
const state &  where,
const state &  to,
double  val 
)
inline

Definition at line 38 of file LRTAStar.h.

References LRTAStar< state, action, environment >::heur.

Member Data Documentation

◆ fAmountLearned

template<class state , class action , class environment >
double LRTAStar< state, action, environment >::fAmountLearned
private

◆ goal

template<class state , class action , class environment >
state LRTAStar< state, action, environment >::goal
private

Definition at line 70 of file LRTAStar.h.

◆ heur

template<class state , class action , class environment >
LearnedHeuristic LRTAStar< state, action, environment >::heur
private

◆ nodesExpanded

template<class state , class action , class environment >
uint64_t LRTAStar< state, action, environment >::nodesExpanded
private

Definition at line 72 of file LRTAStar.h.

Referenced by LRTAStar< state, action, environment >::GetNodesExpanded().

◆ nodesTouched

template<class state , class action , class environment >
uint64_t LRTAStar< state, action, environment >::nodesTouched
private

Definition at line 72 of file LRTAStar.h.

Referenced by LRTAStar< state, action, environment >::GetNodesTouched().


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