|
|||||||||
| 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
mesquite.categ.lib.DNACharacterHistory
public class DNACharacterHistory
| 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 | |
|---|---|
DNACharacterHistory(Taxa taxa)
|
|
DNACharacterHistory(Taxa taxa,
int num)
|
|
| Method Summary | |
|---|---|
CharacterHistory |
adjustHistorySize(Tree tree,
CharacterHistory charStates)
This readjust procedure can be called to readjust the size of storage of states of a character for nodes. |
CharacterHistory |
clone(CharacterHistory s)
clone this; if passed s is not null, place the clone there (so as to avoid creating new object) |
long |
fullSet()
Returns full set of allowed states |
long |
getAllStates()
returns the union of all state sets |
java.lang.Class |
getCharacterDataClass()
returns the corresponding CharacterData subclass |
CharacterState |
getCharacterState()
returns blank CharacterState object |
CharacterState |
getCharacterState(CharacterState cs,
int N)
returns CharacterState at node N |
MesquiteColorTable |
getColorTable(MesquiteColorTable colorTable)
|
java.lang.String |
getDataTypeName()
returns the name of the type of data stored |
java.awt.Color |
getDefaultColor(int maxState,
int istate)
Places into ColorDistribution the colors at the node, and returns the number of colors. |
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. |
java.lang.Class |
getStateClass()
Indicates the type of character stored |
CategoricalAdjustable |
makeAdjustable(Taxa taxa)
|
CharacterHistory |
makeHistory(Tree tree)
|
void |
prepareColors(Tree tree,
int drawnRoot)
Must be called before colors for states are used (e.g., before a tree is shaded). |
java.lang.String |
toString()
returns string describing states at nodes. |
java.lang.String |
toString(int node,
java.lang.String lineEnding)
returns string describing character states at node |
| Methods inherited from class mesquite.categ.lib.CategoricalHistory |
|---|
addInternodeEvent, adjustSize, deassignStates, getColorsAtNode, getColorSequenceAtNode, getColorsOfState, getInternodeEvent, getInternodeHistoryVector, getNumberOfEvents, getObservedStates, getStatesAtTips, polymorphToUncertainties, prepareInternodeHistories, setObservedStates |
| 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 |
|---|
getAdjustableClone, getMaxState, hasInapplicable, hasInapplicable, hasMissing, hasMissing, hasMultipleStatesInTaxon, hasMultipleStatesInTaxon, isBinary, isBinary, isBinaryCombinable, isBinaryNoMissing, isConstant, isConstant |
| 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, getDefaultModel, getNumNodes, getNumTaxa, getParentCharacter, getParentData, 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 DNACharacterHistory(Taxa taxa)
public DNACharacterHistory(Taxa taxa,
int num)
| Method Detail |
|---|
public CharacterState getCharacterState()
getCharacterState in interface CharacterStatesHoldergetCharacterState in class CategoricalStatespublic java.lang.Class getStateClass()
getStateClass in interface CharacterStatesHoldergetStateClass in class CategoricalStatespublic java.lang.Class getCharacterDataClass()
getCharacterDataClass in interface CharacterStatesHoldergetCharacterDataClass in class CategoricalStatespublic long fullSet()
fullSet in class CategoricalDistributionpublic java.lang.String getDataTypeName()
getDataTypeName in class CategoricalStates
public CharacterState getCharacterState(CharacterState cs,
int N)
getCharacterState in interface CharacterStatesHoldergetCharacterState in class CategoricalStatespublic long getAllStates()
getAllStates in class CategoricalStatespublic CharacterHistory clone(CharacterHistory s)
clone in interface CharacterHistoryclone in class CategoricalHistory
public java.awt.Color getDefaultColor(int maxState,
int istate)
CategoricalHistory
getDefaultColor in class CategoricalHistory
public void prepareColors(Tree tree,
int drawnRoot)
prepareColors in interface CharacterHistoryprepareColors in class CategoricalHistorypublic MesquiteColorTable getColorTable(MesquiteColorTable colorTable)
getColorTable in interface CharacterHistorygetColorTable in class CategoricalHistory
public int getLegendStates(java.awt.Color[] cs,
java.lang.String[] stateNames,
java.awt.Point[] tableMappings,
MesquiteColorTable stateColors)
CategoricalHistory
getLegendStates in interface CharacterHistorygetLegendStates in class CategoricalHistory
public java.lang.String toString(int node,
java.lang.String lineEnding)
toString in interface CharacterStatesHoldertoString in class CategoricalHistorypublic java.lang.String toString()
toString in class CategoricalStates
public CharacterHistory adjustHistorySize(Tree tree,
CharacterHistory charStates)
adjustHistorySize in interface CharacterDistributionadjustHistorySize in class CategoricalDistributionpublic CharacterHistory makeHistory(Tree tree)
makeHistory in class CategoricalHistorypublic CategoricalAdjustable makeAdjustable(Taxa taxa)
makeAdjustable in class CategoricalDistribution
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||