Package edu.tufts.hrilab.action.db
Class RecoveryPolicyDatabase
java.lang.Object
edu.tufts.hrilab.action.db.RecoveryPolicyDatabase
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Protected so that only the Database can instantiate. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addRecoveryPolicyToDB
(ActionDBEntry action) Add a recovery policy to the database.final List<ActionDBEntry>
getRecoveryPolicies
(FailureInformation failureInformation) Get all Recovery Policies (i.e., actions) that can be for a particular action failure.protected void
Remove an action's observations from the database.
-
Constructor Details
-
RecoveryPolicyDatabase
protected RecoveryPolicyDatabase()Protected so that only the Database can instantiate.
-
-
Method Details
-
addRecoveryPolicyToDB
Add a recovery policy to the database. This should only be called internally when an ActionDBEntry is added.- Parameters:
action
- the recovery policy
-
removeRecoveryPolicyFromDB
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
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:
-