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

CEpisodeHistory Class Reference

Interface for all classes which are able to store episodes. More...

#include <cepisodehistory.h>

Inheritance diagram for CEpisodeHistory:

CStateModifiersObject CStepHistory CStateObject CStateModifiersObject CLearnDataObject CActionObject CStateObject CParameterObject CParameters CAgentLogger CEpisodeHistorySubset List of all members.


Public Member Functions

  CEpisodeHistory (CStateProperties *properties, CActionSet *actions)
virtual  ~CEpisodeHistory ()
virtual int  getNumEpisodes ()=0
  returns the number of episodes

virtual CEpisode getEpisode (int index)=0
  returns a specific episode

virtual int  getNumSteps ()
virtual void  getStep (int index, CStep *step)
  virtual function, should retrieve the indexth step and writes it in the listener

virtual void  createStepToEpisodeMap ()


Protected Attributes

std::map< int, CEpisode * > *  stepToEpisodeMap
std::map< CEpisode *, int > *  episodeOffsetMap

Detailed Description

Interface for all classes which are able to store episodes.

This class is a interface for all histories containing episode objects. It provides abstract functions for fetching a specific episode (getEpisode) and retrieving the number of episodes (getNumEpisodes). These 2 functions must be implemented by all classes implementing this interface (e.g. CAgentLogger).

The class also provides to functions for simulating a certain episode (simulateEpisode) and simulating all episodes (simulateAllEpisodes) to a specific listener. Since CAgentLogger implements this interface it can be used to simulate the training trial to a single listener. If you use more than one listener it is recommended to use CStoredEpisodeModel.

See also:
CAgentLogger

Constructor & Destructor Documentation

CEpisodeHistory::CEpisodeHistory CStateProperties properties,
CActionSet actions
 
virtual CEpisodeHistory::~CEpisodeHistory  )  [virtual]
 

Member Function Documentation

virtual void CEpisodeHistory::createStepToEpisodeMap  )  [virtual]
 
virtual CEpisode* CEpisodeHistory::getEpisode int  index  )  [pure virtual]
 

returns a specific episode

Implemented in CAgentLogger, and CEpisodeHistorySubset.

virtual int CEpisodeHistory::getNumEpisodes  )  [pure virtual]
 

returns the number of episodes

Implemented in CAgentLogger, and CEpisodeHistorySubset.

virtual int CEpisodeHistory::getNumSteps  )  [virtual]
 

Implements CStepHistory.

virtual void CEpisodeHistory::getStep int  index,
CStep step
[virtual]
 

virtual function, should retrieve the indexth step and writes it in the listener

Implements CStepHistory.


Member Data Documentation

std::map<CEpisode*, int>* CEpisodeHistory::episodeOffsetMap [protected]
 
std::map<int, CEpisode*>* CEpisodeHistory::stepToEpisodeMap [protected]
 

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