Public Member Functions
DummyEnvironment Class Reference

#include <dummy_environment.h>

List of all members.

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

Detailed Description

Definition at line 39 of file dummy_environment.h.


Constructor & Destructor Documentation

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 93 of file dummy_environment.h.

constructor

Definition at line 99 of file dummy_environment.h.


Member Function Documentation

virtual int DummyEnvironment::GetFromToHeuristic ( int  FromStateID,
int  ToStateID 
) [inline, virtual]

heuristic estimate from state FromStateID to state ToStateID

Definition at line 54 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 57 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 70 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 60 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 67 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 46 of file dummy_environment.h.

virtual bool DummyEnvironment::InitializeMDPCfg ( MDPConfig *  MDPCfg) [inline, virtual]

initialization of MDP data structure

Definition at line 50 of file dummy_environment.h.

virtual void DummyEnvironment::PrintEnv_Config ( FILE *  fOut) [inline, virtual]

prints environment config file

Definition at line 86 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 83 of file dummy_environment.h.

virtual void DummyEnvironment::SetAllActionsandAllOutcomes ( CMDPSTATE *  state) [inline, virtual]

see comments for GetSuccs functon

Definition at line 73 of file dummy_environment.h.

virtual void DummyEnvironment::SetAllPreds ( CMDPSTATE *  state) [inline, virtual]

see comments for GetSuccs functon

Definition at line 76 of file dummy_environment.h.

virtual int DummyEnvironment::SizeofCreatedEnv ( ) [inline, virtual]

returns the number of states (hashentries) created

Definition at line 80 of file dummy_environment.h.


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


sbpl_interface
Author(s): Gil Jones
autogenerated on Sun Jan 17 2016 12:57:03