de.kumpe.hadooptimizer.examples.tutorial
Class CountingHalter<I>

java.lang.Object
  extended by de.kumpe.hadooptimizer.examples.tutorial.CountingHalter<I>
All Implemented Interfaces:
Halter<I>, Serializable

public class CountingHalter<I>
extends Object
implements Halter<I>

See Also:
Serialized Form

Constructor Summary
CountingHalter(int nrOfCycles)
           
 
Method Summary
 boolean halt(Collection<EvaluationResult<I>> evaluationResults)
          Decides whether to stop or continue the evolution cycle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CountingHalter

public CountingHalter(int nrOfCycles)
Method Detail

halt

public boolean halt(Collection<EvaluationResult<I>> evaluationResults)
Description copied from interface: Halter
Decides whether to stop or continue the evolution cycle.

Specified by:
halt in interface Halter<I>
Parameters:
evaluationResults - the EvaluationResults of the parents for the next generation
Returns:
true to stop the evolution cycle, false to continue


Copyright © 2011 Christian Kumpe. All Rights Reserved.