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

CActionList Class Reference

class for logging a sequence of actions More...

#include <caction.h>

Inheritance diagram for CActionList:

CActionObject List of all members.


Public Member Functions

  CActionList (CActionSet *actions)
virtual  ~CActionList ()
void  addAction (CAction *action)
CAction getAction (unsigned int num, CActionDataSet *l_data)
virtual void  loadBIN (FILE *stream)
virtual void  saveBIN (FILE *stream)
virtual void  loadASCII (FILE *stream)
virtual void  saveASCII (FILE *stream)
unsigned int  getSize ()
  Returns the number of actions in the action list.

unsigned int  getNumActions ()
void  clear ()


Protected Attributes

std::vector< int > *  actionIndices
std::map< int, CActionData * > *  actionDatas

Detailed Description

class for logging a sequence of actions

This class saves the ActionData Objects and the index of the actions in separate lists. If you add an action, the index is stored in the index list (so the action has to be member of the actionlist's actionset. If the specific action returns a valid CActionData Object, this is also stored in the actionDatas map. /par If you want to get an action with a specified number in the sequence, the action with the index specified by actionIndices[num] is returned, but before if there is an action data, it is set.


Constructor & Destructor Documentation

CActionList::CActionList CActionSet actions  ) 
 
virtual CActionList::~CActionList  )  [virtual]
 

Member Function Documentation

void CActionList::addAction CAction action  ) 
 
void CActionList::clear  ) 
 
CAction* CActionList::getAction unsigned int  num,
CActionDataSet l_data
 
unsigned int CActionList::getNumActions  ) 
 

Reimplemented from CActionObject.

unsigned int CActionList::getSize  ) 
 

Returns the number of actions in the action list.

virtual void CActionList::loadASCII FILE *  stream  )  [virtual]
 
virtual void CActionList::loadBIN FILE *  stream  )  [virtual]
 
virtual void CActionList::saveASCII FILE *  stream  )  [virtual]
 
virtual void CActionList::saveBIN FILE *  stream  )  [virtual]
 

Member Data Documentation

std::map<int, CActionData *>* CActionList::actionDatas [protected]
 

map for the actionDatas, the mapIndex is the actionNumber in the sequence, because not all action have an action data

std::vector<int>* CActionList::actionIndices [protected]
 

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