Package com.embabel.plan.utility
Class UtilityPlanner
-
- All Implemented Interfaces:
-
com.embabel.plan.Planner,com.embabel.plan.common.condition.ConditionPlanner
public final class UtilityPlanner extends AbstractConditionPlanner
Planner using utility AI
-
-
Constructor Summary
Constructors Constructor Description UtilityPlanner(WorldStateDeterminer worldStateDeterminer)
-
Method Summary
Modifier and Type Method Description ConditionPlanplanToGoal(Collection<Action> actions, Goal goal)Plan from here to the given goal Return null if no plan found ConditionPlanningSystemprune(ConditionPlanningSystem planningSystem)Return a PlanningSystem that excludes all actions that cannot help achieve one of the goals from the present world state. -
Methods inherited from class com.embabel.plan.common.condition.AbstractConditionPlanner
worldState -
Methods inherited from class com.embabel.plan.Planner
bestValuePlanToAnyGoal, bestValuePlanToAnyGoal, plansToGoals -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
UtilityPlanner
UtilityPlanner(WorldStateDeterminer worldStateDeterminer)
-
-
Method Detail
-
planToGoal
ConditionPlan planToGoal(Collection<Action> actions, Goal goal)
Plan from here to the given goal Return null if no plan found
- Parameters:
actions- The available actionsgoal- The goal to plan to
-
prune
ConditionPlanningSystem prune(ConditionPlanningSystem planningSystem)
Return a PlanningSystem that excludes all actions that cannot help achieve one of the goals from the present world state.
-
-
-
-