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

CSemiMDPSender Class Reference

Class for sending the State-Action-State Tuple to the Listeners. More...

#include <cagent.h>

Inheritance diagram for CSemiMDPSender:

COfflineEpisodePolicyEvaluation CSemiMarkovDecisionProcess CLSTDOfflineEpisodePolicyEvaluation CAgent CHierarchicalSemiMarkovDecisionProcess CHiearchicalAgent CSubGoalBehaviour CTaxiHierarchicalBehaviour List of all members.


Public Member Functions

  CSemiMDPSender ()
virtual  ~CSemiMDPSender ()
void  addSemiMDPListener (CSemiMDPListener *listener)
  Add a Listener to the Listener-List.

void  removeSemiMDPListener (CSemiMDPListener *listener)
  Remove a Listener from the Listerner-List.

bool  isListenerAdded (CSemiMDPListener *listener)
virtual void  startNewEpisode ()
  Tells all Listeners that a new Episode has occured.

virtual void  sendNextStep (CStateCollection *lastState, CAction *Action, CStateCollection *currentState)
  Sends the State-Action-State Tuple to all Listeners.

virtual void  sendIntermediateStep (CStateCollection *lastState, CAction *Action, CStateCollection *currentState)
  Sends the State-Action-State Tuple to all Listeners, indicating that ist was an intermediate step.



Protected Attributes

std::list< CSemiMDPListener * > *  SMDPListeners

Detailed Description

Class for sending the State-Action-State Tuple to the Listeners.

Maintains a List of CSemiMDPListeners. The class provides methods for sending the Listeners that a new Episode has started, a new Step (State-Action-State Tuple) or an intermediate Step has occured.

See also:
CSemiMDPListener

Constructor & Destructor Documentation

CSemiMDPSender::CSemiMDPSender  ) 
 
virtual CSemiMDPSender::~CSemiMDPSender  )  [virtual]
 

Member Function Documentation

void CSemiMDPSender::addSemiMDPListener CSemiMDPListener listener  ) 
 

Add a Listener to the Listener-List.

bool CSemiMDPSender::isListenerAdded CSemiMDPListener listener  ) 
 
void CSemiMDPSender::removeSemiMDPListener CSemiMDPListener listener  ) 
 

Remove a Listener from the Listerner-List.

virtual void CSemiMDPSender::sendIntermediateStep CStateCollection lastState,
CAction Action,
CStateCollection currentState
[virtual]
 

Sends the State-Action-State Tuple to all Listeners, indicating that ist was an intermediate step.

virtual void CSemiMDPSender::sendNextStep CStateCollection lastState,
CAction Action,
CStateCollection currentState
[virtual]
 

Sends the State-Action-State Tuple to all Listeners.

Reimplemented in CSemiMarkovDecisionProcess.

virtual void CSemiMDPSender::startNewEpisode  )  [virtual]
 

Tells all Listeners that a new Episode has occured.

Reimplemented in CSemiMarkovDecisionProcess, CAgent, and CHiearchicalAgent.


Member Data Documentation

std::list<CSemiMDPListener *>* CSemiMDPSender::SMDPListeners [protected]
 

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