org.jgap
Class BaseGeneticOperator
- java.lang.Object
-
- org.jgap.BaseGeneticOperator
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable, GeneticOperator
- Direct Known Subclasses:
- AveragingCrossoverOperator, CrossoverOperator, GaussianMutationOperator, GreedyCrossover, InversionOperator, MutationOperator, TwoWayMutationOperator
public abstract class BaseGeneticOperator extends java.lang.Object implements GeneticOperator, java.lang.Comparable
Base class for any implementation of interface GeneticOperator. See MutationOperator or CrossoverOperator for examples.- Since:
- 3.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description BaseGeneticOperator(Configuration a_configuration)The only constructor in this class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanequals(java.lang.Object a_other)Compares this GeneticOperator against the specified object.ConfigurationgetConfiguration()-
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jgap.GeneticOperator
operate
-
-
-
-
Constructor Detail
-
BaseGeneticOperator
public BaseGeneticOperator(Configuration a_configuration) throws InvalidConfigurationException
The only constructor in this class. Sets the immutable configuration.- Parameters:
a_configuration- the configuration to set (must not be null)- Throws:
InvalidConfigurationException- Since:
- 3.0
-
-
Method Detail
-
getConfiguration
public Configuration getConfiguration()
- Returns:
- the configuration set
- Since:
- 3.0
-
equals
public boolean equals(java.lang.Object a_other)
Compares this GeneticOperator against the specified object. The result is true if the argument is an instance of this class and is equal with respect to the data.- Overrides:
equalsin classjava.lang.Object- Parameters:
a_other- the object to compare against- Returns:
- true: if the objects are the same, false otherwise
- Since:
- 2.6
-
-
DMelt 3.0 © DataMelt by jWork.ORG