org.jgap
Interface IChromosomePool
-
- All Known Implementing Classes:
- ChromosomePool
public interface IChromosomePoolInterface for chromosome pools (e.g., see class ChromosomePool).- Since:
- 2.6
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.StringCVS_REVISIONString containing the CVS revision.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description IChromosomeacquireChromosome()Attempts to acquire an Chromosome instance from the chromosome pool.voidreleaseChromosome(IChromosome a_chromosome)Releases a Chromosome to the pool.
-
-
-
Field Detail
-
CVS_REVISION
static final java.lang.String CVS_REVISION
String containing the CVS revision. Read out via reflection!- See Also:
- Constant Field Values
-
-
Method Detail
-
acquireChromosome
IChromosome acquireChromosome()
Attempts to acquire an Chromosome instance from the chromosome pool.- Returns:
- a Chromosome instance from the pool or null if no Chromosome instances are available in the pool
- Since:
- 2.6 (since 1.0 in ChromosomePool)
-
releaseChromosome
void releaseChromosome(IChromosome a_chromosome)
Releases a Chromosome to the pool. It's not required that the Chromosome originated from the pool--any Chromosome can be released to it. This method should invoke the cleanup() method on each of the Chromosome's genes prior to adding it back to the pool.- Parameters:
a_chromosome- the Chromosome instance to be released into the pool- Since:
- 2.6 (since 1.0 in ChromosomePool)
-
-
DMelt 3.0 © DataMelt by jWork.ORG