org.holtz.zoe
Class Genotype

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

public class Genotype
extends java.lang.Object

The species of a Bug, consisting of a GeneList of Genes.

Author:
Brian Holtz

Field Summary
 Point birthPlace
           
 java.awt.Color color
           
 GeneList genes
           
 int id
           
 java.lang.String name
           
 int numLiving
           
 
Constructor Summary
Genotype(Genotype mom, Genotype dad, java.util.Random random, Point where)
           
Genotype(Genotype mom, java.util.Random random, Point where)
           
Genotype(java.util.Random random)
           
 
Method Summary
 void addMember(Bug bug)
           
static Genotype algae()
           
static Genotype founder(int nth)
           
static int getNextId()
           
static int getNumEverCreated()
           
static int getNumFounders()
           
static Genotype random(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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

id

public int id

birthPlace

public Point birthPlace

name

public java.lang.String name

color

public java.awt.Color color

genes

public GeneList genes

numLiving

public int numLiving
Constructor Detail

Genotype

public Genotype(Genotype mom,
                java.util.Random random,
                Point where)

Genotype

public Genotype(Genotype mom,
                Genotype dad,
                java.util.Random random,
                Point where)

Genotype

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

algae

public static Genotype algae()

getNextId

public static int getNextId()

getNumEverCreated

public static int getNumEverCreated()

getNumFounders

public static int getNumFounders()

founder

public static Genotype founder(int nth)

random

public static Genotype random(java.util.Random random)

addMember

public void addMember(Bug bug)

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)