Package com.embabel.plan.goap
Class OptimizingGoapPlanner
-
- All Implemented Interfaces:
-
com.embabel.plan.Planner,com.embabel.plan.goap.GoapPlanner
public abstract class OptimizingGoapPlanner implements GoapPlanner
Abstract class for a Goap planner with common optimization.
-
-
Field Summary
Fields Modifier and Type Field Description private final WorldStateDeterminerworldStateDeterminer
-
Constructor Summary
Constructors Constructor Description OptimizingGoapPlanner(WorldStateDeterminer worldStateDeterminer)
-
Method Summary
Modifier and Type Method Description final WorldStateDeterminergetWorldStateDeterminer()GoapWorldStateworldState()Current world state final GoapPlanplanToGoal(Collection<Action> actions, Goal goal)Plan from here to the given goal GoapPlanningSystemprune(GoapPlanningSystem planningSystem)Return a PlanningSystem that excludes all actions that cannot help achieve one of the goals from the present world state. -
-
Constructor Detail
-
OptimizingGoapPlanner
OptimizingGoapPlanner(WorldStateDeterminer worldStateDeterminer)
-
-
Method Detail
-
getWorldStateDeterminer
final WorldStateDeterminer getWorldStateDeterminer()
-
worldState
GoapWorldState worldState()
Current world state
-
planToGoal
final GoapPlan planToGoal(Collection<Action> actions, Goal goal)
Plan from here to the given goal
-
prune
GoapPlanningSystem prune(GoapPlanningSystem planningSystem)
Return a PlanningSystem that excludes all actions that cannot help achieve one of the goals from the present world state.
-
-
-
-