Interface Searcher
- public interface Searcher
Searcher.java - a superclass for AI searcher classes.
Created: Thu Nov 1 14:50:48 2001
Method Summary |
SearchNode |
getGoalNode()
getGoalNode - Returns a goal node if the previous
search was successful, and null otherwise. |
int |
getNodeCount()
getNodeCount - Returns the number of nodes
expanded in the previous search. |
boolean |
search(SearchNode node)
search - Search for a goal node starting at the
given SearchNode, and return whether or not a goal node was
found. |
search
public boolean search(SearchNode node)
search
- Search for a goal node starting at the
given SearchNode, and return whether or not a goal node was
found.
- Parameters:
node
- a SearchNode
value - the initial
search node- Returns:
- a
boolean
value - whether or
not a goal node was found
getGoalNode
public SearchNode getGoalNode()
getGoalNode
- Returns a goal node if the previous
search was successful, and null otherwise.
- Returns:
- a
SearchNode
value - the goal node from
previous search or null if no goal node was found
getNodeCount
public int getNodeCount()
getNodeCount
- Returns the number of nodes
expanded in the previous search.
- Returns:
- an
int
value - the number of expansions in
the previous search