org.holtz.zoe
Class Gene

java.lang.Object
  extended by org.holtz.zoe.Gene

public class Gene
extends java.lang.Object

The unit of heredity of a Zoe Bug, consisting of Zoel actions and the Zoel conditions under which to fire them.

Author:
Brian Holtz

Field Summary
protected  ExpressionList action
           
protected  int id
           
protected  ExpressionList when
           
 
Constructor Summary
protected Gene(ExpressionList w, ExpressionList a)
           
  Gene(java.util.Random random)
           
 
Method Summary
 boolean isFertile()
           
static Gene parse(ZoelTokenizer zoelTokenizer)
           
static Gene split()
           
 java.lang.String toString(java.lang.String statementSeparator)
           
 java.lang.String toString(java.lang.String statementSeparator, Operation currStmt, java.lang.String cursor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected int id

when

protected ExpressionList when

action

protected ExpressionList action
Constructor Detail

Gene

protected Gene(ExpressionList w,
               ExpressionList a)

Gene

public Gene(java.util.Random random)
Method Detail

isFertile

public boolean isFertile()

parse

public static Gene parse(ZoelTokenizer zoelTokenizer)
                  throws java.lang.Exception
Throws:
java.lang.Exception

split

public static Gene split()

toString

public java.lang.String toString(java.lang.String statementSeparator)

toString

public java.lang.String toString(java.lang.String statementSeparator,
                                 Operation currStmt,
                                 java.lang.String cursor)