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

CStateModifier Class Reference

Abstract class for calculating modified states from the original Model state. More...

#include <cstatemodifier.h>

Inheritance diagram for CStateModifier:

CStateProperties CAbstractStateDiscretizer CFeatureCalculator CFeatureStateNNInput CLocal4GridWorldState CLocal4XGridWorldState CLocal8GridWorldState CNeuralNetworkStateModifier CStateVariablesChooser List of all members.


Public Member Functions

  CStateModifier (unsigned int numContinuousStates, unsigned int numDiscreteStates)
  constructor for state modifiers, sets the number of continuous and discrete states of the resulting modified state objects.

virtual  ~CStateModifier ()
virtual void  getModifiedState (CStateCollection *originalState, CState *modifiedState)=0
  Virtual function for calculating the modified state from the original state (usually the model state).



Protected Member Functions

  CStateModifier ()
virtual void  registerStateCollection (CStateCollectionImpl *stateCollection)
virtual void  removeStateCollection (CStateCollectionImpl *stateCollection)
virtual void  stateChanged ()


Protected Attributes

bool  changeState
std::list< CStateCollectionImpl * > *  stateCollections


Friends

class  CStateCollectionImpl

Detailed Description

Abstract class for calculating modified states from the original Model state.

State modifier take the original model state or any other modified state and transform the state in a new state. The new state can be any type of state. Feature states are created by all sub classes of CFeatureCalculator and discrete states are calculated by all subclasses of CAbstractStateDiscretizer. The only function of CStateModifier is getModifiedState(CStateCollection *originalState, CState *targetState). All a state modifier has to do is to take the information of the actual state from the "originalState" collection and writes the new, modified state into the target state. To use an instantiated state modifier you have to add the modifier to the state modifier list of the agent. The agent again adds the modifier to its state collections, so the modified state gets available to all listeners.

CStateModifier is also subclass of CStateProperties. This has basically 2 reasons. First of all this is an easy way to specify the properties of the modified states calculated by this modifier, and the other important reason is that the modifier itself serves as the id for a state in a state collection.

Constructor & Destructor Documentation

CStateModifier::CStateModifier  )  [protected]
 
CStateModifier::CStateModifier unsigned int  numContinuousStates,
unsigned int  numDiscreteStates
 

constructor for state modifiers, sets the number of continuous and discrete states of the resulting modified state objects.

virtual CStateModifier::~CStateModifier  )  [virtual]
 

Member Function Documentation

virtual void CStateModifier::getModifiedState CStateCollection originalState,
CState modifiedState
[pure virtual]
 

Virtual function for calculating the modified state from the original state (usually the model state).

Implemented in CRBFCenterFeatureCalculator, CAbstractStateDiscretizer, CLocal4GridWorldState, CLocal4XGridWorldState, CLocal8GridWorldState, CFeatureOperatorOr, CFeatureOperatorAnd, CGridFeatureCalculator, CTilingFeatureCalculator, CLinearMultiFeatureCalculator, CSingleStateFeatureCalculator, CFeatureStateNNInput, CNeuralNetworkStateModifier, CStateVariablesChooser, and CForestFeatureCalculator< TreeData >.

virtual void CStateModifier::registerStateCollection CStateCollectionImpl stateCollection  )  [protected, virtual]
 
virtual void CStateModifier::removeStateCollection CStateCollectionImpl stateCollection  )  [protected, virtual]
 
virtual void CStateModifier::stateChanged  )  [protected, virtual]
 

Friends And Related Function Documentation

friend class CStateCollectionImpl [friend]
 

Member Data Documentation

bool CStateModifier::changeState [protected]
 
std::list<CStateCollectionImpl *>* CStateModifier::stateCollections [protected]
 

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