com.rubecula.darwin.core
Interface Genotype

All Superinterfaces:
Auditable, Identifiable
All Known Implementing Classes:
Genotype_Abstract, Genotype_Default, Genotype_TS

public interface Genotype
extends Auditable

Defines the genetic information contained in an Organism belonging to a Darwinian system. A Genotype may contain any number of instances of Gene, though in practice the number is determined by the Genome which defines this Genotype. The structure of Genotype is approximately parallel to that of Genome.

Author:
Robin Hillyard

Method Summary
 boolean add(Gene gene)
          Add gene to this Genotype at its end.
 void add(int locus, Gene gene)
          Add a Gene to this Genotype at a specific index.
 Genotype createGamete(Genome genome)
          Method to create a "gamete", a single (haploid) set of genes, for example an X or Y chromosome in the human genome.
 Phenotype express(Genome genome)
          Method to express this genotype as a phenotype.
 Gene getGene(int locus)
           
 int getOde()
          Method to return the genetic form for this genotype.
 int size()
           
 
Methods inherited from interface com.rubecula.util.Auditable
audit, audit, audit
 
Methods inherited from interface com.rubecula.util.Identifiable
getIdentifier
 

Method Detail

add

boolean add(Gene gene)
Add gene to this Genotype at its end.

Parameters:
gene - an implementer of Gene.
Returns:
true if successful.

add

void add(int locus,
         Gene gene)
Add a Gene to this Genotype at a specific index.

Parameters:
locus - the locus of the gene.
gene - the gene to be added.

createGamete

Genotype createGamete(Genome genome)
Method to create a "gamete", a single (haploid) set of genes, for example an X or Y chromosome in the human genome.

Parameters:
genome - the Genome which this Genotype follows, in particular the meiosis implementer.
See Also:
createGamete(com.rubecula.darwin.core.Genome)

express

Phenotype express(Genome genome)
Method to express this genotype as a phenotype.

Parameters:
genome - the reference genome, from which we derive the required implementer of Expression.
Returns:
a Phenotype which embodies the expression of this genotype.

getGene

Gene getGene(int locus)
Parameters:
locus - an integer from 0...
Returns:
the Gene at the specified locus position.

getOde

int getOde()
Method to return the genetic form for this genotype.

Returns:
the "oidit", i.e. either haploid or diploid.

size

int size()
Returns:
the number of genes (loci) on this genotype.