Class RolloutActionInterpreter

java.lang.Object
edu.tufts.hrilab.action.ActionInterpreter
edu.tufts.hrilab.action.rollout.RolloutActionInterpreter
All Implemented Interfaces:
Callable<ActionStatus>

public class RolloutActionInterpreter extends ActionInterpreter
  • Field Details

    • rolloutLength

      protected int rolloutLength
    • currStep

      protected int currStep
  • Method Details

    • createInterpreterFromContext

      public static RolloutActionInterpreter createInterpreterFromContext(Goal goal, Context step, int rolloutLength)
      Create new ActionInterpreter instance from an action context.
      Parameters:
      step - context to be executed (e.g. root context)
    • createRolloutInterpreterFromExecutionTree

      public static RolloutActionInterpreter createRolloutInterpreterFromExecutionTree(Goal goal, Context goalRoot, int rolloutLength)
    • runCycle

      protected Context runCycle(Context step)
      Description copied from class: ActionInterpreter
      Execute one cycle of the step interpreter. This is currently equivalent to executing one primitive (i.e., progressing through the script until a primitive is found).
      Overrides:
      runCycle in class ActionInterpreter
    • runAsyncCycle

      protected Context runAsyncCycle(Context step)
      Description copied from class: ActionInterpreter
      Execute one cycle of the step interpreter. This is currently equivalent to executing one primitive (i.e., progressing through the script until a primitive is found).
      Overrides:
      runAsyncCycle in class ActionInterpreter