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 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 interface java.lang.AutoCloseable