|
Orbital library | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object orbital.algorithm.template.LocalOptimizerSearch.OptionIterator
public abstract static class LocalOptimizerSearch.OptionIterator
An iterator over a state space in "choosy" random order.
It will pick a random move, but only accept some transitions.
TransitionPath
,
Serialized FormConstructor Summary | |
---|---|
LocalOptimizerSearch.OptionIterator(GeneralSearchProblem problem,
LocalOptimizerSearch algorithm)
|
Method Summary | |
---|---|
protected abstract boolean |
accept(java.lang.Object state,
java.lang.Object sp)
The predicate asked whether to accept a transition. |
protected LocalOptimizerSearch |
getAlgorithm()
Get the algorithm using this (randomized) iterator. |
protected GeneralSearchProblem |
getProblem()
Get the current problem. |
protected java.lang.Object |
getState()
Get the current state s∈S of this transition path. |
abstract boolean |
hasNext()
Decides whether to stop further transitions. |
java.lang.Object |
next()
|
void |
remove()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LocalOptimizerSearch.OptionIterator(GeneralSearchProblem problem, LocalOptimizerSearch algorithm)
Method Detail |
---|
protected final GeneralSearchProblem getProblem()
protected final LocalOptimizerSearch getAlgorithm()
protected final java.lang.Object getState()
next()
, or the initial state if no transition has
already occurred.
public java.lang.Object next()
next
in interface java.util.Iterator
protected abstract boolean accept(java.lang.Object state, java.lang.Object sp)
public abstract boolean hasNext()
hasNext
in interface java.util.Iterator
public void remove()
remove
in interface java.util.Iterator
|
Orbital library 1.3.0: 11 Apr 2009 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |