CPrimitiveActionStateChange Class Reference
This class represents
an primitive action which gets executed until a specific (mostly
discrete) state changes. More...
#include <chierarchicbehaviours.h>
Inheritance diagram for CPrimitiveActionStateChange:
List of all
members.
Detailed Description
This class represents an primitive action which gets executed until
a specific (mostly discrete) state changes.
This extended action subclass executes a primitive action until
a specified state changes. This can be useful for example in
gridworlds with local states. The state which has to change is
given by "stateToChange" an will be most time a discrete state
(continuous states or features normally always change). The
isFinished method returns as long false as the 2 states (oldState
and newState) are the same.
Constructor & Destructor Documentation
Member Function Documentation
| |
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.
|
| void
CPrimitiveActionStateChange::setStateToChange
|
( |
CStateProperties *
|
stateToChange |
) |
|
|
Member Data Documentation
| |
The Properties of the state which has to
change.
|
The documentation for this class was generated from the following
file:
|