Package ai.djl.modality.rl.env
Interface RlEnv.Step
-
- All Superinterfaces:
java.lang.AutoCloseable
- Enclosing interface:
- RlEnv
public static interface RlEnv.Step extends java.lang.AutoCloseable
A record of taking a step in the environment.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
NDList
getAction()
Returns the action taken.ActionSpace
getPostActionSpace()
Returns the available actions after the step.NDList
getPostObservation()
Returns the observation detailing the state after the action.NDList
getPreObservation()
Returns the observation detailing the state before the action.NDArray
getReward()
Returns the reward given for the action.boolean
isDone()
Returns whether the environment is finished or can accept further actions.
-
-
-
Method Detail
-
getPreObservation
NDList getPreObservation()
Returns the observation detailing the state before the action.- Returns:
- the observation detailing the state before the action
-
getAction
NDList getAction()
Returns the action taken.- Returns:
- the action taken
-
getPostObservation
NDList getPostObservation()
Returns the observation detailing the state after the action.- Returns:
- the observation detailing the state after the action
-
getPostActionSpace
ActionSpace getPostActionSpace()
Returns the available actions after the step.- Returns:
- the available actions after the step
-
getReward
NDArray getReward()
Returns the reward given for the action.- Returns:
- the reward given for the action
-
isDone
boolean isDone()
Returns whether the environment is finished or can accept further actions.- Returns:
- true if the environment is finished and can no longer accept further actions.
-
close
void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
-
-