Catalano.Evolutionary.Genetic.Chromosome
Class ChromosomeBase
- java.lang.Object
-
- Catalano.Evolutionary.Genetic.Chromosome.ChromosomeBase
-
- All Implemented Interfaces:
- IChromosome, java.lang.Cloneable, java.lang.Comparable
- Direct Known Subclasses:
- BinaryChromosome, DoubleChromosome, FloatChromosome, IntegerChromosome, PermutationChromosome
public abstract class ChromosomeBase extends java.lang.Object implements IChromosome, java.lang.Comparable, java.lang.Cloneable
Base class for the chromosomes.
-
-
Constructor Summary
Constructors Constructor and Description ChromosomeBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description abstract IChromosomeClone()intcompareTo(java.lang.Object o)abstract IChromosomeCreateNew()voidEvaluate(IFitness function)abstract voidGenerate()doublegetFitness()abstract java.lang.ObjectgetGene(int index)abstract voidsetGene(int index, java.lang.Object gene)-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface Catalano.Evolutionary.Genetic.Chromosome.IChromosome
getLength
-
-
-
-
Method Detail
-
getFitness
public double getFitness()
- Specified by:
getFitnessin interfaceIChromosome
-
getGene
public abstract java.lang.Object getGene(int index)
- Specified by:
getGenein interfaceIChromosome
-
setGene
public abstract void setGene(int index, java.lang.Object gene)- Specified by:
setGenein interfaceIChromosome
-
Generate
public abstract void Generate()
- Specified by:
Generatein interfaceIChromosome
-
CreateNew
public abstract IChromosome CreateNew()
- Specified by:
CreateNewin interfaceIChromosome
-
Clone
public abstract IChromosome Clone()
- Specified by:
Clonein interfaceIChromosome
-
Evaluate
public void Evaluate(IFitness function)
- Specified by:
Evaluatein interfaceIChromosome
-
compareTo
public int compareTo(java.lang.Object o)
- Specified by:
compareToin interfacejava.lang.Comparable
-
-
DataMelt 3.0 © DataMelt by jWork.ORG