JGAP

org.jgap
Class BreederBase

java.lang.Object
  extended by org.jgap.BreederBase
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Comparable, IBreeder, ICloneable
Direct Known Subclasses:
GABreeder

public abstract class BreederBase
extends java.lang.Object
implements IBreeder

Abstract base class for breeders.

Since:
3.2
See Also:
Serialized Form

Constructor Summary
BreederBase()
           
 
Method Summary
protected  void applyGeneticOperators(Configuration a_config, Population a_pop)
          Applies all GeneticOperators registered with the Configuration.
protected  Population applyNaturalSelectors(Configuration a_config, Population a_pop, boolean a_processBeforeGeneticOperators)
          Applies all NaturalSelectors registered with the Configuration.
abstract  java.lang.Object clone()
           
 int compareTo(java.lang.Object a_other)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jgap.IBreeder
evolve
 

Constructor Detail

BreederBase

public BreederBase()
Method Detail

applyNaturalSelectors

protected Population applyNaturalSelectors(Configuration a_config,
                                           Population a_pop,
                                           boolean a_processBeforeGeneticOperators)
Applies all NaturalSelectors registered with the Configuration.

Parameters:
a_config - the configuration to use
a_pop - the population to use as input
a_processBeforeGeneticOperators - true apply NaturalSelectors applicable before GeneticOperators, false: apply the ones applicable after GeneticOperators
Returns:
selected part of input population
Since:
3.2

applyGeneticOperators

protected void applyGeneticOperators(Configuration a_config,
                                     Population a_pop)
Applies all GeneticOperators registered with the Configuration.

Parameters:
a_config - the configuration to use
a_pop - the population to use as input
Since:
3.2

clone

public abstract java.lang.Object clone()
Specified by:
clone in interface ICloneable
Overrides:
clone in class java.lang.Object
Returns:
deep clone of this instance
Since:
3.2

compareTo

public int compareTo(java.lang.Object a_other)
Specified by:
compareTo in interface java.lang.Comparable
Parameters:
a_other - object to compare to
Returns:
as always
Since:
3.2

JGAP