Documentation of 'org.jgap.distr.grid.DefaultGenotypeInitializer' Java class
DefaultGenotypeInitializer
org.jgap.distr.grid

Class DefaultGenotypeInitializer

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable, IGenotypeInitializer


    public class DefaultGenotypeInitializer
    extends java.lang.Object
    implements IGenotypeInitializer, java.lang.Comparable
    Default implementation of IGenotypeInitializer.
    Since:
    3.2
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      int compareTo(java.lang.Object a_other) 
      Genotype setupGenotype(JGAPRequest a_req, Population a_initialPop)
      Sets up a Genotype by adding the content of the given Population to it and initializing the missing Chromosomes of the Genotype randomly.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultGenotypeInitializer

        public DefaultGenotypeInitializer()
    • Method Detail

      • setupGenotype

        public Genotype setupGenotype(JGAPRequest a_req,
                                      Population a_initialPop)
                               throws java.lang.Exception
        Sets up a Genotype by adding the content of the given Population to it and initializing the missing Chromosomes of the Genotype randomly.
        Specified by:
        setupGenotype in interface IGenotypeInitializer
        Parameters:
        a_req - a JGAPRequest object containing useful information
        a_initialPop - the Population to consider
        Returns:
        the initialized Genotype
        Throws:
        java.lang.Exception
        Since:
        3.2
      • compareTo

        public int compareTo(java.lang.Object a_other)
        Specified by:
        compareTo in interface java.lang.Comparable
        Parameters:
        a_other - sic
        Returns:
        as always
        Since:
        3.2

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.