|
JGAP | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IGPProgram
Interface for GP programs.
| Field Summary | |
|---|---|
static java.lang.String |
CVS_REVISION
String containing the CVS revision. |
| Method Summary | |
|---|---|
boolean |
execute_boolean(int a_chromosomeNum,
java.lang.Object[] a_args)
Executes the given chromosome as a boolean function. |
double |
execute_double(int a_chromosomeNum,
java.lang.Object[] a_args)
Executes the given chromosome as a double function. |
float |
execute_float(int a_chromosomeNum,
java.lang.Object[] a_args)
Executes the given chromosome as a float function. |
int |
execute_int(int a_chromosomeNum,
java.lang.Object[] a_args)
Executes the given chromosome as an integer function. |
java.lang.Object |
execute_object(int a_chromosomeNum,
java.lang.Object[] a_args)
Executes the given chromosome as an object function. |
void |
execute_void(int a_chromosomeNum,
java.lang.Object[] a_args)
Executes the given chromosome as an object function. |
java.lang.Object |
getApplicationData()
|
java.lang.Class[][] |
getArgTypes()
|
ProgramChromosome |
getChromosome(int a_index)
|
int |
getCommandOfClass(int a_chromosomeNum,
java.lang.Class a_class)
Searches for a chromosome that has the given class and returns its index. |
double |
getFitnessValue()
|
GPConfiguration |
getGPConfiguration()
|
int[] |
getMaxDepths()
|
int |
getMaxNodes()
|
int[] |
getMinDepths()
|
CommandGene[][] |
getNodeSets()
|
java.lang.String |
getPersistentRepresentation()
|
java.lang.Class[] |
getTypes()
|
void |
setApplicationData(java.lang.Object a_data)
Sets the application data object. |
void |
setArgTypes(java.lang.Class[][] a_argTypes)
|
void |
setChromosome(int a_index,
ProgramChromosome a_chrom)
Sets the given chromosome at the given index. |
void |
setFitnessValue(double a_fitness)
|
void |
setMaxDepths(int[] a_maxDepths)
|
void |
setMaxNodes(int a_maxNodes)
|
void |
setMinDepths(int[] a_minDepths)
|
void |
setNodeSets(CommandGene[][] a_nodeSets)
|
void |
setTypes(java.lang.Class[] a_types)
|
int |
size()
|
java.lang.String |
toStringNorm(int a_startNode)
Builds a string that represents the normalized output of the GP program. |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Methods inherited from interface org.jgap.util.ICloneable |
|---|
clone |
| Field Detail |
|---|
static final java.lang.String CVS_REVISION
| Method Detail |
|---|
int execute_int(int a_chromosomeNum,
java.lang.Object[] a_args)
a_chromosomeNum - the index of the chromosome to executea_args - the arguments to use
float execute_float(int a_chromosomeNum,
java.lang.Object[] a_args)
a_chromosomeNum - the index of the chromosome to executea_args - the arguments to use
double execute_double(int a_chromosomeNum,
java.lang.Object[] a_args)
a_chromosomeNum - the index of the chromosome to executea_args - the arguments to use
boolean execute_boolean(int a_chromosomeNum,
java.lang.Object[] a_args)
a_chromosomeNum - the index of the chromosome to executea_args - the arguments to use
java.lang.Object execute_object(int a_chromosomeNum,
java.lang.Object[] a_args)
a_chromosomeNum - the index of the chromosome to executea_args - the arguments to use
void execute_void(int a_chromosomeNum,
java.lang.Object[] a_args)
a_chromosomeNum - the index of the chromosome to executea_args - the arguments to useint size()
ProgramChromosome getChromosome(int a_index)
a_index - the chromosome to get
double getFitnessValue()
java.lang.String toStringNorm(int a_startNode)
a_startNode - the node to start with
void setChromosome(int a_index,
ProgramChromosome a_chrom)
a_index - the index to the the chromosome ata_chrom - the chromosome to set
int getCommandOfClass(int a_chromosomeNum,
java.lang.Class a_class)
a_chromosomeNum - the index of the chromosome to start the search witha_class - the class to find
void setFitnessValue(double a_fitness)
void setTypes(java.lang.Class[] a_types)
java.lang.Class[] getTypes()
void setArgTypes(java.lang.Class[][] a_argTypes)
java.lang.Class[][] getArgTypes()
void setNodeSets(CommandGene[][] a_nodeSets)
CommandGene[][] getNodeSets()
void setMaxDepths(int[] a_maxDepths)
int[] getMaxDepths()
void setMinDepths(int[] a_minDepths)
int[] getMinDepths()
void setMaxNodes(int a_maxNodes)
int getMaxNodes()
GPConfiguration getGPConfiguration()
void setApplicationData(java.lang.Object a_data)
a_data - the object to setjava.lang.Object getApplicationData()
java.lang.String getPersistentRepresentation()
|
JGAP | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||