Class AtomicPreprocessingCommand
- java.lang.Object
-
- org.jgap.gp.CommandGene
-
- org.aksw.limes.core.ml.algorithm.eagle.genes.AtomicPreprocessingCommand
-
- All Implemented Interfaces:
Serializable,Cloneable,Comparable,org.jgap.gp.IMutateable,org.jgap.util.ICloneable
public class AtomicPreprocessingCommand extends org.jgap.gp.CommandGene implements org.jgap.gp.IMutateable, org.jgap.util.ICloneableCommandGene to also support evolution of preprocessing.- Author:
- Klaus Lyko TODO untested TODO unused TODO check mutation
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AtomicPreprocessingCommand(String command, org.jgap.gp.impl.GPConfiguration a_conf)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.jgap.gp.CommandGeneapplyMutation()Mutates this CommandGene.org.jgap.gp.CommandGeneapplyMutation(int a_index, double a_percentage)Objectclone()Clones the object.Objectexecute_object(org.jgap.gp.impl.ProgramChromosome a_chrom, int a_n, Object[] args)voidexecute_void(org.jgap.gp.impl.ProgramChromosome a_chrom, int a_n, Object[] args)StringtoString()-
Methods inherited from class org.jgap.gp.CommandGene
check, check, cleanup, compareTo, dynamizeArity, ensureUniqueness, ensureUniqueness, ensureUniqueness2, equals, execute, execute_boolean, execute_double, execute_float, execute_int, execute_long, getAllele, getApplicationData, getArity, getArityMax, getArityMin, getChildType, getCommandType, getEnergy, getGPConfiguration, getInternalValue, getName, getPersistentRepresentation, getPersistentRepresentationExt, getReturnType, getSubChildType, getSubChildTypes, getSubReturnType, hashCode, init, isAffectGlobalState, isCompareApplicationData, isFloatType, isIntegerType, isValid, isValid, setAllele, setApplicationData, setArity, setArityMax, setArityMin, setCompareApplicationData, setEnergy, setNoValidation, setReturnType, setToRandomValue, setValueFromPersistentRepresentation, setValueFromString, size
-
-
-
-
Constructor Detail
-
AtomicPreprocessingCommand
public AtomicPreprocessingCommand(String command, org.jgap.gp.impl.GPConfiguration a_conf) throws org.jgap.InvalidConfigurationException
- Throws:
org.jgap.InvalidConfigurationException
-
-
Method Detail
-
applyMutation
public org.jgap.gp.CommandGene applyMutation(int a_index, double a_percentage) throws org.jgap.InvalidConfigurationException- Specified by:
applyMutationin interfaceorg.jgap.gp.IMutateable- Throws:
org.jgap.InvalidConfigurationException
-
applyMutation
public org.jgap.gp.CommandGene applyMutation() throws org.jgap.InvalidConfigurationExceptionMutates this CommandGene. A preprocessing funtion out of the set of allowed preprocessing functions is picked.- Returns:
- A new instance using this command.
- Throws:
org.jgap.InvalidConfigurationException- when an invalid value has been passed to a Configuration object
-
clone
public Object clone()
Clones the object.
-
toString
public String toString()
- Specified by:
toStringin classorg.jgap.gp.CommandGene
-
execute_object
public Object execute_object(org.jgap.gp.impl.ProgramChromosome a_chrom, int a_n, Object[] args)
- Overrides:
execute_objectin classorg.jgap.gp.CommandGene
-
execute_void
public void execute_void(org.jgap.gp.impl.ProgramChromosome a_chrom, int a_n, Object[] args)- Overrides:
execute_voidin classorg.jgap.gp.CommandGene
-
-