Class FailedReturnValuePolicy
java.lang.Object
edu.tufts.hrilab.polycraft.recovery.FailedReturnValuePolicy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecuteFailedReturnValuePolicy
(Symbol actor, Predicate brokenActionSignature, List<Predicate> failureReasons, Predicate goal) Explore an action that has failed with FAIL_RETURNVALUE.void
registerWithTrade
(List<String> groups) Register this class with TRADE.typeExploration
(Symbol subject, Predicate genericPredicate, List<Symbol> attempted)
-
Constructor Details
-
FailedReturnValuePolicy
public FailedReturnValuePolicy()
-
-
Method Details
-
registerWithTrade
Register this class with TRADE. -
executeFailedReturnValuePolicy
public Justification executeFailedReturnValuePolicy(Symbol actor, Predicate brokenActionSignature, List<Predicate> failureReasons, Predicate goal) throws ai.thinkingrobots.trade.TRADEException Explore an action that has failed with FAIL_RETURNVALUE. This failure case means that a primitive action has failed, often with no failure semantics.- Parameters:
actor
-brokenActionSignature
-failureReasons
-goal
-- Returns:
- Throws:
ai.thinkingrobots.trade.TRADEException
-
typeExploration
-