org.jgap.distr.grid
Class DefaultGenotypeInitializer
- java.lang.Object
-
- org.jgap.distr.grid.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
-
-
Constructor Summary
Constructors Constructor and Description DefaultGenotypeInitializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intcompareTo(java.lang.Object a_other)GenotypesetupGenotype(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.
-
-
-
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:
setupGenotypein interfaceIGenotypeInitializer- Parameters:
a_req- a JGAPRequest object containing useful informationa_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:
compareToin interfacejava.lang.Comparable- Parameters:
a_other- sic- Returns:
- as always
- Since:
- 3.2
-
-
DMelt 3.0 © DataMelt by jWork.ORG