HOG2
Public Member Functions | Private Member Functions | Private Attributes | List of all members
IDAStar< state, action, verbose > Class Template Reference

#include <IDAStar.h>

Collaboration diagram for IDAStar< state, action, verbose >:
Collaboration graph
[legend]

Public Member Functions

 IDAStar ()
 
virtual ~IDAStar ()
 
void GetPath (SearchEnvironment< state, action > *env, state from, state to, std::vector< state > &thePath)
 
void GetPath (SearchEnvironment< state, action > *env, state from, state to, std::vector< action > &thePath)
 
uint64_t GetNodesExpanded ()
 
uint64_t GetNodesTouched ()
 
void ResetNodeCount ()
 
void SetUseBDPathMax (bool val)
 
void SetHeuristic (Heuristic< state > *heur)
 

Private Member Functions

double DoIteration (SearchEnvironment< state, action > *env, state parent, state currState, std::vector< state > &thePath, double bound, double g, double maxH)
 
double DoIteration (SearchEnvironment< state, action > *env, action forbiddenAction, state &currState, std::vector< action > &thePath, double bound, double g, double maxH, double parentH)
 
void PrintGHistogram ()
 
void UpdateNextBound (double currBound, double fCost)
 

Private Attributes

unsigned long long nodesExpanded
 
unsigned long long nodesTouched
 
state goal
 
double nextBound
 
bool usePathMax
 
bool useHashTable
 
vectorCache< action > actCache
 
bool storedHeuristic
 
Heuristic< state > * heuristic
 
std::vector< uint64_t > gCostHistogram
 

Detailed Description

template<class state, class action, bool verbose = true>
class IDAStar< state, action, verbose >

Definition at line 26 of file IDAStar.h.

Constructor & Destructor Documentation

◆ IDAStar()

template<class state , class action , bool verbose = true>
IDAStar< state, action, verbose >::IDAStar ( )
inline

◆ ~IDAStar()

template<class state , class action , bool verbose = true>
virtual IDAStar< state, action, verbose >::~IDAStar ( )
inlinevirtual

Definition at line 29 of file IDAStar.h.

Member Function Documentation

◆ DoIteration() [1/2]

template<class state , class action , bool verbose>
double IDAStar< state, action, verbose >::DoIteration ( SearchEnvironment< state, action > *  env,
action  forbiddenAction,
state &  currState,
std::vector< action > &  thePath,
double  bound,
double  g,
double  maxH,
double  parentH 
)
private

◆ DoIteration() [2/2]

template<class state , class action , bool verbose>
double IDAStar< state, action, verbose >::DoIteration ( SearchEnvironment< state, action > *  env,
state  parent,
state  currState,
std::vector< state > &  thePath,
double  bound,
double  g,
double  maxH 
)
private

◆ GetNodesExpanded()

template<class state , class action , bool verbose = true>
uint64_t IDAStar< state, action, verbose >::GetNodesExpanded ( )
inline

Definition at line 35 of file IDAStar.h.

References IDAStar< state, action, verbose >::nodesExpanded.

◆ GetNodesTouched()

template<class state , class action , bool verbose = true>
uint64_t IDAStar< state, action, verbose >::GetNodesTouched ( )
inline

Definition at line 36 of file IDAStar.h.

References IDAStar< state, action, verbose >::nodesTouched.

◆ GetPath() [1/2]

template<class state , class action , bool verbose>
void IDAStar< state, action, verbose >::GetPath ( SearchEnvironment< state, action > *  env,
state  from,
state  to,
std::vector< action > &  thePath 
)

◆ GetPath() [2/2]

template<class state , class action , bool verbose>
void IDAStar< state, action, verbose >::GetPath ( SearchEnvironment< state, action > *  env,
state  from,
state  to,
std::vector< state > &  thePath 
)

Definition at line 85 of file IDAStar.h.

References verbose.

◆ PrintGHistogram()

template<class state , class action , bool verbose = true>
void IDAStar< state, action, verbose >::PrintGHistogram ( )
inlineprivate

Definition at line 51 of file IDAStar.h.

◆ ResetNodeCount()

template<class state , class action , bool verbose = true>
void IDAStar< state, action, verbose >::ResetNodeCount ( )
inline

◆ SetHeuristic()

template<class state , class action , bool verbose = true>
void IDAStar< state, action, verbose >::SetHeuristic ( Heuristic< state > *  heur)
inline

◆ SetUseBDPathMax()

template<class state , class action , bool verbose = true>
void IDAStar< state, action, verbose >::SetUseBDPathMax ( bool  val)
inline

Definition at line 38 of file IDAStar.h.

References IDAStar< state, action, verbose >::usePathMax.

◆ UpdateNextBound()

template<class state , class action , bool verbose>
void IDAStar< state, action, verbose >::UpdateNextBound ( double  currBound,
double  fCost 
)
private

Definition at line 266 of file IDAStar.h.

References fgreater(), and fless().

Member Data Documentation

◆ actCache

template<class state , class action , bool verbose = true>
vectorCache<action> IDAStar< state, action, verbose >::actCache
private

Definition at line 73 of file IDAStar.h.

◆ gCostHistogram

template<class state , class action , bool verbose = true>
std::vector<uint64_t> IDAStar< state, action, verbose >::gCostHistogram
private

Definition at line 76 of file IDAStar.h.

◆ goal

template<class state , class action , bool verbose = true>
state IDAStar< state, action, verbose >::goal
private

Definition at line 68 of file IDAStar.h.

◆ heuristic

template<class state , class action , bool verbose = true>
Heuristic<state>* IDAStar< state, action, verbose >::heuristic
private

Definition at line 75 of file IDAStar.h.

Referenced by IDAStar< state, action, verbose >::SetHeuristic().

◆ nextBound

template<class state , class action , bool verbose = true>
double IDAStar< state, action, verbose >::nextBound
private

Definition at line 69 of file IDAStar.h.

◆ nodesExpanded

template<class state , class action , bool verbose = true>
unsigned long long IDAStar< state, action, verbose >::nodesExpanded
private

◆ nodesTouched

template<class state , class action , bool verbose = true>
unsigned long long IDAStar< state, action, verbose >::nodesTouched
private

◆ storedHeuristic

template<class state , class action , bool verbose = true>
bool IDAStar< state, action, verbose >::storedHeuristic
private

◆ useHashTable

template<class state , class action , bool verbose = true>
bool IDAStar< state, action, verbose >::useHashTable
private

Definition at line 72 of file IDAStar.h.

Referenced by IDAStar< state, action, verbose >::IDAStar().

◆ usePathMax

template<class state , class action , bool verbose = true>
bool IDAStar< state, action, verbose >::usePathMax
private

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