Class FailedToPlanPolicy
java.lang.Object
edu.tufts.hrilab.polycraft.recovery.FailedToPlanPolicy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecuteFailedToPlanPolicy
(Symbol actor, Predicate brokenActionSignature, List<Predicate> failureReasons, Predicate goal) Main entry point for executing recovery policy.void
registerWithTrade
(List<String> groups) Register this class with TRADE.void
setGameOver
(boolean goalAchieved) Reset policy between games.
-
Constructor Details
-
FailedToPlanPolicy
public FailedToPlanPolicy()
-
-
Method Details
-
registerWithTrade
Register this class with TRADE. -
executeFailedToPlanPolicy
public Justification executeFailedToPlanPolicy(Symbol actor, Predicate brokenActionSignature, List<Predicate> failureReasons, Predicate goal) throws ai.thinkingrobots.trade.TRADEException Main entry point for executing recovery policy.- Parameters:
actor
-brokenActionSignature
-failureReasons
-goal
-- Returns:
- Throws:
ai.thinkingrobots.trade.TRADEException
-
setGameOver
public void setGameOver(boolean goalAchieved) Reset policy between games.
-