Class Recovery

java.lang.Object
edu.tufts.hrilab.action.recovery.Recovery

public class Recovery extends Object
  • Field Details

    • log

      protected org.slf4j.Logger log
    • recoveryStatus

      protected RecoveryStatus recoveryStatus
  • Constructor Details

    • Recovery

      public Recovery()
  • Method Details

    • getStatus

      public final RecoveryStatus getStatus()
      Get current recovery status/mode.
      Returns:
    • getOriginalFailureStatus

      public final ActionStatus getOriginalFailureStatus()
      Get the ActionStatus of the failure which originally caused recovery to begin.
      Returns:
      the ActionStatus, null if not currently in recovery
    • getOriginalFailureJustification

      public final Justification getOriginalFailureJustification()
      Get the Justification of the failure which originally caused recovery to begin.
      Returns:
      the Justification, null if not currently in recovery
    • getPostRecoveryExecutionType

      public final PostRecoveryExecutionType getPostRecoveryExecutionType()
      Get the current PostRecoveryExecutionType
    • resetState

      public void resetState()
      Resets recovery state - clears cached details from last failure and chosen recovery policy to allow for new recoveries
    • resetConcreteState

      public void resetConcreteState()
    • shouldAttemptRecovery

      public boolean shouldAttemptRecovery(ActionStatus actionStatus, Justification justification, Context context)
    • selectNextAction

      public ParameterizedAction selectNextAction(Goal goal, ActionConstraints constraints, StateMachine stateMachine)
    • getSelectedRecoveryPolicy

      public ParameterizedAction getSelectedRecoveryPolicy(Context context)
    • updateRecoveryStatus

      public void updateRecoveryStatus(Context context)
    • getContextToRetry

      public ActionContext getContextToRetry()
    • signalStep

      public void signalStep()
      Called when this Recovery's corresponding ActionContext calls setupNextStep from its parser