org.jgap
Class BreederBase
java.lang.Object
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
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BreederBase
public BreederBase()
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 usea_pop
- the population to use as inputa_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 usea_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