JGAP

org.jgap
Class BaseGeneticOperator

java.lang.Object
  extended by 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.

Since:
3.0
See Also:
Serialized Form

Constructor Summary
BaseGeneticOperator(Configuration a_configuration)
          The only constructor in this class.
 
Method Summary
 boolean equals(java.lang.Object a_other)
          Compares this GeneticOperator against the specified object.
 Configuration getConfiguration()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jgap.GeneticOperator
operate
 
Methods inherited from interface java.lang.Comparable
compareTo
 

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:
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

JGAP