de.kumpe.hadooptimizer.examples.tutorial
Class CountingHalter<I>
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CountingHalter
public CountingHalter(int nrOfCycles)
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 EvaluationResult
s of the parents for the next
generation
- Returns:
true
to stop the evolution cycle, false
to continue
Copyright © 2011 Christian Kumpe. All Rights Reserved.