public static class ObjectChromosome.Gene
extends java.lang.Object
implements java.lang.Cloneable
ObjectChromosome
's gene. Each Gene
has an Object
value
and an AlleleSet
(that is the alphabet of its own value).Modifier and Type | Field and Description |
---|---|
protected AlleleSet |
alleleSet
The set of possible values for the gene
|
protected java.lang.Object |
value
The value (i.e. allele) assumed by the gene
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
AlleleSet |
getAlleleSet()
Returns the alleleSet of this gene.
|
java.lang.Object |
getValue()
Returns the object value of this gene
|
void |
setAlleleSet(AlleleSet alleleSet)
Sets the alleleSet of this Gene
|
void |
setValue(java.lang.Object value)
Sets the gene value to this gene
|
protected java.lang.Object value
protected AlleleSet alleleSet
public final AlleleSet getAlleleSet()
public final void setAlleleSet(AlleleSet alleleSet)
alleleSet
- the alleleSet to be setted to this genepublic final java.lang.Object getValue()
public final void setValue(java.lang.Object value)
value
- the value to be setted to this genepublic final java.lang.Object clone()
clone
in class java.lang.Object