Class MetricCommand
- java.lang.Object
-
- org.jgap.gp.CommandGene
-
- org.aksw.limes.core.ml.algorithm.eagle.genes.MetricCommand
-
- All Implemented Interfaces:
Serializable,Cloneable,Comparable,org.jgap.gp.IMutateable,org.jgap.util.ICloneable
public class MetricCommand extends org.jgap.gp.CommandGene implements org.jgap.gp.IMutateable, org.jgap.util.ICloneableGP Command for a Link Specification. Either atomic or a complex similarity measure. Either case, it is basically a chromosome expecting two children: a metric (String) and a threshold (double).- Version:
- Jul 21, 2016
- Author:
- Klaus Lyko, Mohamed Sherif (sherif@informatik.uni-leipzig.de)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MetricCommand(org.jgap.gp.impl.GPConfiguration config)MetricCommand(org.jgap.gp.impl.GPConfiguration config, Class<?> returnType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.jgap.gp.CommandGeneapplyMutation(int a_index, double a_percentage)Objectclone()LinkSpecificationexecute_object(org.jgap.gp.impl.ProgramChromosome a_chrom, int a_n, Object[] args)Class<?>getChildType(org.jgap.gp.IGPProgram a_ind, int a_chromNum)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_void, 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, size
-
-
-
-
Constructor Detail
-
MetricCommand
public MetricCommand(org.jgap.gp.impl.GPConfiguration config) throws org.jgap.InvalidConfigurationException- Throws:
org.jgap.InvalidConfigurationException
-
MetricCommand
public MetricCommand(org.jgap.gp.impl.GPConfiguration config, Class<?> returnType) throws org.jgap.InvalidConfigurationException- Throws:
org.jgap.InvalidConfigurationException
-
-
Method Detail
-
getChildType
public Class<?> getChildType(org.jgap.gp.IGPProgram a_ind, int a_chromNum)
- Overrides:
getChildTypein classorg.jgap.gp.CommandGene
-
toString
public String toString()
- Specified by:
toStringin classorg.jgap.gp.CommandGene
-
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
-
clone
public Object clone()
-
execute_object
public LinkSpecification execute_object(org.jgap.gp.impl.ProgramChromosome a_chrom, int a_n, Object[] args)
- Overrides:
execute_objectin classorg.jgap.gp.CommandGene
-
-