|
Orbital library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorbital.algorithm.template.GeneralSearch.OptionIterator
orbital.algorithm.template.BestFirstSearch.OptionIterator
public static class BestFirstSearch.OptionIterator
An iterator over a state space in best-first order. Expands nodes with better f-costs, first.
| Constructor Summary | |
|---|---|
BestFirstSearch.OptionIterator(GeneralSearchProblem problem,
Function evaluation)
|
|
| Method Summary | |
|---|---|
protected boolean |
add(java.util.Iterator newNodes)
merge old and new lists. |
protected boolean |
isEmpty()
Returns true if this iterator's collection of nodes currently does not contain any elements. |
protected java.lang.Object |
select()
Select the node with min f(n). |
| 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 BestFirstSearch.OptionIterator(GeneralSearchProblem problem,
Function evaluation)
evaluation - the evaluation function to use for sorting the options monotonically.
Usually EvaluativeAlgorithm.getEvaluation().| Method Detail |
|---|
protected boolean isEmpty()
GeneralSearch.OptionIteratortrue if this iterator's collection of nodes currently does not contain any elements.
isEmpty in class GeneralSearch.OptionIteratortrue if this collection contains no elements.protected java.lang.Object select()
select in class GeneralSearch.OptionIteratorprotected boolean add(java.util.Iterator newNodes)
add in class GeneralSearch.OptionIteratornewNodes - the new nodes we apparently became aware of. (Might be modified by this method).
Setops.merge(List, List, Comparator)
|
Orbital library 1.2.0: 23 Apr 2008 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||