com.rubecula.darwin.domain.genetics
Class Locus_Triversian

java.lang.Object
  extended by net.sf.tostring0.AToString
      extended by com.rubecula.darwin.domain.genetics.Locus_
          extended by com.rubecula.darwin.domain.genetics.Locus_Random
              extended by com.rubecula.darwin.domain.genetics.Locus_Triversian
All Implemented Interfaces:
Locus, Progenitor, SexLinked, net.sf.tostring0.Identifiable, net.sf.tostring0.IToString

public final class Locus_Triversian
extends Locus_Random

Lifespan: permanent. This final concrete implementation of Locus provides a simple scheme for picking an allele based on a Random number source supplied at constructor time. This is a sub-class of Locus_Random.

Named in honor of Robert T. Trivers..

Version:
$Revision: 1.7 $
Author:
Robin Hillyard

Field Summary
 
Fields inherited from class com.rubecula.darwin.domain.genetics.Locus_Random
_random
 
Fields inherited from class com.rubecula.darwin.domain.genetics.Locus_
LOG
 
Fields inherited from interface com.rubecula.darwin.domain.helper.Locus
ID_SEX
 
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
Locus_Triversian(java.lang.String identifier, org.apache.commons.math.random.RandomGenerator random)
          Construct a new instance of Locus_Triversian using a specific given randomizer.
 
Method Summary
 
Methods inherited from class com.rubecula.darwin.domain.genetics.Locus_Random
add, onChange, pickAllele, setAlleles
 
Methods inherited from class com.rubecula.darwin.domain.genetics.Locus_
addAllele, equals, getAllele, getAlleleMap, getAlleles, getAlleleValues, getChromosome, getFrequencies, getIdentifier, getKey, getParent, getPolygenic, hashCode, isLegal, isSexLinked, makeGene, putAllele, setParent, setPolygenic, size
 
Methods inherited from class net.sf.tostring0.AToString
toString, toString, toStringBrief, toStringId
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface net.sf.tostring0.IToString
toString, toStringBrief, toStringId
 

Constructor Detail

Locus_Triversian

public Locus_Triversian(java.lang.String identifier,
                        org.apache.commons.math.random.RandomGenerator random)
Construct a new instance of Locus_Triversian using a specific given randomizer. XXX it seems that it's OK, at least in testing, for random to be null. However, we shouldn't allow that, probably.

Parameters:
identifier - the identifier for this locus.
random - an instance of Randomizer.


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