Operator
Class FitnessEvaluator

java.lang.Object
  extended by Operator.OperatorModule
      extended by Operator.FitnessEvaluator
All Implemented Interfaces:
Module, Operator, Stochastic

public class FitnessEvaluator
extends OperatorModule

FitnessEvaluator is a module that is used to evaluate an entire populations fitness. It can host many different types of fitness function

Author:
erikhemberg

Field Summary
 
Fields inherited from class Operator.OperatorModule
population, rng
 
Constructor Summary
FitnessEvaluator(RandomNumberGenerator rng, FitnessEvaluationOperation fEO)
          Creates a new instance of FitnessEvaluator
 
Method Summary
 Operation getOperation()
          Get operation that operator performs
 void perform()
          Calls doOperation(List operands) in the FitnessEvaluationOperation.
 void setOperation(Operation op)
          Set operation that operator performs
 
Methods inherited from class Operator.OperatorModule
getRNG, setPopulation, setRNG
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FitnessEvaluator

public FitnessEvaluator(RandomNumberGenerator rng,
                        FitnessEvaluationOperation fEO)
Creates a new instance of FitnessEvaluator

Parameters:
rng - random number generator
fEO - fitness evaluation operation
Method Detail

getOperation

public Operation getOperation()
Description copied from interface: Operator
Get operation that operator performs

Returns:
operation

perform

public void perform()
Calls doOperation(List operands) in the FitnessEvaluationOperation.

Specified by:
perform in interface Module
Specified by:
perform in class OperatorModule

setOperation

public void setOperation(Operation op)
Description copied from interface: Operator
Set operation that operator performs

Parameters:
op - operation