public class EnvironmentOutcome
extends java.lang.Object
Environment.
The class consists of the previous environment observation (as a State) in which the action was taken;
the action taken (as a GroundedAction); the next environment observation (also a State
following the action; the reward received from the environment; and whether the new state of the environment is a
terminal state.| Modifier and Type | Field and Description |
|---|---|
GroundedAction |
a
The action taken in the environment
|
State |
o
The previous environment observation (as a
State when the action was taken. |
State |
op
The next environment observation (as a
State) following the action's execution. |
double |
r
The reward received
|
boolean |
terminated
Whether the next state to which the environment transitioned is a terminal state (true if so, false otherwise)
|
| Constructor and Description |
|---|
EnvironmentOutcome(State o,
GroundedAction a,
State op,
double r,
boolean terminated)
Initializes.
|
public GroundedAction a
public double r
public boolean terminated
public EnvironmentOutcome(State o, GroundedAction a, State op, double r, boolean terminated)
o - The previous state of the environment when the action was taken.a - The action taken in the environmentop - The next state to which the environment transitionedr - The reward receivedterminated - Whether the next state to which the environment transitioned is a terminal state (true if so, false otherwise)