|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.kumpe.hadooptimizer.impl.TimeBasedHalter<I>
I - the individuals' typepublic final class TimeBasedHalter<I>
A Halter implementation halting a the specified Date.
| Constructor Summary | |
|---|---|
TimeBasedHalter(Date limit)
Creates a new TimeBasedHalter halting at the given Date. |
|
| 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 TimeBasedHalter(Date limit)
TimeBasedHalter halting at the given Date.
limit - the Date after which the evolution cycle should be
finished| 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 | |||||||||