Class RecoveryPolicyDatabase

java.lang.Object
edu.tufts.hrilab.action.db.RecoveryPolicyDatabase

public class RecoveryPolicyDatabase extends Object
  • Constructor Details

    • RecoveryPolicyDatabase

      protected RecoveryPolicyDatabase()
      Protected so that only the Database can instantiate.
  • Method Details

    • addRecoveryPolicyToDB

      protected void addRecoveryPolicyToDB(ActionDBEntry action)
      Add a recovery policy to the database. This should only be called internally when an ActionDBEntry is added.
      Parameters:
      action - the recovery policy
    • removeRecoveryPolicyFromDB

      protected void removeRecoveryPolicyFromDB(ActionDBEntry entry)
      Remove an action's observations from the database. Should only be used internally.
      Parameters:
      entry - the action for which the observations should be removed
    • getRecoveryPolicies

      public final List<ActionDBEntry> getRecoveryPolicies(FailureInformation failureInformation)
      Get all Recovery Policies (i.e., actions) that can be for a particular action failure. TODO: these probably need to be filtered per ?actor
      Parameters:
      failureInformation -
      Returns: