jenes.chromosome
Class ObjectChromosome.Gene

java.lang.Object
  extended by jenes.chromosome.ObjectChromosome.Gene
All Implemented Interfaces:
java.lang.Cloneable
Enclosing class:
ObjectChromosome

public static class ObjectChromosome.Gene
extends java.lang.Object
implements java.lang.Cloneable

An ObjectChromosome's gene. Each Gene has an Object value and an AlleleSet (that is the alphabet of its own value).


Field Summary
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
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

value

protected java.lang.Object value
The value (i.e. allele) assumed by the gene


alleleSet

protected AlleleSet alleleSet
The set of possible values for the gene

Method Detail

getAlleleSet

public final AlleleSet getAlleleSet()
Returns the alleleSet of this gene.

Returns:
the alleleSet of this gene

setAlleleSet

public final void setAlleleSet(AlleleSet alleleSet)
Sets the alleleSet of this Gene

Parameters:
alleleSet - the alleleSet to be setted to this gene

getValue

public final java.lang.Object getValue()
Returns the object value of this gene

Returns:
the pbject value of this gene

setValue

public final void setValue(java.lang.Object value)
Sets the gene value to this gene

Parameters:
value - the value to be setted to this gene

clone

public final java.lang.Object clone()
Overrides:
clone in class java.lang.Object