|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jgap.Allele
Allele contains gene data that can be different for multiple chromosomes with the same gene.
Constructor Summary | |
protected |
Allele()
for hibernate |
protected |
Allele(Gene aGene)
ctor |
Method Summary | |
abstract Allele |
cloneAllele()
|
int |
compareTo(java.lang.Object o)
|
abstract double |
distance(Allele target)
|
boolean |
equals(java.lang.Object o)
|
protected Gene |
getGene()
|
static java.util.Set |
getGenes(java.util.Collection alleles)
|
java.lang.Long |
getInnovationId()
|
int |
hashCode()
|
abstract void |
setToRandomValue(java.util.Random a_numberGenerator)
Sets the value of this Gene to a random legal value for the implementation. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
protected Allele()
protected Allele(Gene aGene)
aGene
- Method Detail |
public abstract double distance(Allele target)
target
- should be same implementation class and same innovation ID as this gene
Chromosome.distance(Chromosome, SpeciationParms)
public abstract void setToRandomValue(java.util.Random a_numberGenerator)
a_numberGenerator
- The random number generator that should be used to create any random
values. It's important to use this generator to maintain the user's flexibility to configure
the genetic engine to use the random number generator of their choice.public abstract Allele cloneAllele()
protected Gene getGene()
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
Comparable.compareTo(java.lang.Object)
public boolean equals(java.lang.Object o)
Object.equals(java.lang.Object)
public int hashCode()
Object.hashCode()
public java.lang.String toString()
Object.toString()
public static java.util.Set getGenes(java.util.Collection alleles)
alleles
- Collection
contains Allele
objects
Set
contains Gene
objectspublic java.lang.Long getInnovationId()
Gene.getInnovationId()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |