org.encog.solve.genetic.genes
Class CharGene

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

public class CharGene
extends BasicGene

A gene that holds a single character.


Constructor Summary
CharGene()
           
 
Method Summary
 void copy(Gene gene)
          Copy another gene to this gene.
 char getValue()
           
 void setValue(char value)
          Set the value of this gene.
 String toString()
          
 
Methods inherited from class org.encog.solve.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 void copy(Gene gene)
Copy another gene to this gene.

Parameters:
gene - The source gene.

getValue

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

setValue

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

Parameters:
value - The new value of this gene.

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2011. All Rights Reserved.