|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Organism
Defines methods of an individual organism within a Darwinian System. An Organism exhibits the following properties:
age() has been called on it);
| Method Summary | |
|---|---|
void |
age()
Mutating method to "age" this organism by one generation. |
double |
calculateMortality(double fitness)
|
Genotype |
createGamete()
Method to create a new Gamete for this Organism by the process of Meiosis. |
int |
getAge()
|
Genotype |
getGenotype()
|
Phenotype |
getPhenotype()
|
Population |
getPopulation()
Method to determine to which population this organism currently belongs. |
boolean |
isViable()
|
void |
setPopulation(Population population)
Mutating method to change the current population for this organism, as a result of migration. |
void |
setViable(boolean viable)
|
| Methods inherited from interface com.rubecula.darwin.core.Fit |
|---|
evaluateFitness |
| Methods inherited from interface com.rubecula.util.Auditable |
|---|
audit, audit, audit |
| Methods inherited from interface com.rubecula.util.Identifiable |
|---|
getIdentifier |
| Method Detail |
|---|
void age()
double calculateMortality(double fitness)
fitness -
Genotype createGamete()
int getAge()
Genotype getGenotype()
Phenotype getPhenotype()
Population getPopulation()
boolean isViable()
void setPopulation(Population population)
population - the new population to which this organism
now belongs.void setViable(boolean viable)
viable - if false, then we (temporarily) mark this organism as not being part of a population model.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||