org.holtz.zoe
Class Genotype
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
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)
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)