|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object Searcher BreadthFirstSearcher
public class BreadthFirstSearcher
BreadthFirstSearcher.java - a simple implementation of breadth-first search.
Constructor Summary | |
---|---|
BreadthFirstSearcher()
|
Method Summary | |
---|---|
boolean |
search(SearchNode rootNode)
search - given an initial node, perform
breadth-first search. |
Methods inherited from class Searcher |
---|
getGoalNode, getNodeCount, printGoalPath |
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 boolean search(SearchNode rootNode)
search
- given an initial node, perform
breadth-first search.
search
in class Searcher
rootNode
- a SearchNode
value - the initial node
boolean
value - whether or not goal node
was found
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |