|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.rubecula.darwin.domain.genetics.AlleleFactory
public final class AlleleFactory
Factory Class to create Allele objects. Applications can't change this class (it is final) but they can override the methods which call these methods.
Method Summary | |
---|---|
static Allele |
makeAllele(java.lang.Class<? extends Allele> clazz,
java.lang.Object key,
java.lang.Object value)
TEST |
static Allele |
makeDominanceAllele(java.lang.String identifier,
boolean dominant)
Construct a new Allele_Dominance with the given allele indexes
TEST |
static Allele |
makeSexAllele(boolean male)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Allele makeAllele(java.lang.Class<? extends Allele> clazz, java.lang.Object key, java.lang.Object value)
clazz
- the class of Allele to instantiate, which must have a
constructor of form Allele(Object,Object).key
- the keyvalue
- the value
Object
.public static Allele makeDominanceAllele(java.lang.String identifier, boolean dominant)
Allele_Dominance
with the given allele indexes
TEST
identifier
- the identifier for a pair of dominant/recessive alleles (the
identifiers should match but don't need to be in any
particular case).dominant
- true if the allele is to be dominant, else recessive
Allele_Dominance
.public static Allele makeSexAllele(boolean male)
male
- XXX
Allele_Sex
object.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |