|
|||||||||
| 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
public class CategoricalAdjustable
A class for an array of categorical character states for one character, at each of the taxa or nodes
| Field Summary | |
|---|---|
protected int |
numNodes
|
long[] |
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 | |
|---|---|
CategoricalAdjustable(Taxa taxa)
|
|
CategoricalAdjustable(Taxa taxa,
int num)
|
|
| Method Summary | |
|---|---|
AdjustableDistribution |
adjustSize(Taxa taxa)
This readjust procedure can be called to readjust the size of storage of states of a character for nodes. |
void |
deassignStates()
set all states to missing (unassigned) |
int |
getNumNodes()
get number of nodes available in this categorical character. |
int |
getNumTaxa()
get number of taxa available in this categorical character. |
long |
getState(int N)
get stateset at node N |
void |
setCharacterState(int N,
CharacterState cs)
sets state at node N to stateset passed |
void |
setState(int N,
long d)
sets state at node N to stateset passed |
void |
setStates(long[] sStates)
Set states array to be one passed |
void |
setWatchPoint(int N)
set watchpoint at node N. |
void |
tradeStatesBetweenTaxa(int it,
int it2)
Trade states of nodes it and it2 |
| 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 |
|---|
setParentCharacter, setParentData |
| Methods inherited from interface mesquite.lib.characters.CharacterStatesHolder |
|---|
firstIsGreater, getCharacterDataClass, getCharacterState, getCharacterState, getDefaultModel, getParentCharacter, getParentData, getStateClass, getTaxa, isInapplicable, isUnassigned, isUncertain, logStates, statesEqual, toString, toStringWithDetails |
| Methods inherited from interface mesquite.lib.Listable |
|---|
getName |
| Methods inherited from interface mesquite.lib.Renamable |
|---|
setName |
| Field Detail |
|---|
public long[] states
protected int numNodes
| Constructor Detail |
|---|
public CategoricalAdjustable(Taxa taxa,
int num)
public CategoricalAdjustable(Taxa taxa)
| Method Detail |
|---|
public int getNumTaxa()
getNumTaxa in interface CharacterStatesHolderpublic int getNumNodes()
getNumNodes in interface CharacterStatesHoldergetNumNodes in class CategoricalDistributionpublic void deassignStates()
deassignStates in interface AdjustableDistributionpublic void setStates(long[] sStates)
public long getState(int N)
getState in class CategoricalStates
public void setState(int N,
long d)
public void setCharacterState(int N,
CharacterState cs)
setCharacterState in interface AdjustableDistributionpublic void setWatchPoint(int N)
public void tradeStatesBetweenTaxa(int it,
int it2)
tradeStatesBetweenTaxa in interface AdjustableDistributionpublic AdjustableDistribution adjustSize(Taxa taxa)
adjustSize in interface AdjustableDistribution
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||