org.aisb.bio.things.evolution
Class AsexualOrganism

java.lang.Object
  extended byorg.aisb.bio.things.evolution.AsexualOrganism

public class AsexualOrganism
extends java.lang.Object

This is an "organism" for the purpose of running evolutionary experiments. There's a Sequence representing the "genotype", and a unitless floating point number representing how much time until the organisim reproduces. There's also an integer value representing "fitness". For convenience, there's also a floating point number representing "birthday", so we can fit the organism's entire lifespan into a timeline if we wish. There's also a "parent" of type AsexualOrganism, so we can trace the organism's family tree if we wish. (Under the hood, this is nothing but a data bean.)

Author:
Doug DeJulio

Constructor Summary
AsexualOrganism()
           
 
Method Summary
 float getBirthday()
           
 int getFitness()
           
 Sequence getGenotype()
           
 AsexualOrganism getParent()
           
 float getTimeToReproduce()
           
 void setBirthday(float birthday)
           
 void setFitness(int fitness)
           
 void setGenotype(Sequence genotype)
           
 void setParent(AsexualOrganism parent)
           
 void setTimeToReproduce(float timeToReproduce)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsexualOrganism

public AsexualOrganism()
Method Detail

getBirthday

public float getBirthday()
Returns:
Returns the birthday.

setBirthday

public void setBirthday(float birthday)
Parameters:
birthday - The birthday to set.

getFitness

public int getFitness()
Returns:
Returns the fitness.

setFitness

public void setFitness(int fitness)
Parameters:
fitness - The fitness to set.

getGenotype

public Sequence getGenotype()
Returns:
Returns the genotype.

setGenotype

public void setGenotype(Sequence genotype)
Parameters:
genotype - The genotype to set.

getTimeToReproduce

public float getTimeToReproduce()
Returns:
Returns the timeToReproduce.

setTimeToReproduce

public void setTimeToReproduce(float timeToReproduce)
Parameters:
timeToReproduce - The timeToReproduce to set.

getParent

public AsexualOrganism getParent()
Returns:
Returns the parent.

setParent

public void setParent(AsexualOrganism parent)
Parameters:
parent - The parent to set.