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

CEpisodeOutput Class Reference

This Class writes each step and start of a new episode in readable form to a file. More...

#include <cagentlogger.h>

Inheritance diagram for CEpisodeOutput:

CSemiMDPRewardListener CActionObject CStateObject CSemiMDPListener CParameterObject CParameters CEpisodeOutputStateChanged List of all members.


Public Member Functions

  CEpisodeOutput (CStateProperties *featCalc, CRewardFunction *rewardFunction, CActionSet *actions, FILE *output)
virtual  ~CEpisodeOutput ()
virtual void  nextStep (CStateCollection *oldState, CAction *action, double reward, CStateCollection *nextState)
  virtual function, to be implemented by subclass

virtual void  intermediateStep (CStateCollection *oldState, CAction *action, double reward, CStateCollection *nextState)
  virtual function, to be implemented by subclass

virtual void  newEpisode ()
  tells the Listener that a new Episode has startet.



Protected Attributes

FILE *  stream
int  nEpisodes
int  nSteps

Detailed Description

This Class writes each step and start of a new episode in readable form to a file.

For each state the old state, action, reward and newstate is written to the specified file. For the states only the specified state is chossen from the state colection. This class can be used for error tracking of the model or reward model and debugging.


Constructor & Destructor Documentation

CEpisodeOutput::CEpisodeOutput CStateProperties featCalc,
CRewardFunction rewardFunction,
CActionSet actions,
FILE *  output
 
virtual CEpisodeOutput::~CEpisodeOutput  )  [virtual]
 

Member Function Documentation

virtual void CEpisodeOutput::intermediateStep CStateCollection oldState,
CAction action,
double  reward,
CStateCollection nextState
[virtual]
 

virtual function, to be implemented by subclass

Reimplemented from CSemiMDPRewardListener.

virtual void CEpisodeOutput::newEpisode  )  [virtual]
 

tells the Listener that a new Episode has startet.

Reimplemented from CSemiMDPListener.

virtual void CEpisodeOutput::nextStep CStateCollection oldState,
CAction action,
double  reward,
CStateCollection nextState
[virtual]
 

virtual function, to be implemented by subclass

Reimplemented from CSemiMDPRewardListener.

Reimplemented in CEpisodeOutputStateChanged.


Member Data Documentation

int CEpisodeOutput::nEpisodes [protected]
 
int CEpisodeOutput::nSteps [protected]
 
FILE* CEpisodeOutput::stream [protected]
 

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