1 10 package examples.gp.anttrail; 11 12 import org.jgap.*; 13 import org.jgap.gp.*; 14 import org.jgap.gp.impl.*; 15 16 22 public abstract class AntCommand 23 extends CommandGene { 24 25 private static final String CVS_REVISION = "$Revision: 1.2 $"; 26 27 public AntCommand(final GPConfiguration a_conf) 28 throws InvalidConfigurationException { 29 super(a_conf, 0, CommandGene.VoidClass); 30 } 31 32 public AntCommand(final GPConfiguration a_conf, int a_arity, Class a_type) 33 throws InvalidConfigurationException { 34 super(a_conf, a_arity, a_type); 35 } 36 37 public AntMap getMap(ProgramChromosome a_chrom) { 38 return (AntMap)a_chrom.getIndividual().getApplicationData(); 39 } 40 } 41 | Popular Tags |