Class StringPreprocessingCommand
- java.lang.Object
-
- org.jgap.gp.CommandGene
-
- org.aksw.limes.core.ml.algorithm.eagle.genes.StringPreprocessingCommand
-
- All Implemented Interfaces:
Serializable,Cloneable,Comparable,org.jgap.gp.IMutateable,org.jgap.util.ICloneable
public class StringPreprocessingCommand extends org.jgap.gp.CommandGene implements org.jgap.gp.IMutateable, org.jgap.util.ICloneableCommandGene to evolve preprocessing of properties. This is planned to be child of a String property.- Version:
- Jul 21, 2016
- Author:
- Klaus Lyko, Mohamed Sherif (sherif@informatik.uni-leipzig.de)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StringPreprocessingCommand(org.jgap.gp.impl.GPConfiguration a_config, Class<?> a_returnType, String function, int subReturnType, boolean is_mutable)Full Constructor gives controal over return type.StringPreprocessingCommand(org.jgap.gp.impl.GPConfiguration a_config, String function, int subReturnType)Default Constructor.StringPreprocessingCommand(org.jgap.gp.impl.GPConfiguration a_config, String function, int subReturnType, boolean is_mutable)Constructor to also set if this command is mutable.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.jgap.gp.CommandGeneapplyMutation(int a_index, double a_percentage)Objectclone()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, execute_object, execute_void, 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
-
StringPreprocessingCommand
public StringPreprocessingCommand(org.jgap.gp.impl.GPConfiguration a_config, String function, int subReturnType) throws org.jgap.InvalidConfigurationExceptionDefault Constructor. Is not mutable, return type is String.- Parameters:
a_config- GPConfiguration, in most cases a LinkSpecGeneticLearnerConfig.function- The preprocessing function, e.g. "lowercase"subReturnType- A sub return type to distinguish from other commands.- Throws:
org.jgap.InvalidConfigurationException- when an invalid value has been passed to a Configuration object
-
StringPreprocessingCommand
public StringPreprocessingCommand(org.jgap.gp.impl.GPConfiguration a_config, String function, int subReturnType, boolean is_mutable) throws org.jgap.InvalidConfigurationExceptionConstructor to also set if this command is mutable.- Parameters:
a_config- GPConfiguration, in most cases a LinkSpecGeneticLearnerConfig.function- The preprocessing function, e.g. "lowercase"subReturnType- A sub return type to distinguish from other commands.is_mutable-- Throws:
org.jgap.InvalidConfigurationException- when an invalid value has been passed to a Configuration object
-
StringPreprocessingCommand
public StringPreprocessingCommand(org.jgap.gp.impl.GPConfiguration a_config, Class<?> a_returnType, String function, int subReturnType, boolean is_mutable) throws org.jgap.InvalidConfigurationExceptionFull Constructor gives controal over return type.- Parameters:
a_config- GPConfiguration, in most cases a LinkSpecGeneticLearnerConfig.a_returnType- Defines the return type.function- The preprocessing function, e.g. "lowercase"subReturnType- A sub return type to distinguish from other commands.is_mutable- boolean- Throws:
org.jgap.InvalidConfigurationException- when an invalid value has been passed to a Configuration object
-
-
Method Detail
-
clone
public Object clone()
-
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
-
toString
public String toString()
- Specified by:
toStringin classorg.jgap.gp.CommandGene
-
-