de.kumpe.hadooptimizer.impl
Class EvaluationLimitHalter<I>

java.lang.Object
  extended by de.kumpe.hadooptimizer.impl.EvaluationLimitHalter<I>
Type Parameters:
I - the individuals' type
All Implemented Interfaces:
Halter<I>, Stoppable, Serializable

public final class EvaluationLimitHalter<I>
extends Object
implements Halter<I>, Stoppable

A Halter halting the evolution process when the evaluation has gone below a given level.

Author:
Christian Kumpe
See Also:
Serialized Form

Constructor Summary
EvaluationLimitHalter(double limit)
          Creates a new EvaluationLimitHalter halting at the given evaluation value.
 
Method Summary
 boolean halt(Collection<EvaluationResult<I>> 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.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EvaluationLimitHalter

public EvaluationLimitHalter(double limit)
Creates a new EvaluationLimitHalter halting at the given evaluation value.

Parameters:
limit - the evaluation value to reach before halting
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

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

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011 Christian Kumpe. All Rights Reserved.