org.holtz.zoe
Class Genotype2

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

public class Genotype2
extends java.lang.Object

The species of a Bug, including a StatementList encoding a Zoel program.

Author:
Brian Holtz

Field Summary
 java.awt.Color color
           
 int id
           
 java.lang.String name
           
 int numLiving
           
 
Constructor Summary
Genotype2(Genotype2 mom, Genotype2 dad, java.util.Random random)
           
Genotype2(Genotype2 theParent, java.util.Random random)
           
Genotype2(java.util.Random random)
           
 
Method Summary
static int getNextId()
           
static int getNumEverCreated()
           
static Genotype2 getRandomGenotype(java.util.Random random)
           
 java.lang.String toString()
           
 java.lang.String toString(java.lang.String separator)
           
 java.lang.String toString(java.lang.String statementSeparator, Operation currStmt, java.lang.String cursor)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

id

public int id

name

public java.lang.String name

color

public java.awt.Color color

numLiving

public int numLiving
Constructor Detail

Genotype2

public Genotype2(Genotype2 theParent,
                 java.util.Random random)

Genotype2

public Genotype2(Genotype2 mom,
                 Genotype2 dad,
                 java.util.Random random)

Genotype2

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

getNextId

public static int getNextId()

getNumEverCreated

public static int getNumEverCreated()

getRandomGenotype

public static Genotype2 getRandomGenotype(java.util.Random random)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

toString

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

toString

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