|
JGAP | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jgap.impl.ChromosomePool
public class ChromosomePool
Provides a pooling mechanism for Chromosome instances so that discarded Chromosome instances can be recycled, thus saving memory and the overhead of constructing new ones from scratch each time.
| Constructor Summary | |
|---|---|
ChromosomePool()
Constructor. |
|
| Method Summary | |
|---|---|
IChromosome |
acquireChromosome()
Attempts to acquire an Chromosome instance from the chromosome pool. |
void |
releaseChromosome(IChromosome a_chromosome)
Releases a Chromosome to the pool. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ChromosomePool()
| Method Detail |
|---|
public IChromosome acquireChromosome()
acquireChromosome in interface IChromosomePoolpublic void releaseChromosome(IChromosome a_chromosome)
releaseChromosome in interface IChromosomePoola_chromosome - the Chromosome instance to be released into the pool
|
JGAP | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||