CStoredEpisodeModel Class Reference
Serves
as environment model for an agent, simulating the episodes from an
agent logger. More...
#include <cepisodehistory.h>
Inheritance diagram for CStoredEpisodeModel:
List of all
members.
Detailed Description
Serves as environment model for an agent, simulating the episodes
from an agent logger.
The simulated environment model reproduces logged episodes for
the agent, it can be used as it were a normal environment model, so
the listeners of the agent can learn from the logged data as if it
is new created data. The environment takes an episode history and
simulates the episodes in sequence. Therefore it handels pointer
tto the currentEpisode and the number of steps already simulated in
that episode.
- The class also serves as agent controller, giving back the
actions from the steps. The environment episode must be used as
agent controller because obviously only the actions from the
episode history can be "executed".
- When fetching a state collection via getState(CStateCollection
*), the environment model registers all states in the
statecollection, which are in the episode history and member of the
state collection. These states are marked as already calculated, so
only the states which are not stored in the history have to be
recalculated.
- See also:
- CEpisodeHistory
Constructor & Destructor Documentation
| |
Creates a simulated environment model, simulating the given
history.
|
|
CStoredEpisodeModel::~CStoredEpisodeModel
|
( |
|
) |
|
|
Member Function Documentation
| virtual void
CStoredEpisodeModel::doNextState
|
( |
CPrimitiveAction *
|
action |
) |
[protected,
virtual] |
|
| |
Sets the state to the next step.
Increases the numSteps field ans sets the reset flag if the
episode has ended.
Implements CEnvironmentModel.
|
| virtual void
CStoredEpisodeModel::doResetModel
|
( |
|
) |
[protected,
virtual] |
|
| |
Sets the currentEpisode to the next Episode in history.
Reimplemented from CEnvironmentModel.
|
| virtual CEpisodeHistory*
CStoredEpisodeModel::getEpisodeHistory
|
( |
|
) |
[virtual] |
|
| |
Implementation of the agent controller interface, gets the
action executed in the current step.
|
| |
Registers all states in the statecollection, which are in the
episode history and member of the state collection. These states
are marked as already calculated, so only the states which are not
stored in the history have to be recalculated.
Reimplemented from CEnvironmentModel.
|
| virtual void
CStoredEpisodeModel::getState
|
( |
CState *
|
state |
) |
[virtual] |
|
| |
Gets the state with the given states properties from the
history.
Reimplemented from CEnvironmentModel.
|
| virtual void
CStoredEpisodeModel::setEpisodeHistory
|
( |
CEpisodeHistory *
|
hist |
) |
[virtual] |
|
Member Data Documentation
| |
Pointer to the current episode.
|
The documentation for this class was generated from the following
file:
|