com.rubecula.darwin.domain.genetics
Class Meiosis_Locus

java.lang.Object
  extended by net.sf.tostring0.AToString
      extended by com.rubecula.darwin.domain.genetics.Meiosis_
          extended by com.rubecula.darwin.domain.genetics.Meiosis_Locus
All Implemented Interfaces:
Meiosis, net.sf.tostring0.Identifiable, net.sf.tostring0.IToString

public final class Meiosis_Locus
extends Meiosis_

Lifespan: permanent. Default implementation for the Meiosis interface. Its behavior is to choose alleles purely randomly. Formerly known as Meiosis_Random.

Version:
$Revision: 1.14 $
Author:
Robin Hillyard

Field Summary
 
Fields inherited from class com.rubecula.darwin.domain.genetics.Meiosis_
LOG
 
Fields inherited from interface net.sf.tostring0.IToString
ANGBR_OPEN, ANGBRA_CLSE, BRA_CLSE, BRA_OPEN, BRCE_OPEN, BRCS_CLSE, COLON, LIST_SEPARATOR, MAX_ELEMENTS_DEFAULT, S_MT, S_PERCENT, SEPARATOR, SPACE
 
Constructor Summary
Meiosis_Locus(org.apache.commons.math.random.RandomGenerator random)
          Public primary constructor for an implementer of Meiosis with given random number source.
 
Method Summary
 Genome doMeiosis(Genomic genomic, Genes genes, Chromosome chromosome)
          This method does meiosis for a set of genes.
 
Methods inherited from class com.rubecula.darwin.domain.genetics.Meiosis_
doMeiosis, doMeiosisChromosome, getIdentifier, getRandom
 
Methods inherited from class net.sf.tostring0.AToString
toString, toString, toStringBrief, toStringId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Meiosis_Locus

public Meiosis_Locus(org.apache.commons.math.random.RandomGenerator random)
Public primary constructor for an implementer of Meiosis with given random number source.

Parameters:
random - a source of random numbers.
Method Detail

doMeiosis

public Genome doMeiosis(Genomic genomic,
                        Genes genes,
                        Chromosome chromosome)
This method does meiosis for a set of genes. Any genes not belonging to chromosome are ignored. Otherwise, each gene takes as its allele the allele determined invoking Meiosis.doMeiosis(Gene, int).

Parameters:
genomic -
genes - the genes to process
chromosome - the chromosome of interest (or null, if all are of interest).
Returns:
a haploid genome with loci corresponding to the chromosome (if given)
See Also:
Meiosis.doMeiosis(Genomic, com.rubecula.darwin.domain.helper.Genes, com.rubecula.darwin.domain.helper.Chromosome)


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