|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.kumpe.hadooptimizer.impl.ComputingTimeLimitHalter<I>
I - the individuals' typepublic final class ComputingTimeLimitHalter<I>
A Halter which halts after a given amount computation time.
| Constructor Summary | |
|---|---|
ComputingTimeLimitHalter(long limit)
Creates a new ComputingTimeLimitHalter halting after the
specified number of nanoseconds. |
|
| Method Summary | |
|---|---|
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 ComputingTimeLimitHalter(long limit)
ComputingTimeLimitHalter halting after the
specified number of nanoseconds.
limit - the allowed computation time in nanoseconds| 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 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 | |||||||||