#include <dummy_environment.h>
Public Member Functions | |
DummyEnvironment () | |
constructor | |
virtual int | GetFromToHeuristic (int FromStateID, int ToStateID) |
heuristic estimate from state FromStateID to state ToStateID | |
virtual int | GetGoalHeuristic (int stateID) |
heuristic estimate from state with stateID to goal state | |
virtual void | GetPreds (int TargetStateID, std::vector< int > *PredIDV, std::vector< int > *CostV) |
see comments for GetSuccs functon | |
virtual int | GetStartHeuristic (int stateID) |
heuristic estimate from start state to state with stateID | |
virtual void | GetSuccs (int SourceStateID, std::vector< int > *SuccIDV, std::vector< int > *CostV) |
depending on the search used, it may call GetSuccs function (for forward search) or GetPreds function (for backward search) or both (for incremental search). At least one of this functions should be implemented (otherwise, there will be no search to run) Some searches may also use SetAllActionsandAllOutcomes or SetAllPreds functions if they keep the pointers to successors (predecessors) but most searches do not require this, so it is not necessary to support this | |
virtual bool | InitializeEnv (const char *sEnvFile) |
initialization environment from file (see .cfg files for examples) | |
virtual bool | InitializeMDPCfg (MDPConfig *MDPCfg) |
initialization of MDP data structure | |
virtual void | PrintEnv_Config (FILE *fOut) |
prints environment config file | |
virtual void | PrintState (int stateID, bool bVerbose, FILE *fOut=NULL) |
prints the state variables for a state with stateID | |
virtual void | SetAllActionsandAllOutcomes (CMDPSTATE *state) |
see comments for GetSuccs functon | |
virtual void | SetAllPreds (CMDPSTATE *state) |
see comments for GetSuccs functon | |
virtual int | SizeofCreatedEnv () |
returns the number of states (hashentries) created | |
virtual | ~DummyEnvironment () |
sets a parameter to a value. The set of supported parameters depends on the particular environment |
Definition at line 32 of file dummy_environment.h.
virtual DummyEnvironment::~DummyEnvironment | ( | ) | [inline, virtual] |
sets a parameter to a value. The set of supported parameters depends on the particular environment
destructor
Definition at line 86 of file dummy_environment.h.
DummyEnvironment::DummyEnvironment | ( | ) | [inline] |
constructor
Definition at line 92 of file dummy_environment.h.
virtual int DummyEnvironment::GetFromToHeuristic | ( | int | FromStateID, |
int | ToStateID | ||
) | [inline, virtual] |
heuristic estimate from state FromStateID to state ToStateID
Definition at line 47 of file dummy_environment.h.
virtual int DummyEnvironment::GetGoalHeuristic | ( | int | stateID | ) | [inline, virtual] |
heuristic estimate from state with stateID to goal state
Definition at line 50 of file dummy_environment.h.
virtual void DummyEnvironment::GetPreds | ( | int | TargetStateID, |
std::vector< int > * | PredIDV, | ||
std::vector< int > * | CostV | ||
) | [inline, virtual] |
see comments for GetSuccs functon
Definition at line 63 of file dummy_environment.h.
virtual int DummyEnvironment::GetStartHeuristic | ( | int | stateID | ) | [inline, virtual] |
heuristic estimate from start state to state with stateID
Definition at line 53 of file dummy_environment.h.
virtual void DummyEnvironment::GetSuccs | ( | int | SourceStateID, |
std::vector< int > * | SuccIDV, | ||
std::vector< int > * | CostV | ||
) | [inline, virtual] |
depending on the search used, it may call GetSuccs function (for forward search) or GetPreds function (for backward search) or both (for incremental search). At least one of this functions should be implemented (otherwise, there will be no search to run) Some searches may also use SetAllActionsandAllOutcomes or SetAllPreds functions if they keep the pointers to successors (predecessors) but most searches do not require this, so it is not necessary to support this
Definition at line 60 of file dummy_environment.h.
virtual bool DummyEnvironment::InitializeEnv | ( | const char * | sEnvFile | ) | [inline, virtual] |
initialization environment from file (see .cfg files for examples)
Definition at line 39 of file dummy_environment.h.
virtual bool DummyEnvironment::InitializeMDPCfg | ( | MDPConfig * | MDPCfg | ) | [inline, virtual] |
initialization of MDP data structure
Definition at line 43 of file dummy_environment.h.
virtual void DummyEnvironment::PrintEnv_Config | ( | FILE * | fOut | ) | [inline, virtual] |
prints environment config file
Definition at line 79 of file dummy_environment.h.
virtual void DummyEnvironment::PrintState | ( | int | stateID, |
bool | bVerbose, | ||
FILE * | fOut = NULL |
||
) | [inline, virtual] |
prints the state variables for a state with stateID
Definition at line 76 of file dummy_environment.h.
virtual void DummyEnvironment::SetAllActionsandAllOutcomes | ( | CMDPSTATE * | state | ) | [inline, virtual] |
see comments for GetSuccs functon
Definition at line 66 of file dummy_environment.h.
virtual void DummyEnvironment::SetAllPreds | ( | CMDPSTATE * | state | ) | [inline, virtual] |
see comments for GetSuccs functon
Definition at line 69 of file dummy_environment.h.
virtual int DummyEnvironment::SizeofCreatedEnv | ( | ) | [inline, virtual] |
returns the number of states (hashentries) created
Definition at line 73 of file dummy_environment.h.