$search
this is just an example of environment and can be used (copy and paste) for creating a more complex environment More...
#include <environment_XXX.h>
Public Member Functions | |
int | GetFromToHeuristic (int FromStateID, int ToStateID) |
see comments on the same function in the parent class | |
int | GetGoalHeuristic (int stateID) |
see comments on the same function in the parent class | |
void | GetPreds (int TargetStateID, vector< int > *PredIDV, vector< int > *CostV) |
see comments on the same function in the parent class | |
int | GetStartHeuristic (int stateID) |
see comments on the same function in the parent class | |
void | GetSuccs (int SourceStateID, vector< int > *SuccIDV, vector< int > *CostV) |
see comments on the same function in the parent class | |
bool | InitializeEnv (const char *sEnvFile) |
see comments on the same function in the parent class | |
bool | InitializeMDPCfg (MDPConfig *MDPCfg) |
see comments on the same function in the parent class | |
void | PrintEnv_Config (FILE *fOut) |
see comments on the same function in the parent class | |
void | PrintState (int stateID, bool bVerbose, FILE *fOut=NULL) |
see comments on the same function in the parent class | |
void | SetAllActionsandAllOutcomes (CMDPSTATE *state) |
see comments on the same function in the parent class | |
void | SetAllPreds (CMDPSTATE *state) |
see comments on the same function in the parent class | |
int | SizeofCreatedEnv () |
see comments on the same function in the parent class | |
~EnvironmentXXX () | |
Private Member Functions | |
void | AddAllOutcomes (unsigned int SourceX1, unsigned int SourceX2, unsigned int SourceX3, unsigned int SourceX4, CMDPACTION *action, int cost) |
void | ComputeHeuristicValues () |
EnvXXXHashEntry_t * | CreateNewHashEntry (unsigned int X1, unsigned int X2, unsigned int X3, unsigned int X4) |
void | CreateStartandGoalStates () |
unsigned int | GETHASHBIN (unsigned int X1, unsigned int X2, unsigned int X3, unsigned int X4) |
EnvXXXHashEntry_t * | GetHashEntry (unsigned int X1, unsigned int X2, unsigned int X3, unsigned int X4) |
void | InitializeEnvConfig () |
void | InitializeEnvironment () |
void | PrintHashTableHist () |
void | ReadConfiguration (FILE *fCfg) |
Private Attributes | |
EnvironmentXXX_t | EnvXXX |
EnvXXXConfig_t | EnvXXXCfg |
this is just an example of environment and can be used (copy and paste) for creating a more complex environment
Definition at line 82 of file environment_XXX.h.
EnvironmentXXX::~EnvironmentXXX | ( | ) | [inline] |
Definition at line 127 of file environment_XXX.h.
void EnvironmentXXX::AddAllOutcomes | ( | unsigned int | SourceX1, | |
unsigned int | SourceX2, | |||
unsigned int | SourceX3, | |||
unsigned int | SourceX4, | |||
CMDPACTION * | action, | |||
int | cost | |||
) | [private] |
Definition at line 229 of file environment_XXX.cpp.
void EnvironmentXXX::ComputeHeuristicValues | ( | ) | [private] |
Definition at line 271 of file environment_XXX.cpp.
EnvXXXHashEntry_t * EnvironmentXXX::CreateNewHashEntry | ( | unsigned int | X1, | |
unsigned int | X2, | |||
unsigned int | X3, | |||
unsigned int | X4 | |||
) | [private] |
Definition at line 147 of file environment_XXX.cpp.
void EnvironmentXXX::CreateStartandGoalStates | ( | ) | [private] |
Definition at line 195 of file environment_XXX.cpp.
int EnvironmentXXX::GetFromToHeuristic | ( | int | FromStateID, | |
int | ToStateID | |||
) | [virtual] |
see comments on the same function in the parent class
Implements DiscreteSpaceInformation.
Definition at line 319 of file environment_XXX.cpp.
int EnvironmentXXX::GetGoalHeuristic | ( | int | stateID | ) | [virtual] |
see comments on the same function in the parent class
Implements DiscreteSpaceInformation.
Definition at line 345 of file environment_XXX.cpp.
unsigned int EnvironmentXXX::GETHASHBIN | ( | unsigned int | X1, | |
unsigned int | X2, | |||
unsigned int | X3, | |||
unsigned int | X4 | |||
) | [private] |
Definition at line 63 of file environment_XXX.cpp.
EnvXXXHashEntry_t * EnvironmentXXX::GetHashEntry | ( | unsigned int | X1, | |
unsigned int | X2, | |||
unsigned int | X3, | |||
unsigned int | X4 | |||
) | [private] |
Definition at line 111 of file environment_XXX.cpp.
void EnvironmentXXX::GetPreds | ( | int | TargetStateID, | |
vector< int > * | PredIDV, | |||
vector< int > * | CostV | |||
) |
see comments on the same function in the parent class
Definition at line 455 of file environment_XXX.cpp.
int EnvironmentXXX::GetStartHeuristic | ( | int | stateID | ) | [virtual] |
see comments on the same function in the parent class
Implements DiscreteSpaceInformation.
Definition at line 367 of file environment_XXX.cpp.
void EnvironmentXXX::GetSuccs | ( | int | SourceStateID, | |
vector< int > * | SuccIDV, | |||
vector< int > * | CostV | |||
) |
see comments on the same function in the parent class
Definition at line 448 of file environment_XXX.cpp.
bool EnvironmentXXX::InitializeEnv | ( | const char * | sEnvFile | ) | [virtual] |
see comments on the same function in the parent class
Implements DiscreteSpaceInformation.
Definition at line 283 of file environment_XXX.cpp.
void EnvironmentXXX::InitializeEnvConfig | ( | ) | [private] |
Definition at line 104 of file environment_XXX.cpp.
void EnvironmentXXX::InitializeEnvironment | ( | ) | [private] |
Definition at line 214 of file environment_XXX.cpp.
bool EnvironmentXXX::InitializeMDPCfg | ( | MDPConfig * | MDPCfg | ) | [virtual] |
see comments on the same function in the parent class
Implements DiscreteSpaceInformation.
Definition at line 308 of file environment_XXX.cpp.
void EnvironmentXXX::PrintEnv_Config | ( | FILE * | fOut | ) | [virtual] |
see comments on the same function in the parent class
Implements DiscreteSpaceInformation.
Definition at line 497 of file environment_XXX.cpp.
void EnvironmentXXX::PrintHashTableHist | ( | ) | [private] |
Definition at line 72 of file environment_XXX.cpp.
void EnvironmentXXX::PrintState | ( | int | stateID, | |
bool | bVerbose, | |||
FILE * | fOut = NULL | |||
) | [virtual] |
see comments on the same function in the parent class
Implements DiscreteSpaceInformation.
Definition at line 469 of file environment_XXX.cpp.
void EnvironmentXXX::ReadConfiguration | ( | FILE * | fCfg | ) | [private] |
Definition at line 97 of file environment_XXX.cpp.
void EnvironmentXXX::SetAllActionsandAllOutcomes | ( | CMDPSTATE * | state | ) | [virtual] |
see comments on the same function in the parent class
Implements DiscreteSpaceInformation.
Definition at line 394 of file environment_XXX.cpp.
void EnvironmentXXX::SetAllPreds | ( | CMDPSTATE * | state | ) | [virtual] |
see comments on the same function in the parent class
Implements DiscreteSpaceInformation.
Definition at line 439 of file environment_XXX.cpp.
int EnvironmentXXX::SizeofCreatedEnv | ( | ) | [virtual] |
see comments on the same function in the parent class
Implements DiscreteSpaceInformation.
Definition at line 463 of file environment_XXX.cpp.
EnvironmentXXX_t EnvironmentXXX::EnvXXX [private] |
Definition at line 133 of file environment_XXX.h.
EnvXXXConfig_t EnvironmentXXX::EnvXXXCfg [private] |
Definition at line 127 of file environment_XXX.h.