/*GPFunctionTemplate.java *J Scott Cameron *This defines an interface for classes that are to *define a genetic programming problem */ import java.util.*; import GPNode; public abstract interface GPFunctionTemplate { /* returns a Vector that contains GPPairs of binary * functions to be used in the Genetic Programs */ public abstract Vector getBinaryFunctions(); /* returns a Vector that contains GPPairs of unary * functions to be used in the Genetic Programs */ public abstract Vector getUnaryFunctions(); /* returns a Vector that contains GPPairs of variables * to be used in the Genetic Programs */ public abstract Vector getVariables(); /* fitness function evaluates a GPNode and * returns a fitness rating */ public abstract Double fitnessFunction(GPNode gpn); }