|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--evSOLve.JEvolution.Chromosome
The Chromosome as part of a Genotype.
Field Summary | |
static int |
BIASED
|
protected int |
crossoverPoints
The default number of crossover sites. |
protected double |
crossoverRate
The default crossover rate. |
protected static JEvolution |
JA
The link to JEvolution parameters. |
static int |
LAPLACE
Initial mode of creation of Chromosome. |
protected int |
length
The default length of the Chromosome. |
protected double |
mutationRate
The default mutation rate. |
protected int |
soupType
Method of generation of start population. |
protected static evSOLve.JEvolution.Utilities |
utils
Useful stuff. |
Constructor Summary | |
Chromosome()
|
Method Summary | |
java.lang.Object |
clone()
The Chromosome's clone, which has to be done properly, i.e., all objects representing the chromosome should be replicated exactly. |
protected abstract void |
doCrossover(Chromosome mate)
Crossover. |
protected abstract void |
doMutation()
Mutation of Chromosome. |
abstract boolean |
equals(java.lang.Object o)
This is very important for usage of the fitness repository. |
int |
getCrossoverPoints()
Access crossover points. |
double |
getCrossoverRate()
Access crossover rate. |
int |
getLength()
Return length of the Chromosome. |
double |
getMutationRate()
Access mutation rate. |
int |
getSoupType()
Access soup type. |
abstract int |
hashCode()
The Chromosome's hash code. |
void |
setCrossoverPoints(int crossoverPoints)
Change crossover points. |
void |
setCrossoverRate(double crossoverRate)
Change crossover rate. |
void |
setLength(int length)
Change Chromosome length. |
void |
setMutationRate(double mutationRate)
Change mutation rate. |
void |
setSoupType(int soupType)
Change soup type. |
abstract java.lang.String |
toString()
Convert Chromosome to String. |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
protected static JEvolution JA
protected int length
protected double mutationRate
protected double crossoverRate
protected int crossoverPoints
public static final int LAPLACE
public static final int BIASED
protected int soupType
protected static evSOLve.JEvolution.Utilities utils
Constructor Detail |
public Chromosome()
Method Detail |
public java.lang.Object clone()
clone
in class java.lang.Object
public abstract boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public abstract int hashCode()
hashCode
in class java.lang.Object
protected abstract void doMutation()
protected abstract void doCrossover(Chromosome mate)
public abstract java.lang.String toString()
toString
in class java.lang.Object
public int getLength()
public void setLength(int length) throws JEvolutionException
length
- The number of bases.JEvolutionException
- The chromosome has no length.public double getMutationRate()
public void setMutationRate(double mutationRate) throws JEvolutionException
mutationRate
- The mutation probability.JEvolutionException
- No probability value.public double getCrossoverRate()
public void setCrossoverRate(double crossoverRate) throws JEvolutionException
crossoverRate
- The crossover probability.JEvolutionException
- No probability value.public int getCrossoverPoints()
public void setCrossoverPoints(int crossoverPoints) throws JEvolutionException
crossoverPoints
- The number of crossover sites.JEvolutionException
- Invalid number.public int getSoupType()
public void setSoupType(int soupType) throws JEvolutionException
soupType
- How to generate initial Genotype.JEvolutionException
- Bad soup.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |