Class EnablementPlanner
java.lang.Object
ai.badmonkey.agentspaces.planner.EnablementPlanner
- All Implemented Interfaces:
Planner
The enablement planner (strategy B1 read as a planner): one step, the enabled action whose effects reach the
goal; stuck otherwise, naming what is missing. The cheapest planner, and the right one when the fleet's cards
already cover the goal in one action.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionname()The planner's name, written on the plan.plan(String goal, PlanningState state, List<PlanAction> actions, List<Constraint> constraints, PlanBudget budget) A plan from the state to the goal.
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
EnablementPlanner
public EnablementPlanner()
-
-
Method Details
-
name
-
plan
public Plan plan(String goal, PlanningState state, List<PlanAction> actions, List<Constraint> constraints, PlanBudget budget) Description copied from interface:PlannerA plan from the state to the goal.- Specified by:
planin interfacePlanner- Parameters:
goal- the term to reach: a type's simple name or a situationstate- what holds for the key nowactions- the actions the fleet offersconstraints- the constraints in force; a plan that would violate one is not returnedbudget- the depth and width- Returns:
- the plan, empty with a reason when none is found
-