Documentation of 'org.jgap.IChromosomePool' Java class
IChromosomePool
org.jgap

Interface IChromosomePool

  • All Known Implementing Classes:
    ChromosomePool


    public interface IChromosomePool
    Interface for chromosome pools (e.g., see class ChromosomePool).
    Since:
    2.6
    • 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

You see the box below because you did not login.