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
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.lang.Comparable |
compareTo |
m_monitor
protected IEvolutionMonitor m_monitor
m_monitorActive
protected boolean m_monitorActive
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
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:
equals in class java.lang.Object
- Parameters:
a_other - the object to compare against
- Returns:
- true: if the objects are the same, false otherwise
- Since:
- 2.6