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

CExtendedPrimitiveAction Class Reference

#include <chierarchicbehaviours.h>

Inheritance diagram for CExtendedPrimitiveAction:

CExtendedAction CMultiStepAction CAction List of all members.


Public Member Functions

  CExtendedPrimitiveAction (CAction *primitiveAction, int extendedActionDuration)
virtual bool  isFinished (CStateCollection *oldState, CStateCollection *newState)
virtual CAction getNextHierarchyLevel (CStateCollection *state, CActionDataSet *actionDataSet=NULL)
  Virtual function for determining the next action in the next hierarchie level.



Public Attributes

int  extendedActionDuration


Protected Attributes

CAction primitiveAction

Constructor & Destructor Documentation

CExtendedPrimitiveAction::CExtendedPrimitiveAction CAction primitiveAction,
int  extendedActionDuration
 

Member Function Documentation

virtual CAction* CExtendedPrimitiveAction::getNextHierarchyLevel CStateCollection state,
CActionDataSet actionDataSet = NULL
[virtual]
 

Virtual function for determining the next action in the next hierarchie level.

Implements CExtendedAction.

virtual bool CExtendedPrimitiveAction::isFinished CStateCollection oldState,
CStateCollection newState
[virtual]
 

This method is normally used by a hierarchical controller to determine wether the action has finished or not. The finsished method may depend only on the current state transition, so you get the old state and the new state as parameters. The controller sets the finished flag according to isFinished, so other Listeners only have to look at this flag. This method must be implemented by all (non-abstract) sub-classes.

Implements CMultiStepAction.


Member Data Documentation

int CExtendedPrimitiveAction::extendedActionDuration
 
CAction* CExtendedPrimitiveAction::primitiveAction [protected]
 

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