FitnessEvaluation.externalInterpreters.ParityProblem
Class EvenFiveParityFitnessBSF

java.lang.Object
  extended by FitnessEvaluation.InterpretedFitnessEvaluation
      extended by FitnessEvaluation.InterpretedFitnessEvaluationBSF
          extended by FitnessEvaluation.externalInterpreters.ParityProblem.EvenFiveParityFitnessBSF
All Implemented Interfaces:
FitnessFunction, ParameterI

public class EvenFiveParityFitnessBSF
extends InterpretedFitnessEvaluationBSF

Evaluates the fitness for the EvenFiveParityExperiment.java. Uses the help class EvenFiveParity.java Interprets the code using BSF

Author:
jonatan

Field Summary
 
Fields inherited from class FitnessEvaluation.InterpretedFitnessEvaluationBSF
mngr
 
Constructor Summary
EvenFiveParityFitnessBSF()
          Creates a new instance of EvenFiveParityFitness
 
Method Summary
 java.lang.String createCode(Phenotype p)
          Create a header and a tail for the input string.
 void setProperties(java.util.Properties p)
          Set properties
 
Methods inherited from class FitnessEvaluation.InterpretedFitnessEvaluationBSF
runFile
 
Methods inherited from class FitnessEvaluation.InterpretedFitnessEvaluation
canCache, getFitness
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EvenFiveParityFitnessBSF

public EvenFiveParityFitnessBSF()
Creates a new instance of EvenFiveParityFitness

Method Detail

setProperties

public void setProperties(java.util.Properties p)
Set properties

Parameters:
p - properties

createCode

public java.lang.String createCode(Phenotype p)
Create a header and a tail for the input string. Uses the groovy language Creates a class that extends the EvenFiveParBSF class. Inserts the input from the phenotype. Adds a tail.

Specified by:
createCode in class InterpretedFitnessEvaluationBSF
Parameters:
p - the input to be evaluated
Returns:
fitness of the input