public class BooleanCommand
extends org.jgap.gp.CommandGene
implements org.jgap.util.ICloneable, org.jgap.gp.IMutateable
| Constructor and Description |
|---|
BooleanCommand(org.jgap.gp.impl.GPConfiguration a_conf,
Class<?> a_returnType,
String command)
Deprecated.
Default Constructor.
|
BooleanCommand(org.jgap.gp.impl.GPConfiguration a_conf,
String command)
Deprecated.
Basic Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
org.jgap.gp.CommandGene |
applyMutation(int a_index,
double a_percentage)
Deprecated.
|
Object |
clone()
Deprecated.
Clones the object.
|
Object |
execute_object(org.jgap.gp.impl.ProgramChromosome a_chrom,
int a_n,
Object[] args)
Deprecated.
Executes BooleanCommand as and Object returning String of resulting expression.
|
void |
execute_void(org.jgap.gp.impl.ProgramChromosome a_chrom,
int a_n,
Object[] args)
Deprecated.
|
Class<?> |
getChildType(org.jgap.gp.IGPProgram a_ind,
int a_chromNum)
Deprecated.
|
String |
toString()
Deprecated.
|
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, isValid, isValid, setAllele, setApplicationData, setArity, setArityMax, setArityMin, setCompareApplicationData, setEnergy, setNoValidation, setReturnType, setToRandomValue, setValueFromPersistentRepresentation, setValueFromString, sizepublic BooleanCommand(org.jgap.gp.impl.GPConfiguration a_conf,
String command)
throws org.jgap.InvalidConfigurationException
a_conf - a_conf A JGAP GPconfiguration instance.command - the actual boolean command (AND, OR, XOR)org.jgap.InvalidConfigurationException - when an invalid value has been passed to a Configuration objectpublic BooleanCommand(org.jgap.gp.impl.GPConfiguration a_conf,
Class<?> a_returnType,
String command)
throws org.jgap.InvalidConfigurationException
a_conf - A JGAP GPconfiguration instance.a_returnType - Define the return type of this node.org.jgap.InvalidConfigurationException - when an invalid value has been passed to a Configuration object
TODO For a future version also allow other boolean measures to be children of this node.public Class<?> getChildType(org.jgap.gp.IGPProgram a_ind, int a_chromNum)
getChildType in class org.jgap.gp.CommandGenepublic String toString()
toString in class org.jgap.gp.CommandGenepublic Object execute_object(org.jgap.gp.impl.ProgramChromosome a_chrom, int a_n, Object[] args)
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 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.InvalidConfigurationExceptionCopyright © 2020. All rights reserved.