public class NumberMeasure
extends org.jgap.gp.CommandGene
implements org.jgap.gp.IMutateable, org.jgap.util.ICloneable
| Constructor and Description |
|---|
NumberMeasure(org.jgap.gp.impl.GPConfiguration a_conf)
Default Constructor.
|
NumberMeasure(org.jgap.gp.impl.GPConfiguration a_conf,
Class<?> a_returnType,
boolean a_mutateable)
Constructor for atomic similarity measures for numeric properties.
|
NumberMeasure(org.jgap.gp.impl.GPConfiguration a_conf,
Class<?> a_returnType,
int a_subReturnType,
boolean a_mutateable)
Constructor for similarity measures for numeric values bound by a threshold.
|
| Modifier and Type | Method and Description |
|---|---|
org.jgap.gp.CommandGene |
applyMutation(int a_index,
double a_percentage) |
Object |
clone() |
Object |
execute_object(org.jgap.gp.impl.ProgramChromosome a_chrom,
int a_n,
Object[] args)
Executes this CommandGene as object.
|
void |
execute_void(org.jgap.gp.impl.ProgramChromosome a_chrom,
int a_n,
Object[] args) |
Class<?> |
getChildType(org.jgap.gp.IGPProgram a_ind,
int a_chromNum) |
boolean |
isValid(org.jgap.gp.impl.ProgramChromosome a_program) |
boolean |
isValid(org.jgap.gp.impl.ProgramChromosome a_program,
int a_index) |
String |
toString() |
check, check, cleanup, compareTo, dynamizeArity, ensureUniqueness, ensureUniqueness, ensureUniqueness2, equals, execute_boolean, execute_double, execute_float, execute_int, execute_long, execute, getAllele, getApplicationData, getArity, getArityMax, getArityMin, getCommandType, getEnergy, getGPConfiguration, getInternalValue, getName, getPersistentRepresentation, getPersistentRepresentationExt, getReturnType, getSubChildType, getSubChildTypes, getSubReturnType, hashCode, init, isAffectGlobalState, isCompareApplicationData, isFloatType, isIntegerType, setAllele, setApplicationData, setArity, setArityMax, setArityMin, setCompareApplicationData, setEnergy, setNoValidation, setReturnType, setToRandomValue, setValueFromPersistentRepresentation, setValueFromString, sizepublic NumberMeasure(org.jgap.gp.impl.GPConfiguration a_conf,
Class<?> a_returnType,
int a_subReturnType,
boolean a_mutateable)
throws org.jgap.InvalidConfigurationException
a_conf - JGAP GPConfiguration.a_returnType - The return type of this command.a_subReturnType - Specifies the SubReturnType.a_mutateable - true: enables mutation.org.jgap.InvalidConfigurationException - when an invalid value has been passed to a Configuration objectpublic NumberMeasure(org.jgap.gp.impl.GPConfiguration a_conf,
Class<?> a_returnType,
boolean a_mutateable)
throws org.jgap.InvalidConfigurationException
a_conf - JGAP GPConfiguration.a_returnType - The return type of this command.a_mutateable - true: enables mutation.org.jgap.InvalidConfigurationException - when an invalid value has been passed to a Configuration objectpublic NumberMeasure(org.jgap.gp.impl.GPConfiguration a_conf)
throws org.jgap.InvalidConfigurationException
a_conf - JGAP Configuration instance.org.jgap.InvalidConfigurationException - when an invalid value has been passed to a Configuration objectpublic org.jgap.gp.CommandGene applyMutation(int a_index,
double a_percentage)
throws org.jgap.InvalidConfigurationException
applyMutation in interface org.jgap.gp.IMutateableorg.jgap.InvalidConfigurationExceptionpublic String toString()
toString in class org.jgap.gp.CommandGenepublic Class<?> getChildType(org.jgap.gp.IGPProgram a_ind, int a_chromNum)
getChildType in class org.jgap.gp.CommandGenepublic Object execute_object(org.jgap.gp.impl.ProgramChromosome a_chrom, int a_n, Object[] args)
"sim(a.resource, b.resource)|threshold".execute_object in class org.jgap.gp.CommandGenepublic void execute_void(org.jgap.gp.impl.ProgramChromosome a_chrom,
int a_n,
Object[] args)
execute_void in class org.jgap.gp.CommandGenepublic boolean isValid(org.jgap.gp.impl.ProgramChromosome a_program,
int a_index)
isValid in class org.jgap.gp.CommandGenepublic boolean isValid(org.jgap.gp.impl.ProgramChromosome a_program)
isValid in class org.jgap.gp.CommandGeneCopyright © 2018. All rights reserved.