|
Orbital library | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object orbital.algorithm.template.GeneralSearch.OptionIterator orbital.algorithm.template.DepthFirstSearch.OptionIterator
public static class DepthFirstSearch.OptionIterator
An iterator over a state space in depth-first order.
Constructor Summary | |
---|---|
DepthFirstSearch.OptionIterator(GeneralSearchProblem problem)
|
Method Summary | |
---|---|
protected boolean |
add(java.util.Iterator newNodes)
Concatenate the new nodes and the old nodes. |
protected boolean |
isEmpty()
Returns true if this iterator's collection of nodes currently does not contain any elements. |
protected java.lang.Object |
select()
Selects an option to visit from nodes. |
Methods inherited from class orbital.algorithm.template.GeneralSearch.OptionIterator |
---|
getProblem, hasNext, next, remove |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DepthFirstSearch.OptionIterator(GeneralSearchProblem problem)
Method Detail |
---|
protected boolean isEmpty()
GeneralSearch.OptionIterator
true
if this iterator's collection of nodes currently does not contain any elements.
isEmpty
in class GeneralSearch.OptionIterator
true
if this collection contains no elements.protected java.lang.Object select()
GeneralSearch.OptionIterator
select
in class GeneralSearch.OptionIterator
protected boolean add(java.util.Iterator newNodes)
GeneralSearch.OptionIterator
add
in class GeneralSearch.OptionIterator
newNodes
- the new nodes we apparently became aware of. (Might be modified by this method).
|
Orbital library 1.3.0: 11 Apr 2009 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |