com.rubecula.darwin.domain.helper
Interface Pharacter
- All Superinterfaces:
- net.sf.tostring0.Identifiable, SexLinked
- All Known Implementing Classes:
- Pharacter_, Pharacter_Fisherian, Pharacter_Sex
public interface Pharacter
- extends net.sf.tostring0.Identifiable, SexLinked
This interface represents the concept of a Phenotypic Character. The name was
chosen to avoid confusion with Character
. A Pharacter can take the
value of any of a finite set of Variant
s.
Pharacter
is to Locus
as Phenotype
is to
Genome
, or Trait is to Gene, or Phenome
is to Genomic
.
An example of Pharacter
would be "eye color". Brown, hazel, blue,
etc. are specific Variant
s.
A specific trait takes as its value a specific variant from a character.
- Author:
- Robin Hillyard
Field Summary |
static java.lang.String |
SEX
sex |
Methods inherited from interface net.sf.tostring0.Identifiable |
getIdentifier |
SEX
static final java.lang.String SEX
- sex
- See Also:
- Constant Field Values
addVariant
java.lang.String addVariant(Variant variant)
- Method to add a trait to this character.
- Parameters:
variant
- A value which this character can take.
- Returns:
- the key to this variant.
getKey
java.lang.String getKey(Variant variant)
- Parameters:
variant
-
- Returns:
- the key of the trait for this Pharacter, otherwise null
getVariant
Variant getVariant(java.lang.String key)
- Parameters:
key
-
- Returns:
- the trait for this character indicated by key.
getVariantKeys
java.util.Set<java.lang.String> getVariantKeys()
- Returns:
- the set of keys of the variants.
getVariants
java.util.Collection<Variant> getVariants()
- Returns:
- the entire list of traits for this character.
Getter/setter typically used by reflection.
Copyright © 2010 Rubecula Software, LLC. All Rights Reserved.