Package edu.uky.ai.planning.ps
Class PlanSpaceSearch
java.lang.Object
edu.uky.ai.planning.Search
edu.uky.ai.planning.ps.PlanSpaceSearch
A subclass of
Search
which represents
plan-space search (i.e. search through a tree of
plan space nodes
).- Author:
- Stephen G. Ware
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPlanSpaceSearch
(Problem problem, SearchBudget budget) Constructs a new plan space search object. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the total number of nodes that have been generated in this search since it was created.int
Returns the total number of nodes that have been visited in this search space since it was created.
-
Field Details
-
root
The root of the search space
-
-
Constructor Details
-
PlanSpaceSearch
Constructs a new plan space search object.- Parameters:
problem
- the problem to be solvedbudget
- the search budget
-
-
Method Details
-
countVisited
public int countVisited()Description copied from class:Search
Returns the total number of nodes that have been visited in this search space since it was created.- Specified by:
countVisited
in classSearch
- Returns:
- the number of visited nodes
-
countGenerated
public int countGenerated()Description copied from class:Search
Returns the total number of nodes that have been generated in this search since it was created.- Specified by:
countGenerated
in classSearch
- Returns:
- the number of expanded ndoes
-