CSamplingBasedTransitionModel Class Reference
#include <csamplingbasedmodel.h>
Inheritance diagram for CSamplingBasedTransitionModel:
List
of all members.
|
Public Member Functions
|
|
|
CSamplingBasedTransitionModel
(CStateProperties
*properties,
CStateProperties
*targetProperties,
CActionSet
*actions,
CRewardFunction
*rewardFunction)
|
|
virtual
|
~CSamplingBasedTransitionModel
()
|
|
virtual void
|
nextStep
(CStateCollection *oldState,
CAction *action,
CStateCollection
*newState)
|
| |
Calculates the reward and then calls
nextStep(...) with the reward as additional argument.
|
|
virtual void
|
nextStep
(CStateCollection *oldState,
CAction *action, double
reward, CStateCollection
*newState)
|
| |
virtual function, to be implemented by
subclass
|
|
virtual void
|
resetData
()
|
|
virtual void
|
loadData
(FILE *)
|
|
virtual void
|
saveData
(FILE *)
|
|
int
|
getNumStates
()
|
|
std::map< CAction *,
CSampleTransition * >
*
|
getTransitions
(int index)
|
|
virtual void
|
createStateList
(CEpisodeHistory
*history, CRewardLogger *logger, bool
useInitLogger=false)
|
|
CContinuousStateList
*
|
getStateList
()
|
Protected Types
|
typedef std::map< CAction *,
CSampleTransition *
>
|
Transitions |
Protected Member Functions
|
|
void
|
clearTransitions
()
|
|
void
|
addTransition
(int index, CAction
*action, CStateCollection *state,
double reward)
|
Protected Attributes
|
|
CEpisodeHistory
*
|
initLogger |
|
CRewardLogger
*
|
initRewardLogger |
|
CRewardFunction
*
|
rewardFunction |
|
CStateProperties *
|
targetProperties |
|
std::map< int, Transitions *
> *
|
transitions |
|
CContinuousStateList
*
|
stateList |
Member Typedef Documentation
Constructor & Destructor Documentation
| virtual
CSamplingBasedTransitionModel::~CSamplingBasedTransitionModel
|
( |
|
) |
[virtual] |
|
Member Function Documentation
| void
CSamplingBasedTransitionModel::addTransition
|
( |
int |
index,
|
|
|
CAction *
|
action,
|
|
|
CStateCollection *
|
state,
|
|
|
double |
reward |
|
) |
[protected] |
|
| void
CSamplingBasedTransitionModel::clearTransitions
|
( |
|
) |
[protected] |
|
| virtual void
CSamplingBasedTransitionModel::createStateList
|
( |
CEpisodeHistory *
|
history,
|
|
|
CRewardLogger *
|
logger,
|
|
|
bool |
useInitLogger =
false |
|
) |
[virtual] |
|
| int
CSamplingBasedTransitionModel::getNumStates
|
( |
|
) |
|
|
| virtual void
CSamplingBasedTransitionModel::loadData
|
( |
FILE * |
|
) |
[virtual] |
|
| |
Calculates the reward and then calls nextStep(...) with the
reward as additional argument.
Reimplemented from CSemiMDPRewardListener.
|
| virtual void
CSamplingBasedTransitionModel::resetData
|
( |
|
) |
[virtual] |
|
| virtual void
CSamplingBasedTransitionModel::saveData
|
( |
FILE * |
|
) |
[virtual] |
|
Member Data Documentation
The documentation for this class was generated from the following
file:
|