|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.kumpe.hadooptimizer.impl.NeedsRandomWrapperBase<Halter<I>>
de.kumpe.hadooptimizer.impl.ReportingHalterWrapper<I>
I - the individuals' typepublic final class ReportingHalterWrapper<I>
The ReportingHalterWrapper passed the EvaluationResults to
each registered ReportingHalterWrapper.Reporter and then delegates the halt-decision the the
specified Halter.
| Nested Class Summary | |
|---|---|
static interface |
ReportingHalterWrapper.Reporter<I>
The ReportingHalterWrapper.Reporter is used by the
ReportingHalterWrapper to report about the passed
evaluation-results every cycle. |
| Field Summary |
|---|
| Fields inherited from class de.kumpe.hadooptimizer.impl.NeedsRandomWrapperBase |
|---|
delegate |
| Constructor Summary | |
|---|---|
ReportingHalterWrapper(Halter<I> delegate)
Creates a new ReportingHalterWrapper with the specified
Halter delegate. |
|
| Method Summary | |
|---|---|
void |
addReporter(ReportingHalterWrapper.Reporter<I> reporter)
Adds a ReportingHalterWrapper.Reporter. |
boolean |
halt(Collection<EvaluationResult<I>> evaluationResults)
Decides whether to stop or continue the evolution cycle. |
void |
removeReporter(ReportingHalterWrapper.Reporter<I> reporter)
Remove a ReportingHalterWrapper.Reporter. |
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 de.kumpe.hadooptimizer.impl.NeedsRandomWrapperBase |
|---|
equals, getDelegate, hashCode, setRandomGenerator |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ReportingHalterWrapper(Halter<I> delegate)
ReportingHalterWrapper with the specified
Halter delegate.
delegate - the Halter to which the halt-decision is delegated| 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 void addReporter(ReportingHalterWrapper.Reporter<I> reporter)
ReportingHalterWrapper.Reporter.
reporter - the ReportingHalterWrapper.Reporter to add; it will not check if the reporter
is already registeredpublic void removeReporter(ReportingHalterWrapper.Reporter<I> reporter)
ReportingHalterWrapper.Reporter.
reporter - the ReportingHalterWrapper.Reporter to remove; it will only remove the first
occurrence of the specified reporterpublic String toString()
toString in class NeedsRandomWrapperBase<Halter<I>>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||