|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectSearcher
BreadthFirstSearcher
public class BreadthFirstSearcher
BreadthFirstSearcher.java - a simple implementation of breadth-first search.
| Constructor Summary | |
|---|---|
BreadthFirstSearcher()
|
|
| Method Summary | |
|---|---|
java.util.Vector |
getPath()
|
boolean |
search(SearchNode rootNode)
search - Search for a goal node starting at the
given "root" SearchNode, and return whether or not a goal node
was found. |
| Methods inherited from class Searcher |
|---|
getGoalNode, getNodeCount |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BreadthFirstSearcher()
| Method Detail |
|---|
public java.util.Vector getPath()
public boolean search(SearchNode rootNode)
Searchersearch - Search for a goal node starting at the
given "root" SearchNode, and return whether or not a goal node
was found.
search in class SearcherrootNode - a SearchNode value - the initial
"root" search node
boolean value - whether or not a goal
node was found
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||