de.kumpe.hadooptimizer.impl
Class EsHalterWrapper

java.lang.Object
  extended by de.kumpe.hadooptimizer.impl.NeedsRandomWrapperBase<Halter<double[]>>
      extended by 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

Field Summary
 
Fields inherited from class de.kumpe.hadooptimizer.impl.NeedsRandomWrapperBase
delegate
 
Constructor Summary
EsHalterWrapper(Halter<double[]> delegate)
          Creates a new EsHalterWrapperwrapping the specified Halter<double[]>.
 
Method Summary
 boolean halt(Collection<EvaluationResult<EsIndividual>> 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.
 
Methods inherited from class de.kumpe.hadooptimizer.impl.NeedsRandomWrapperBase
equals, getDelegate, hashCode, setRandomGenerator, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EsHalterWrapper

public EsHalterWrapper(Halter<double[]> delegate)
Creates a new EsHalterWrapperwrapping the specified Halter<double[]>.

Parameters:
delegate - an Halter<double[]> to wrap
Method Detail

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 EvaluationResults 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.