Package edu.uky.ai.planning
Class Planner<S extends Search>
java.lang.Object
edu.uky.ai.planning.Planner<S>
- Type Parameters:
S
- the kind of search done by this planner
- Direct Known Subclasses:
PlanGraphPlanner
,PlanSpacePlanner
,StateSpacePlanner
A planner is an algorithm which solves a planning problem by finding a plan.
- Author:
- Stephen G. Ware
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract S
makeSearch
(Problem problem, SearchBudget budget) Given some problem to be solved, and search budget in which to solve it, this method constructs the appropriate kind ofSearch
to solve the problem based on this planner's technique.final Result
Returns a solution to the given problem.final Result
solve
(Problem problem, SearchBudget budget) Returns a solution to the given problem.toString()
-
Field Details
-
name
The name of the planner
-
-
Constructor Details
-
Planner
Constructs a new planner with a given name.- Parameters:
name
- the name of the planner
-
-
Method Details
-
toString
-
solve
Returns a solution to the given problem.- Parameters:
problem
- the problem for which to find a solutionmaxNodes
- the maximum number of nodes the planner may visit during searchmaxTime
- the maximum number of milliseconds the planner may search- Returns:
- a result object describing the result of the search
-
solve
Returns a solution to the given problem.- Parameters:
problem
- the problem for which to find a solutionbudget
- the search budget, which specifies the maximum number of nodes the planner may visit and maximum amount of time the search can take- Returns:
- a result object describing the result of the search
-
makeSearch
Given some problem to be solved, and search budget in which to solve it, this method constructs the appropriate kind ofSearch
to solve the problem based on this planner's technique.- Parameters:
problem
- the problem to be solvedbudget
- the search budget, which specifies the maximum number of nodes the planner may visit and maximum amount of time the search can take- Returns:
- a search object for solving this problem
-