CStateModifier Class Reference
Abstract class for
calculating modified states from the original Model state.
More...
#include <cstatemodifier.h>
Inheritance diagram for CStateModifier:
List of all members.
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
Member Data Documentation
The documentation for this class was generated from the following
file:
|