Reinforcement Learning Toolbox 2.0
last updated:
General
Documentation
Manual
Tutorial
Class Reference
Master Thesis
Examples
Related Papers
Downloads
Links
News
mailto:webmaster
Main Page     Class Hierarchy   Compound List   File List   Compound Members   File Members

CActionData Class Reference

interface for saving changable data of an action More...

#include <caction.h>

Inheritance diagram for CActionData:

CMultiStepActionData CContinuousActionData List of all members.


Public Member Functions

  CActionData ()
virtual  ~CActionData ()
virtual void  saveASCII (FILE *stream)=0
virtual void  loadASCII (FILE *stream)=0
virtual void  saveBIN (FILE *stream)=0
virtual void  loadBIN (FILE *stream)=0
virtual void  setData (CActionData *actionData)=0
  Set the changeable data according to the actiondata object.

bool  isChangeAble ()
void  setIsChangeAble (bool changeAble)


Protected Attributes

bool  bIsChangeAble

Detailed Description

interface for saving changable data of an action

Since the "Id" of an action is the pointer itself, and this pointer is used in every action set, we can't set the changeable data of an action that easily, since it would change the action's data everywhere in the program. If this isn't wanted (as usual), we have to use action data objects. New action data objects can be retrieved from any action class (if there is no changeable data for an action the action will return a NULL pointer). This action data object is now local, and not global any more and can therefore be changed easily. If an action has changeable data, the action pointer and a coresponding action data object determine the action. This is used in many function-arguments. Normally, if the action-data object is missing (= NULL) a new action data object is retrieved from the action.

At the momemt its used for saving the data of MultiStepActions (duration, finished), and ContinousActions (saving the continuous action value) all other classes return NULL when asking them for a CActionData Object.
See also:
CAction

CMultiStepActionData

CActionList


Constructor & Destructor Documentation

CActionData::CActionData  ) 
 
virtual CActionData::~CActionData  )  [inline, virtual]
 

Member Function Documentation

bool CActionData::isChangeAble  ) 
 
virtual void CActionData::loadASCII FILE *  stream  )  [pure virtual]
 

Implemented in CMultiStepActionData, and CContinuousActionData.

virtual void CActionData::loadBIN FILE *  stream  )  [pure virtual]
 

Implemented in CMultiStepActionData, and CContinuousActionData.

virtual void CActionData::saveASCII FILE *  stream  )  [pure virtual]
 

Implemented in CMultiStepActionData, and CContinuousActionData.

virtual void CActionData::saveBIN FILE *  stream  )  [pure virtual]
 

Implemented in CMultiStepActionData, and CContinuousActionData.

virtual void CActionData::setData CActionData actionData  )  [pure virtual]
 

Set the changeable data according to the actiondata object.

Implemented in CMultiStepActionData, and CContinuousActionData.

void CActionData::setIsChangeAble bool  changeAble  ) 
 

Member Data Documentation

bool CActionData::bIsChangeAble [protected]
 

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