Package jebl.evolution.characters
Class ContinuousCharacter
- java.lang.Object
-
- jebl.evolution.characters.ContinuousCharacter
-
-
Constructor Summary
Constructors Constructor Description ContinuousCharacter(java.lang.String name, java.lang.String desc)
Constructs a basic ContinuousCharacter object with no taxa added yetContinuousCharacter(java.lang.String name, java.lang.String desc, java.util.Set<Taxon> taxa)
Constructs a basic ContinuousCharacter object with taxa added
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addTaxa(java.util.Set<Taxon> taxa)
set the taxa for this character with a previously constructed Setvoid
addTaxon(Taxon taxon)
add a taxon with this characterjava.lang.String
getDesc()
return the description of the characterjava.lang.String
getName()
return the name of the characterdouble
getSE(Taxon taxon)
java.util.Set<Taxon>
getTaxa()
get a Setof all the taxa for this character CharacterType
getType()
return the CharacterType of the characterjava.lang.Object
getValue(Taxon taxon)
get a value for a taxon containing the charactervoid
setDesc(java.lang.String desc)
set the description of the charactervoid
setName(java.lang.String name)
set the name of the character
-
-
-
Constructor Detail
-
ContinuousCharacter
public ContinuousCharacter(java.lang.String name, java.lang.String desc)
Constructs a basic ContinuousCharacter object with no taxa added yet- Parameters:
name
- the name of the characterdesc
- the description of the character
-
ContinuousCharacter
public ContinuousCharacter(java.lang.String name, java.lang.String desc, java.util.Set<Taxon> taxa)
Constructs a basic ContinuousCharacter object with taxa added- Parameters:
name
- the name of the characterdesc
- the description of the charactertaxa
- the Setcontaining the taxa
-
-
Method Detail
-
setName
public void setName(java.lang.String name)
Description copied from interface:Character
set the name of the character
-
getName
public java.lang.String getName()
Description copied from interface:Character
return the name of the character
-
setDesc
public void setDesc(java.lang.String desc)
Description copied from interface:Character
set the description of the character
-
getDesc
public java.lang.String getDesc()
Description copied from interface:Character
return the description of the character
-
getType
public CharacterType getType()
Description copied from interface:Character
return the CharacterType of the character
-
addTaxa
public void addTaxa(java.util.Set<Taxon> taxa)
set the taxa for this character with a previously constructed Set- Parameters:
taxa
- a Setof the taxa containing this character
-
addTaxon
public void addTaxon(Taxon taxon)
Description copied from interface:Character
add a taxon with this character
-
getValue
public java.lang.Object getValue(Taxon taxon)
Description copied from interface:Character
get a value for a taxon containing the character
-
getSE
public double getSE(Taxon taxon)
- Parameters:
taxon
- the taxon for which to get the standard error- Returns:
- double of the standard error for the taxon
-
-