Package edu.tufts.hrilab.action.rollout
Class RolloutActionInterpreter
java.lang.Object
edu.tufts.hrilab.action.ActionInterpreter
edu.tufts.hrilab.action.rollout.RolloutActionInterpreter
- All Implemented Interfaces:
Callable<ActionStatus>
-
Field Summary
FieldsFields inherited from class edu.tufts.hrilab.action.ActionInterpreter
callStack, currentStep -
Method Summary
Modifier and TypeMethodDescriptionstatic RolloutActionInterpretercreateInterpreterFromContext(Goal goal, Context step, int rolloutLength) Create new ActionInterpreter instance from an action context.static RolloutActionInterpretercreateRolloutInterpreterFromExecutionTree(Goal goal, Context goalRoot, int rolloutLength) protected ContextrunAsyncCycle(Context step) Execute one cycle of the step interpreter.protected ContextExecute one cycle of the step interpreter.Methods inherited from class edu.tufts.hrilab.action.ActionInterpreter
addListener, call, cancel, createExecutionStack, createInterpreterFromContext, createInterpreterFromEventSpec, createInterpreterFromExecutionTree, createInterpreterFromGoal, createInterpreterFromGoal, getActionBenefit, getActionCost, getActionMaxTime, getActionMaxUrg, getActionMinUrg, getActionPriority, getActionStartTime, getCurrentStep, getGoal, getRoot, isValid, resume, setActionPriority, setCurrentStep, suspend, updatePriority
-
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
Description copied from class:ActionInterpreterExecute 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:
runCyclein classActionInterpreter
-
runAsyncCycle
Description copied from class:ActionInterpreterExecute 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:
runAsyncCyclein classActionInterpreter
-