Go to the documentation of this file.
27 #ifndef GENERICSEARCHALGORITHM_H
28 #define GENERICSEARCHALGORITHM_H
34 template <
class state,
class action,
class environment>
40 virtual void GetPath(environment *env,
const state &from,
const state &to, std::vector<state> &
path) = 0;
41 virtual void GetPath(environment *env,
const state &from,
const state &to, std::vector<action> &
path) = 0;
42 virtual bool InitializeSearch(environment *env,
const state& from,
const state& to, std::vector<state> &thePath) { assert(
false);
return false; }
44 virtual const char *
GetName() = 0;
virtual void LogFinalStats(StatCollection *stats)=0
virtual uint64_t GetNodesExpanded() const =0
virtual bool DoSingleSearchStep(std::vector< state > &thePath)
virtual uint64_t GetNodesTouched() const =0
virtual const char * GetName()=0
virtual bool InitializeSearch(environment *env, const state &from, const state &to, std::vector< state > &thePath)
virtual void GetPath(environment *env, const state &from, const state &to, std::vector< state > &path)=0
The StatCollection class is for collecting stats across different parts of the simulation.
virtual void OpenGLDraw(const environment *env) const
A linked list of nodes which form a continuous path.
virtual ~GenericSearchAlgorithm()
virtual void OpenGLDraw() const