|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjebl.evolution.characters.DiscreteCharacter
public class DiscreteCharacter
| Constructor Summary | |
|---|---|
DiscreteCharacter(java.lang.String name,
java.lang.String desc,
int numOfStates)
Constructs a basic DiscreteCharacter object with no taxa added yet |
|
DiscreteCharacter(java.lang.String name,
java.lang.String desc,
int numOfStates,
java.util.Set<Taxon> taxa)
Constructs a basic DiscreteCharacter object with taxa |
|
| Method Summary | |
|---|---|
void |
addTaxon(Taxon taxon)
add a taxon with this character |
java.lang.String |
getDesc()
return the description of the character |
java.lang.String |
getName()
return the name of the character |
double |
getNumOfStates()
|
java.util.Map<java.lang.Integer,java.lang.String> |
getStateDesc()
|
java.lang.String |
getStateDesc(int state)
|
java.util.Set<Taxon> |
getTaxa()
get a Set |
CharacterType |
getType()
return the CharacterType of the character |
java.lang.Object |
getValue(Taxon taxon)
get a value for a taxon containing the character |
boolean |
isOrdered()
|
void |
setDesc(java.lang.String desc)
set the description of the character |
void |
setIsOrdered(boolean isOrdered)
|
void |
setName(java.lang.String name)
set the name of the character |
void |
setNumOfStates(int numOfStates)
|
void |
setStateDesc(java.util.Map<java.lang.Integer,java.lang.String> stateDesc)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DiscreteCharacter(java.lang.String name,
java.lang.String desc,
int numOfStates)
name - the name of the characterdesc - the description of the characternumOfStates - the number of possible states for the character
public DiscreteCharacter(java.lang.String name,
java.lang.String desc,
int numOfStates,
java.util.Set<Taxon> taxa)
name - the name of the characterdesc - the description of the characternumOfStates - the number of possible states for the charactertaxa - the Set| Method Detail |
|---|
public void setName(java.lang.String name)
Character
setName in interface Charactername - the name of the characterpublic java.lang.String getName()
Character
getName in interface Characterpublic void setDesc(java.lang.String desc)
Character
setDesc in interface Characterdesc - the description of the characterpublic java.lang.String getDesc()
Character
getDesc in interface Characterpublic CharacterType getType()
Character
getType in interface Characterpublic void addTaxon(Taxon taxon)
Character
addTaxon in interface Charactertaxon - the taxon to add containing the characterpublic java.lang.Object getValue(Taxon taxon)
Character
getValue in interface Charactertaxon - the taxon to get the value for
public boolean isOrdered()
public void setIsOrdered(boolean isOrdered)
isOrdered - set whether character is ordered or notpublic double getNumOfStates()
public void setNumOfStates(int numOfStates)
numOfStates - the number of possible states for the characeterpublic java.util.Set<Taxon> getTaxa()
Character
getTaxa in interface Characterpublic void setStateDesc(java.util.Map<java.lang.Integer,java.lang.String> stateDesc)
stateDesc - a Mappublic java.util.Map<java.lang.Integer,java.lang.String> getStateDesc()
public java.lang.String getStateDesc(int state)
state - corresponding to the state
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||