public class SimulatedPOEnvironment extends SimulatedEnvironment
Environment
specifically for simulating interaction with a POMDP
environments (PODomain
). In this case, the currentObservation()
returns the last observation made from the Environment
, not the hidden
state, and the executeAction(Action)
method does not return EnvironmentOutcome
objects that contain the full state
of the environment, but an observation drawn from the POMDP ObservationFunction
following
the execution of the action. If you would like to access the true hidden state of the environment, use the
getCurrentHiddenState()
method.Modifier and Type | Field and Description |
---|---|
protected State |
curObservation
The current observation from the POMDP environment
|
protected PODomain |
poDomain |
allowActionFromTerminalStates, curState, lastReward, model, observers, stateGenerator, terminated
Constructor and Description |
---|
SimulatedPOEnvironment(PODomain domain) |
SimulatedPOEnvironment(PODomain domain,
State initialHiddenState) |
SimulatedPOEnvironment(PODomain domain,
StateGenerator hiddenStateGenerator) |
Modifier and Type | Method and Description |
---|---|
State |
currentObservation()
Returns the current observation of the environment as a
State . |
EnvironmentOutcome |
executeAction(Action a)
Executes the specified action in this environment
|
State |
getCurrentHiddenState()
Returns the current hidden state of this
Environment . |
void |
resetEnvironment()
Resets this environment to some initial state, if the functionality exists.
|
void |
setCurObservationTo(State observation)
Overrides the current observation of this environment to the specified value
|
addObservers, clearAllObservers, getStateGenerator, isInTerminalState, lastReward, observers, removeObservers, setAllowActionFromTerminalStates, setCurStateTo, setStateGenerator
protected State curObservation
protected PODomain poDomain
public SimulatedPOEnvironment(PODomain domain)
public SimulatedPOEnvironment(PODomain domain, StateGenerator hiddenStateGenerator)
public void setCurObservationTo(State observation)
observation
- the current observation of this environment to the specified valuepublic State currentObservation()
Environment
State
.currentObservation
in interface Environment
currentObservation
in class SimulatedEnvironment
State
.public State getCurrentHiddenState()
Environment
.State
representing the current hidden state of the environment.public EnvironmentOutcome executeAction(Action a)
Environment
executeAction
in interface Environment
executeAction
in class SimulatedEnvironment
a
- the Action that is to be performed in this environment.public void resetEnvironment()
Environment
resetEnvironment
in interface Environment
resetEnvironment
in class SimulatedEnvironment