1 10 package org.jgap.gp; 11 12 import java.io.*; 13 import org.jgap.gp.impl.*; 14 import org.jgap.util.*; 15 16 22 public interface IGPProgram 23 extends Serializable, Comparable , ICloneable { 24 34 int execute_int(int a_chromosomeNum, Object [] a_args); 35 36 46 float execute_float(int a_chromosomeNum, Object [] a_args); 47 48 58 double execute_double(int a_chromosomeNum, Object [] a_args); 59 60 70 Object execute_object(int a_chromosomeNum, Object [] a_args); 71 72 81 void execute_void(int a_chromosomeNum, Object [] a_args); 82 83 89 int size(); 90 91 98 ProgramChromosome getChromosome(int a_index); 99 100 106 double getFitnessValue(); 107 108 116 String toStringNorm(int a_startNode); 117 118 127 void setChromosome(int a_index, ProgramChromosome a_chrom); 128 129 139 int getCommandOfClass(int a_chromosomeNum, Class a_class); 140 141 void setFitnessValue(double a_fitness); 142 143 void setTypes(Class [] a_types); 144 145 Class [] getTypes(); 146 147 void setArgTypes(Class [][] a_argTypes); 148 149 Class [][] getArgTypes(); 150 151 void setNodeSets(CommandGene[][] a_nodeSets); 152 153 CommandGene[][] getNodeSets(); 154 155 void setMaxDepths(int[] a_maxDepths); 156 157 int[] getMaxDepths(); 158 159 void setMinDepths(int[] a_minDepths); 160 161 int[] getMinDepths(); 162 163 void setMaxNodes(int a_maxNodes); 164 165 int getMaxNodes(); 166 167 GPConfiguration getGPConfiguration(); 168 169 177 void setApplicationData(Object a_data); 178 179 185 Object getApplicationData(); 186 } 187 | Popular Tags |