|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.rubecula.darwin.domain.environment.Expresser_
public abstract class Expresser_
Base (abstract) implementation of Expresser
.
There is no specific support for Epistasis since the expression of each of
the various loci is essentially independent. For further information, see
Chromosome_
.
Field Summary | |
---|---|
protected Pharacter |
_character
|
protected static org.apache.commons.logging.Log |
LOG
The logger for this class. |
Constructor Summary | |
---|---|
protected |
Expresser_(Pharacter character)
protected constructor |
Method Summary | |
---|---|
protected Trait |
createTrait(double value)
TEST |
protected static Trait |
createTrait(Pharacter character,
double value)
TEST |
protected static Trait |
createTrait(Pharacter character,
java.lang.String variant)
|
protected Trait |
createTrait(java.lang.String key)
|
boolean |
equals(java.lang.Object obj)
|
java.util.Collection<Expression> |
express(Colony colony,
Gene... genes)
Default implementation of express simply ignores population and returns a collection of one Trait derived from invoking
Expresser.express(Gene...) . |
Pharacter |
getCharacter()
|
java.lang.String |
getComplement(Locus locus,
java.lang.String allele)
This implementation of getComplement first checks to make sure that the locus is binary (i.e. |
int |
hashCode()
|
boolean |
isComplementary(Locus locus,
java.lang.String allele1,
java.lang.String allele2)
XXX Be careful -- this needs to be overridden for any meaningful result. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.rubecula.darwin.domain.helper.Expresser |
---|
express |
Field Detail |
---|
protected static final org.apache.commons.logging.Log LOG
protected final Pharacter _character
Constructor Detail |
---|
protected Expresser_(Pharacter character)
character
- the phenotypic character of any resulting traits.Method Detail |
---|
protected static Trait createTrait(Pharacter character, double value)
character
- the phenotypic character.value
- the value of the variable trait (in this case there are no
variants for this character.
protected static Trait createTrait(Pharacter character, java.lang.String variant)
character
- the phenotypic character.variant
- the key of the desired variant, in the context of the
character.
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Object.equals(java.lang.Object)
public java.util.Collection<Expression> express(Colony colony, Gene... genes)
Trait
derived from invoking
Expresser.express(Gene...)
.
express
in interface Expresser
colony
- (which may be null)genes
- one gene or a set of polygenic genes.
Trait
or an
ExPhen
Expresser.express(Colony,
com.rubecula.darwin.domain.helper.Gene[])
public Pharacter getCharacter()
getCharacter
in interface Expresser
Expresser.getCharacter()
public java.lang.String getComplement(Locus locus, java.lang.String allele)
getComplement
in interface Expresser
Expresser.getComplement(com.rubecula.darwin.domain.helper.Locus,
java.lang.String)
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
public boolean isComplementary(Locus locus, java.lang.String allele1, java.lang.String allele2)
isComplementary
in interface Expresser
Expresser.isComplementary(com.rubecula.darwin.domain.helper.Locus,
java.lang.String, java.lang.String)
protected Trait createTrait(double value)
value
- the key of the desired variant, in the context of the
character.
protected Trait createTrait(java.lang.String key)
key
- the key of the desired variant, in the context of the
character.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |