evolution
Class DefaultGeneToString

java.lang.Object
  extended by evolution.DefaultGeneToString
All Implemented Interfaces:
GeneToStringModel

public class DefaultGeneToString
extends java.lang.Object
implements GeneToStringModel

DefaultGeneToString is function to create String representaino of the gene


Constructor Summary
DefaultGeneToString()
          Creates a new instance of DefaultGeneToString
 
Method Summary
 java.lang.String toString(java.lang.Object geneType)
          Return String representanation of the gene.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultGeneToString

public DefaultGeneToString()
Creates a new instance of DefaultGeneToString

Method Detail

toString

public java.lang.String toString(java.lang.Object geneType)
Return String representanation of the gene. Gene must by boolean type.
If gene type is true function return 1, otherwise 0

Specified by:
toString in interface GeneToStringModel
Parameters:
geneType - gene type
Returns:
String representanation of the gene