Package edu.tufts.hrilab.action.recovery
Class ExplorationGoalRecovery
java.lang.Object
edu.tufts.hrilab.action.recovery.GoalRecovery
edu.tufts.hrilab.action.recovery.ExplorationGoalRecovery
-
Field Summary
Fields inherited from class edu.tufts.hrilab.action.recovery.GoalRecovery
log, recoveryStatus -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionselectNextAction(Goal goal, ActionConstraints constraints, StateMachine stateMachine) Select the next action to be executed.selectRecoveryPolicy(GoalContext goalContext) Select a recovery policy from the Database of policies.booleanshouldAttemptRecovery(ActionStatus actionStatus, Justification justification, GoalContext goalContext) Determines if a recovery attempt should be made, and locally sets the recovery mode (e.g., PLAN, RECOVER).Methods inherited from class edu.tufts.hrilab.action.recovery.GoalRecovery
getStatus, updateRecoveryStatus
-
Constructor Details
-
ExplorationGoalRecovery
public ExplorationGoalRecovery()
-
-
Method Details
-
shouldAttemptRecovery
public boolean shouldAttemptRecovery(ActionStatus actionStatus, Justification justification, GoalContext goalContext) Description copied from class:GoalRecoveryDetermines if a recovery attempt should be made, and locally sets the recovery mode (e.g., PLAN, RECOVER).- Specified by:
shouldAttemptRecoveryin classGoalRecovery- Returns:
-
selectNextAction
public ParameterizedAction selectNextAction(Goal goal, ActionConstraints constraints, StateMachine stateMachine) Description copied from class:GoalRecoverySelect the next action to be executed. This is only called in PLAN mode, not for RECOVER mode.- Specified by:
selectNextActionin classGoalRecovery- Returns:
-
selectRecoveryPolicy
Description copied from class:GoalRecoverySelect a recovery policy from the Database of policies. Can return null if there are no valid policies available. Only called when in RECOVER mode.- Specified by:
selectRecoveryPolicyin classGoalRecovery- Returns:
-