net.sf.amiba.evolve.gene
Class Gene

Object
  extended by Gene
All Implemented Interfaces:
Cloneable

public class Gene
extends Object
implements Cloneable

A gene. It has a sequence of operators and terminals and has a fixed head length

Author:
juber patel

Constructor Summary
Gene(int headLength, Character[] sequence)
           
 
Method Summary
 Gene clone()
          get a deep copy of this gene
 int getHeadLength()
           
 Character[] getSequence()
           
 boolean tailContainsOperator(GeneGrammar<Double> grammar)
          diagnostic.
 String toString()
           
 
Methods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Gene

public Gene(int headLength,
            Character[] sequence)
Method Detail

getHeadLength

public int getHeadLength()

getSequence

public Character[] getSequence()

clone

public Gene clone()
get a deep copy of this gene

Overrides:
clone in class Object

toString

public String toString()
Overrides:
toString in class Object

tailContainsOperator

public boolean tailContainsOperator(GeneGrammar<Double> grammar)
diagnostic.