FitnessEvaluation
Interface FitnessFunction

All Superinterfaces:
ParameterI
All Known Implementing Classes:
BinomialBSF, BinomialJScheme, BooleanInterpreter, EvenFiveParityFitnessBSF, HelloWorldBSF, InterpretedFitnessEvaluation, InterpretedFitnessEvaluationBSF, InterpretedJScheme, LSystemDimension, LSystemInitialiser, MaxProblemInterpreter, Paint, RoyalTree, SantaFeAntTrailBSF, SantaFeAntTrailInterpreter, SudokuFit, SymbolicRegressionBSF, SymbolicRegressionInterpreter, SymbolicRegressionJScheme, WordMatch

public interface FitnessFunction
extends ParameterI

A simple interface to be implemented by any fitness evaluator makes making fitness evaluation classes pluggable. If you want to be one all you have to do is implement the single method defined here.

Author:
Blip

Method Summary
 boolean canCache()
          Return true if it is ok to cache the results of the fitness function
 void getFitness(Individual i)
          Creates a new instance of FitnessEvaluator
 
Methods inherited from interface Parameter.ParameterI
setProperties
 

Method Detail

getFitness

void getFitness(Individual i)
Creates a new instance of FitnessEvaluator

Parameters:
i - Evaluated individual

canCache

boolean canCache()
Return true if it is ok to cache the results of the fitness function