|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmesquite.lib.characters.CharacterStates
mesquite.categ.lib.CategoricalStates
mesquite.categ.lib.CategoricalDistribution
mesquite.categ.lib.CategoricalAdjustable
mesquite.categ.lib.CategoricalHistory
public class CategoricalHistory
| Field Summary |
|---|
| Fields inherited from class mesquite.categ.lib.CategoricalAdjustable |
|---|
numNodes, states |
| Fields inherited from class mesquite.categ.lib.CategoricalStates |
|---|
allStates, enforcedMaxState, extraFrequencies, extraFrequencyColors, extraFrequencyNames, frequencies, maxFound, maxState, minFound, minState |
| Fields inherited from class mesquite.lib.characters.CharacterStates |
|---|
characterNumber, data, totalCreated |
| Constructor Summary | |
|---|---|
CategoricalHistory(Taxa taxa)
|
|
CategoricalHistory(Taxa taxa,
int numNodes)
|
|
| Method Summary | |
|---|---|
void |
addInternodeEvent(int node,
CategInternodeEvent event)
|
CharacterHistory |
adjustSize(Tree tree)
Get the information about states occurring in this object for a legend. |
CharacterHistory |
clone(CharacterHistory s)
set the passed history to be a clone of this one (should be renamed to setToClone!); if passed s is not null, place the clone there (so as to avoid creating new object) |
void |
deassignStates()
set all states to missing (unassigned) |
int |
getColorsAtNode(int node,
ColorDistribution colors,
MesquiteColorTable stateColors,
boolean showWeights)
places into the already instantiated ColorDistribution the colors at the node, and returns the number of colors. |
ColorEventVector |
getColorSequenceAtNode(int node,
MesquiteColorTable colorTable)
returns the vector of ColorEvents in order, e.g. |
int |
getColorsOfState(CharacterState state,
ColorDistribution colors,
MesquiteColorTable colorTable)
places into the already instantiated ColorDistribution the colors corresponding to the CharacterState, and returns the number of colors. |
MesquiteColorTable |
getColorTable(MesquiteColorTable colorTable)
|
java.awt.Color |
getDefaultColor(int maxState,
int istate)
Places into ColorDistribution the colors at the node, and returns the number of colors. |
CategInternodeEvent |
getInternodeEvent(int node,
int i)
|
java.util.Vector |
getInternodeHistoryVector(int node)
|
int |
getLegendStates(java.awt.Color[] cs,
java.lang.String[] stateNames,
java.awt.Point[] tableMappings,
MesquiteColorTable stateColors)
Get the information about states occurring in this object for a legend. |
int |
getNumberOfEvents(int node)
|
CharacterDistribution |
getObservedStates()
Returns the states in the terminal taxa (used if History is reconstruction) |
CharacterDistribution |
getStatesAtTips(Tree tree)
Returns a new object indicating the states at the tips (used whether or not History is reconstruction) |
CharacterHistory |
makeHistory(Tree tree)
|
void |
polymorphToUncertainties(int N,
Tree tree)
|
void |
prepareColors(Tree tree,
int drawnRoot)
Must be called before colors for states are used (e.g., before a tree is shaded). |
void |
prepareInternodeHistories()
|
void |
setObservedStates(CharacterDistribution observed)
Sets the states in the terminal taxa (used if History is reconstruction) |
java.lang.String |
toString(int node,
java.lang.String lineEnding)
returns string describing character states at node |
| Methods inherited from class mesquite.categ.lib.CategoricalAdjustable |
|---|
adjustSize, getNumNodes, getNumTaxa, getState, setCharacterState, setState, setStates, setWatchPoint, tradeStatesBetweenTaxa |
| Methods inherited from class mesquite.categ.lib.CategoricalDistribution |
|---|
adjustHistorySize, fullSet, getAdjustableClone, getMaxState, hasInapplicable, hasInapplicable, hasMissing, hasMissing, hasMultipleStatesInTaxon, hasMultipleStatesInTaxon, isBinary, isBinary, isBinaryCombinable, isBinaryNoMissing, isConstant, isConstant, makeAdjustable |
| Methods inherited from class mesquite.lib.characters.CharacterStates |
|---|
checkIllegalNode, getName, getParentCharacter, getParentData, getTaxa, makeCharacterState, setName, setParentCharacter, setParentData, setTaxa, toExternal, toInternal, toStringWithDetails |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface mesquite.lib.characters.AdjustableDistribution |
|---|
adjustSize, setCharacterState, setParentCharacter, setParentData, tradeStatesBetweenTaxa |
| Methods inherited from interface mesquite.lib.characters.CharacterStatesHolder |
|---|
firstIsGreater, getCharacterDataClass, getCharacterState, getCharacterState, getDefaultModel, getNumNodes, getNumTaxa, getParentCharacter, getParentData, getStateClass, getTaxa, isInapplicable, isUnassigned, isUncertain, logStates, statesEqual, toStringWithDetails |
| Methods inherited from interface mesquite.lib.Listable |
|---|
getName |
| Methods inherited from interface mesquite.lib.Renamable |
|---|
setName |
| Constructor Detail |
|---|
public CategoricalHistory(Taxa taxa,
int numNodes)
public CategoricalHistory(Taxa taxa)
| Method Detail |
|---|
public void deassignStates()
deassignStates in interface AdjustableDistributiondeassignStates in class CategoricalAdjustablepublic void prepareInternodeHistories()
public java.util.Vector getInternodeHistoryVector(int node)
public int getNumberOfEvents(int node)
public CategInternodeEvent getInternodeEvent(int node,
int i)
public void addInternodeEvent(int node,
CategInternodeEvent event)
public java.lang.String toString(int node,
java.lang.String lineEnding)
toString in interface CharacterStatesHoldertoString in class CategoricalStatespublic CharacterHistory clone(CharacterHistory s)
clone in interface CharacterHistorypublic CharacterDistribution getStatesAtTips(Tree tree)
getStatesAtTips in interface CharacterHistorypublic CharacterDistribution getObservedStates()
getObservedStates in interface CharacterHistorypublic void setObservedStates(CharacterDistribution observed)
setObservedStates in interface CharacterHistory
public void prepareColors(Tree tree,
int drawnRoot)
prepareColors in interface CharacterHistorypublic MesquiteColorTable getColorTable(MesquiteColorTable colorTable)
getColorTable in interface CharacterHistory
public int getColorsOfState(CharacterState state,
ColorDistribution colors,
MesquiteColorTable colorTable)
getColorsOfState in interface CharacterHistory
public java.awt.Color getDefaultColor(int maxState,
int istate)
public int getColorsAtNode(int node,
ColorDistribution colors,
MesquiteColorTable stateColors,
boolean showWeights)
CharacterHistory
getColorsAtNode in interface CharacterHistory
public ColorEventVector getColorSequenceAtNode(int node,
MesquiteColorTable colorTable)
getColorSequenceAtNode in interface CharacterHistory
public int getLegendStates(java.awt.Color[] cs,
java.lang.String[] stateNames,
java.awt.Point[] tableMappings,
MesquiteColorTable stateColors)
getLegendStates in interface CharacterHistorypublic CharacterHistory adjustSize(Tree tree)
adjustSize in interface CharacterHistorypublic CharacterHistory makeHistory(Tree tree)
public void polymorphToUncertainties(int N,
Tree tree)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||