Package jebl.evolution.characters
Interface Character
-
- All Known Implementing Classes:
ContinuousCharacter,DiscreteCharacter
public interface Character- Author:
- Stephen A. Smith
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddTaxon(Taxon taxon)add a taxon with this characterjava.lang.StringgetDesc()return the description of the characterjava.lang.StringgetName()return the name of the characterjava.util.Set<Taxon>getTaxa()get a Setof all the taxa for this character CharacterTypegetType()return the CharacterType of the characterjava.lang.ObjectgetValue(Taxon taxon)get a value for a taxon containing the charactervoidsetDesc(java.lang.String desc)set the description of the charactervoidsetName(java.lang.String name)set the name of the character
-
-
-
Method Detail
-
setName
void setName(java.lang.String name)
set the name of the character- Parameters:
name- the name of the character
-
getName
java.lang.String getName()
return the name of the character- Returns:
- the name of the character
-
setDesc
void setDesc(java.lang.String desc)
set the description of the character- Parameters:
desc- the description of the character
-
getDesc
java.lang.String getDesc()
return the description of the character- Returns:
- the description of the character
-
getType
CharacterType getType()
return the CharacterType of the character- Returns:
- the CharacterType of the character
-
addTaxon
void addTaxon(Taxon taxon)
add a taxon with this character- Parameters:
taxon- the taxon to add containing the character
-
getValue
java.lang.Object getValue(Taxon taxon)
get a value for a taxon containing the character- Parameters:
taxon- the taxon to get the value for- Returns:
- the Object value of the character for the given taxon
-
getTaxa
java.util.Set<Taxon> getTaxa()
get a Setof all the taxa for this character - Returns:
- a Set
containing all of the taxa for this character
-
-