com.rubecula.darwin.core
Interface Sexual

All Known Implementing Classes:
Organism_Sexual

public interface Sexual

Defines the one method which must be supported by sex-based organisms, viz. Organism_Sexual instances: ie. isFemale().

Author:
Robin

Method Summary
 Organism birth(String identifier, Genotype genotype, boolean female)
          Method to construct a new organism in the given population, with the given identifier, the given genotype and the given sex (female).
 boolean isFemale()
          Method to get the sex of this organism.
 

Method Detail

isFemale

boolean isFemale()
Method to get the sex of this organism. I will not use the word gender as it is inappropriate!

Returns:
true if this organism is female.

birth

Organism birth(String identifier,
               Genotype genotype,
               boolean female)
Method to construct a new organism in the given population, with the given identifier, the given genotype and the given sex (female). As a side-effect, the result is added to the parents' population.

Parameters:
identifier -
genotype -
female -
Returns:
a newly "born" Organism