org.encog.ml.genetic.genes
Class CharGene

java.lang.Object
  extended by org.encog.ml.genetic.genes.BasicGene
      extended by org.encog.ml.genetic.genes.CharGene
All Implemented Interfaces:
Serializable, Comparable<Gene>, Gene

public class CharGene
extends BasicGene

A gene that holds a single character.

See Also:
Serialized Form

Constructor Summary
CharGene()
           
 
Method Summary
 void copy(Gene gene)
          Copy another gene to this gene.
 char getValue()
           
 void setValue(char theValue)
          Set the value of this gene.
 String toString()
          
 
Methods inherited from class org.encog.ml.genetic.genes.BasicGene
compareTo, getId, getInnovationId, isEnabled, setEnabled, setId, setInnovationId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CharGene

public CharGene()
Method Detail

copy

public final void copy(Gene gene)
Copy another gene to this gene.

Parameters:
gene - The source gene.

getValue

public final char getValue()
Returns:
The value of this gene.

setValue

public final void setValue(char theValue)
Set the value of this gene.

Parameters:
theValue - The new value of this gene.

toString

public final String toString()

Overrides:
toString in class Object


Copyright © 2012. All Rights Reserved.