public class StringPreprocessingCommand
extends org.jgap.gp.CommandGene
implements org.jgap.gp.IMutateable, org.jgap.util.ICloneable
| Modifier and Type | Field and Description |
|---|---|
static List<String> |
functions |
| Constructor and 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.
|
| Modifier and Type | Method and Description |
|---|---|
org.jgap.gp.CommandGene |
applyMutation(int a_index,
double a_percentage) |
Object |
clone() |
String |
toString() |
check, check, cleanup, compareTo, dynamizeArity, ensureUniqueness, ensureUniqueness, ensureUniqueness2, equals, execute_boolean, execute_double, execute_float, execute_int, execute_long, execute_object, execute_void, execute, 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, sizepublic StringPreprocessingCommand(org.jgap.gp.impl.GPConfiguration a_config,
String function,
int subReturnType)
throws org.jgap.InvalidConfigurationException
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.org.jgap.InvalidConfigurationException - when an invalid value has been passed to a Configuration objectpublic StringPreprocessingCommand(org.jgap.gp.impl.GPConfiguration a_config,
String function,
int subReturnType,
boolean is_mutable)
throws org.jgap.InvalidConfigurationException
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 - org.jgap.InvalidConfigurationException - when an invalid value has been passed to a Configuration objectpublic StringPreprocessingCommand(org.jgap.gp.impl.GPConfiguration a_config,
Class<?> a_returnType,
String function,
int subReturnType,
boolean is_mutable)
throws org.jgap.InvalidConfigurationException
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 - booleanorg.jgap.InvalidConfigurationException - when an invalid value has been passed to a Configuration objectpublic Object clone()
public 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.CommandGeneCopyright © 2018. All rights reserved.