|
||||||||||
| 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 | |
|---|---|
Chromosome |
acquireChromosome()
Attempts to acquire an Chromosome instance from the chromosome pool. |
void |
releaseChromosome(Chromosome 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 Chromosome acquireChromosome()
public void releaseChromosome(Chromosome a_chromosome)
a_chromosome - The Chromosome instance to be released into the pool.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||