de.kumpe.hadooptimizer.impl
Class EsEvaluatorWrapper

java.lang.Object
  extended by de.kumpe.hadooptimizer.impl.NeedsRandomWrapperBase<Evaluator<double[]>>
      extended by de.kumpe.hadooptimizer.impl.EsEvaluatorWrapper
All Implemented Interfaces:
Evaluator<EsIndividual>, NeedsRandomGenerator, Wrapper<Evaluator<double[]>>, Serializable

public final class EsEvaluatorWrapper
extends NeedsRandomWrapperBase<Evaluator<double[]>>
implements Evaluator<EsIndividual>

Wrapp's a given Evaluator<double[]> to evaluate the double[]-individual nested in an EsIndividual.

Author:
Christian Kumpe
See Also:
Serialized Form

Field Summary
 
Fields inherited from class de.kumpe.hadooptimizer.impl.NeedsRandomWrapperBase
delegate
 
Constructor Summary
EsEvaluatorWrapper(Evaluator<double[]> delegate)
          Creates a new EsEvaluatorWrapper wrapping the specified Evaluator<double[]>.
 
Method Summary
 double evaluate(EsIndividual individual)
          Calculates the evaluation (fitness) of the given individual.
 
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

EsEvaluatorWrapper

public EsEvaluatorWrapper(Evaluator<double[]> delegate)
Creates a new EsEvaluatorWrapper wrapping the specified Evaluator<double[]>.

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

evaluate

public double evaluate(EsIndividual individual)
Description copied from interface: Evaluator
Calculates the evaluation (fitness) of the given individual.

A smaller value means better fitness.

Specified by:
evaluate in interface Evaluator<EsIndividual>
Parameters:
individual - the individual to calculate the evaluation (fitness)
Returns:
the evaluation (fitness) of the given individual


Copyright © 2011 Christian Kumpe. All Rights Reserved.