org.holtz.zoe
Class Gene
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
id
protected int id
when
protected ExpressionList when
action
protected ExpressionList action
Gene
protected Gene(ExpressionList w,
ExpressionList a)
Gene
public Gene(java.util.Random random)
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)