de.kumpe.hadooptimizer.impl
Class EsHalterWrapper
java.lang.Object
de.kumpe.hadooptimizer.impl.NeedsRandomWrapperBase<Halter<double[]>>
de.kumpe.hadooptimizer.impl.EsHalterWrapper
- All Implemented Interfaces:
- Halter<EsIndividual>, NeedsRandomGenerator, Stoppable, Wrapper<Halter<double[]>>, Serializable
public final class EsHalterWrapper
- extends NeedsRandomWrapperBase<Halter<double[]>>
- implements Halter<EsIndividual>, Stoppable
A Wrapper that transforms an Halter<double[]>
into an
Halter<EsIndividual>
.
- Author:
- Christian Kumpe
- See Also:
- Serialized Form
EsHalterWrapper
public EsHalterWrapper(Halter<double[]> delegate)
- Creates a new
EsHalterWrapper
wrapping the specified
Halter<double[]>
.
- Parameters:
delegate
- an Halter<double[]>
to wrap
halt
public boolean halt(Collection<EvaluationResult<EsIndividual>> evaluationResults)
- Description copied from interface:
Halter
- Decides whether to stop or continue the evolution cycle.
- Specified by:
halt
in interface Halter<EsIndividual>
- Parameters:
evaluationResults
- the EvaluationResult
s of the parents for the next
generation
- Returns:
true
to stop the evolution cycle, false
to continue
stop
public void stop()
- Description copied from interface:
Stoppable
- Is called once to tell the
Halter
the stop the evoltion cycle at
the end of the current iteration.
- Specified by:
stop
in interface Stoppable
Copyright © 2011 Christian Kumpe. All Rights Reserved.