com.rubecula.darwin.domain.helper
Interface Ploidy

All Known Subinterfaces:
Gene, Genome, Genomic, Genotype
All Known Implementing Classes:
Gene_, Gene_Diploid, Gene_Haploid, Genome_, Genome_Linear, Genomic_, Genomic_Asexual, Genomic_Diploid, Genomic_Haploid, Genomic_Sexual, Genotype_

public interface Ploidy

This interface defines the concept of "ploidy", that is to say whether a genetic object is diploid or haploid, i.e. does it have two sets of genes, or only one? Note: this was formerly called "Oid".

Author:
Robin Hillyard

Field Summary
static int DIPLOID
          2 (two genes at a locus).
static int HAPLOID
          1 (one gene at a locus).
 
Method Summary
 int getPloidy()
          Method to return the genetic form for a genome, that is to say the number of independent copies of each gene there are.
 

Field Detail

DIPLOID

static final int DIPLOID
2 (two genes at a locus).

See Also:
Constant Field Values

HAPLOID

static final int HAPLOID
1 (one gene at a locus).

See Also:
Constant Field Values
Method Detail

getPloidy

int getPloidy()
Method to return the genetic form for a genome, that is to say the number of independent copies of each gene there are.

Returns:
the "ploidy" which will normally be either HAPLOID, i.e. simple or DIPLOID, i.e. double.


Copyright © 2010 Rubecula Software, LLC. All Rights Reserved.