|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for a search on a graph. Search starts at a search node set by setSeed(net.sourceforge.jsl.SearchNode)
.
You can either search for a single goal, i.e. the first node found that is a goal, using
search()
or a number of goals using search(int)
.
Method Summary | |
SearchNode |
search()
Searches for the search node that is marked as a goal and returns it. |
Collection |
search(int maxGoals)
Searches for search nodes marked as a goal and returns them. |
void |
setSeed(SearchNode seed)
Sets the seed of the search, i.e. the root node of the search. |
Method Detail |
public void setSeed(SearchNode seed)
seed
- the root node of the searchpublic SearchNode search() throws SearchException
null
if none was found
SearchException
- signals an abnormal termination of the searchpublic Collection search(int maxGoals) throws SearchException
maxGoals
- the maximum number of goals to search for.
SearchException
- signals an abnormal termination of the search
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |