|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ai.search.Search
The general search function along with set of specific search strategies.
Field Summary | |
int |
limit
A depth limit. |
int |
maxExpanded
The maximum number of nodes to expand. |
java.util.Vector |
nodeTable
A list of expanded nodes. |
Problem |
problem
The search problem. |
Constructor Summary | |
Search(Problem p,
int m)
Construct a search. |
Method Summary | |
Node |
execute(java.lang.String algorithm)
Execute the search with the given algorithm. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public Problem problem
public int maxExpanded
public java.util.Vector nodeTable
public int limit
Constructor Detail |
public Search(Problem p, int m)
p
- is a search problemm
- is the maximum nodes to be expanded.Method Detail |
public Node execute(java.lang.String algorithm)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |