GClasses
|
This is the base class of search algorithms that can only perform a discreet set of actions (as opposed to jumping to anywhere in the search space), and seeks to minimize the error of a path of actions. More...
#include <GOptimizer.h>
Public Member Functions | |
GActionPathSearch (GActionPathState *pStartState, size_t nActionCount) | |
Takes ownership of pStartState. | |
virtual | ~GActionPathSearch () |
size_t | actionCount () |
Returns the number of possible actions. | |
virtual bool | iterate ()=0 |
Call this in a loop to do the searching. If it returns true, then it's done so don't call it anymore. | |
virtual GActionPath * | bestPath ()=0 |
Returns the best known path so far. | |
virtual double | bestPathError ()=0 |
Returns the error of the best known path. | |
Protected Attributes | |
size_t | m_nActionCount |
This is the base class of search algorithms that can only perform a discreet set of actions (as opposed to jumping to anywhere in the search space), and seeks to minimize the error of a path of actions.
GClasses::GActionPathSearch::GActionPathSearch | ( | GActionPathState * | pStartState, |
size_t | nActionCount | ||
) | [inline] |
Takes ownership of pStartState.
virtual GClasses::GActionPathSearch::~GActionPathSearch | ( | ) | [inline, virtual] |
size_t GClasses::GActionPathSearch::actionCount | ( | ) | [inline] |
Returns the number of possible actions.
virtual GActionPath* GClasses::GActionPathSearch::bestPath | ( | ) | [pure virtual] |
Returns the best known path so far.
virtual double GClasses::GActionPathSearch::bestPathError | ( | ) | [pure virtual] |
Returns the error of the best known path.
virtual bool GClasses::GActionPathSearch::iterate | ( | ) | [pure virtual] |
Call this in a loop to do the searching. If it returns true, then it's done so don't call it anymore.
size_t GClasses::GActionPathSearch::m_nActionCount [protected] |