|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.tostring0.AToString com.rubecula.darwin.domain.environment.Trait_
public abstract class Trait_
Base implementation of Trait
.
TODO we should declare the type of value as Object and have the subtypes set
values as appropriate (String, Number, etc.).
Field Summary |
---|
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 | |
---|---|
protected |
Trait_(Pharacter character,
java.lang.String variant)
|
Method Summary | |
---|---|
boolean |
censusMe(Census census,
java.lang.Object context)
Method to census this object. |
boolean |
equals(java.lang.Object obj)
|
java.util.Collection<? extends Censusible> |
getCensusibleChildren()
Method to return a list of censusible children of this object. |
Pharacter |
getCharacter()
|
java.lang.String |
getCharacterKey()
TODO consider eliminating this method. |
java.lang.String |
getIdentifier()
|
Phenotype |
getPhenotype()
TODO consider renaming this method as getParent(). |
java.lang.Object |
getValue()
TODO consider eliminating this method. |
Variant |
getVariant()
TODO consider eliminating this method. |
java.lang.String |
getVariantKey()
|
int |
hashCode()
|
void |
setPhenotype(Phenotype phenotype)
|
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 com.rubecula.darwin.domain.helper.Trait |
---|
getKey |
Methods inherited from interface net.sf.tostring0.IToString |
---|
toString, toStringBrief, toStringId |
Constructor Detail |
---|
protected Trait_(Pharacter character, java.lang.String variant)
character
- the Pharacter
of which this Trait
is an
instance.variant
- the key of the specific variant for this Trait
Method Detail |
---|
public boolean censusMe(Census census, java.lang.Object context)
Censusible
censusMe
in interface Censusible
census
- the census object which will present the results of taking
this censuscontext
- an arbitrary object which can be used by the census object to
provide appropriate context for this object.
Censusible.getCensusibleChildren()
.Censusible.censusMe(com.rubecula.darwin.domain.helper.Census,
java.lang.Object)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Object.equals(java.lang.Object)
public java.util.Collection<? extends Censusible> getCensusibleChildren()
Censusible
getCensusibleChildren
in interface Censusible
ArrayList
of censusible objects.Censusible.getCensusibleChildren()
public Pharacter getCharacter()
getCharacter
in interface Trait
Trait.getCharacter()
public java.lang.String getCharacterKey()
Trait
getCharacterKey
in interface Trait
public java.lang.String getIdentifier()
getIdentifier
in interface net.sf.tostring0.Identifiable
getCharacterKey()
':' getVariantKey()
Identifiable.getIdentifier()
public Phenotype getPhenotype()
Trait
getPhenotype
in interface Trait
Trait.getPhenotype()
public java.lang.Object getValue()
Trait
getValue
in interface Trait
Trait.getValue()
public Variant getVariant()
Trait
getVariant
in interface Trait
public java.lang.String getVariantKey()
getVariantKey
in interface Trait
_variant
field.Trait.getVariantKey()
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
public void setPhenotype(Phenotype phenotype)
setPhenotype
in interface Trait
Trait.setPhenotype(com.rubecula.darwin.domain.helper.Phenotype)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |