Package com.embabel.plan.goap
Class OptimizingGoapPlanner
-
- All Implemented Interfaces:
-
com.embabel.plan.Planner,com.embabel.plan.common.condition.ConditionPlanner
public abstract class OptimizingGoapPlanner extends AbstractConditionPlanner
Abstract class for a Goap planner with common optimization.
-
-
Constructor Summary
Constructors Constructor Description OptimizingGoapPlanner(WorldStateDeterminer worldStateDeterminer)
-
Method Summary
Modifier and Type Method Description final 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
-
OptimizingGoapPlanner
OptimizingGoapPlanner(WorldStateDeterminer worldStateDeterminer)
-
-
Method Detail
-
planToGoal
final 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.
-
-
-
-