|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.kumpe.hadooptimizer.impl.CountingHalter<I>
I - the individuals' typepublic final class CountingHalter<I>
A Halter which halts after the specified number of cycles.
| Constructor Summary | |
|---|---|
CountingHalter(int nrOfCycles)
Creates a new CountingHalter which halts after the specified
number of cycles. |
|
| Method Summary | |
|---|---|
int |
getCurrentCycle()
|
int |
getNrOfCycles()
|
boolean |
halt(Collection<EvaluationResult<I>> evaluationResults)
Decides whether to stop or continue the evolution cycle. |
void |
stop()
Is called once to tell the Halter the stop the evoltion cycle at
the end of the current iteration. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CountingHalter(int nrOfCycles)
CountingHalter which halts after the specified
number of cycles.
nrOfCycles - the number of cycles after which the CountingHalter
will halt| Method Detail |
|---|
public boolean halt(Collection<EvaluationResult<I>> evaluationResults)
Halter
halt in interface Halter<I>evaluationResults - the EvaluationResults of the parents for the next
generation
true to stop the evolution cycle, false
to continuepublic int getNrOfCycles()
public int getCurrentCycle()
public void stop()
StoppableHalter the stop the evoltion cycle at
the end of the current iteration.
stop in interface Stoppablepublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||