|
JGAP | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jgap.NaturalSelector
public abstract class NaturalSelector
Abstract base implementation of interface INaturalSelector.
| Nested Class Summary | |
|---|---|
class |
NaturalSelector.AgeFitnessValueComparator
Comparator regarding first the age (older is better), then the fitness value. |
class |
NaturalSelector.FitnessAgeValueComparator
Comparator regarding first the fitness value, then the age (younger is better). |
class |
NaturalSelector.FitnessValueComparator
Comparator regarding only the fitness value. |
| Field Summary | |
|---|---|
protected Configuration |
m_config
|
| Constructor Summary | |
|---|---|
NaturalSelector()
Default constructor |
|
NaturalSelector(Configuration a_config)
|
|
| Method Summary | |
|---|---|
protected abstract void |
add(IChromosome a_chromosomeToAdd)
Add a Chromosome instance to this selector's working pool of Chromosomes. |
Configuration |
getConfiguration()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jgap.INaturalSelector |
|---|
empty, returnsUniqueChromosomes, select |
| Field Detail |
|---|
protected Configuration m_config
| Constructor Detail |
|---|
public NaturalSelector()
public NaturalSelector(Configuration a_config)
a_config - the configuration to use| Method Detail |
|---|
public Configuration getConfiguration()
protected abstract void add(IChromosome a_chromosomeToAdd)
a_chromosomeToAdd - the specimen to add to the pool
|
JGAP | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||