Package ai.djl.modality.rl.env
Interface RlEnv.Step
- All Superinterfaces:
AutoCloseable
- Enclosing interface:
- RlEnv
A record of taking a step in the environment.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Returns the action taken.Returns the available actions after the step.Returns the observation detailing the state after the action.Returns the observation detailing the state before the action.Returns the reward given for the action.booleanisDone()Returns whether the environment is finished or can accept further actions.
-
Method Details
-
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:
closein interfaceAutoCloseable
-