Package edu.tufts.hrilab.action.recovery
Class NormPlanningGoalRecovery
java.lang.Object
edu.tufts.hrilab.action.recovery.GoalRecovery
edu.tufts.hrilab.action.recovery.NormPlanningGoalRecovery
-
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.boolean
shouldAttemptRecovery
(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
-
NormPlanningGoalRecovery
public NormPlanningGoalRecovery()
-
-
Method Details
-
selectNextAction
public ParameterizedAction selectNextAction(Goal goal, ActionConstraints constraints, StateMachine stateMachine) Description copied from class:GoalRecovery
Select the next action to be executed. This is only called in PLAN mode, not for RECOVER mode.- Specified by:
selectNextAction
in classGoalRecovery
- Returns:
-
shouldAttemptRecovery
public boolean shouldAttemptRecovery(ActionStatus actionStatus, Justification justification, GoalContext goalContext) Description copied from class:GoalRecovery
Determines if a recovery attempt should be made, and locally sets the recovery mode (e.g., PLAN, RECOVER).- Specified by:
shouldAttemptRecovery
in classGoalRecovery
- Returns:
-
selectRecoveryPolicy
Description copied from class:GoalRecovery
Select 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:
selectRecoveryPolicy
in classGoalRecovery
- Returns:
-