1 10 package org.jgap; 11 12 import java.io.*; 13 import org.jgap.util.*; 14 15 21 public interface IChromosome 22 extends Comparable , ICloneable, Serializable { 23 24 final static String CVS_REVISION = "$Revision: 1.10 $"; 25 26 29 public final static String S_FITNESS_VALUE = "Fitness value"; 30 31 public final static String S_ALLELES = "Alleles"; 32 33 public final static String S_APPLICATION_DATA = "Application data"; 34 35 public final static String S_SIZE = "Size"; 36 37 49 Gene getGene(int a_desiredLocus); 50 51 62 Gene[] getGenes(); 63 64 74 void setGenes(Gene[] a_genes) 75 throws InvalidConfigurationException; 76 77 88 int size(); 89 90 101 void setFitnessValue(double a_newFitnessValue); 102 103 114 void setFitnessValueDirectly(double a_newFitnessValue); 115 116 132 double getFitnessValue(); 133 134 141 double getFitnessValueDirectly(); 142 143 154 void setIsSelectedForNextGeneration(boolean a_isSelected); 155 156 166 boolean isSelectedForNextGeneration(); 167 168 178 void setConstraintChecker(IGeneConstraintChecker a_constraintChecker) 179 throws InvalidConfigurationException; 180 181 194 void setApplicationData(Object a_newData); 195 196 209 Object getApplicationData(); 210 211 220 void cleanup(); 221 222 228 public Configuration getConfiguration(); 229 } 230 | Popular Tags |