mesquite.categ.lib
Class ProteinAdjustable

java.lang.Object
  extended by mesquite.lib.characters.CharacterStates
      extended by mesquite.categ.lib.CategoricalStates
          extended by mesquite.categ.lib.CategoricalDistribution
              extended by mesquite.categ.lib.CategoricalAdjustable
                  extended by mesquite.categ.lib.ProteinAdjustable
All Implemented Interfaces:
AdjustableDistribution, CharacterDistribution, CharacterStatesHolder, Listable, Renamable, WithStringDetails

public class ProteinAdjustable
extends CategoricalAdjustable


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
ProteinAdjustable(Taxa taxa)
           
ProteinAdjustable(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.
 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
 java.lang.String getDataTypeName()
          returns the name of the type of data stored
 java.lang.Class getStateClass()
          Indicates the type of character stored
 CategoricalAdjustable makeAdjustable(Taxa taxa)
           
 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.CategoricalAdjustable
adjustSize, deassignStates, 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.categ.lib.CategoricalStates
copyExtraFrequencies, copyFrequencies, disposeExtraFrequencies, disposeFrequencies, extraFrequenciesExist, firstIsGreater, frequenciesExist, getAllStates, getDefaultModel, getExtraFrequencies, getExtraFrequency, getExtraFrequencyColors, getExtraFrequencyNames, getExtraNumFreqCategories, getFrequencies, getFrequency, getNumFreqCategories, getSetFromFrequencies, isInapplicable, isUnassigned, isUncertain, logStates, setExtraFrequencies, setExtraFrequency, setExtraFrequencyColors, setExtraFrequencyNames, setFrequencies, setFrequency, setNumExtraFreqCategories, setNumFreqCategories, statesEqual
 
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, getDefaultModel, 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

ProteinAdjustable

public ProteinAdjustable(Taxa taxa)

ProteinAdjustable

public ProteinAdjustable(Taxa taxa,
                         int num)
Method Detail

fullSet

public long fullSet()
Returns full set of allowed states

Overrides:
fullSet in class CategoricalDistribution

getCharacterState

public CharacterState getCharacterState()
returns blank CharacterState object

Specified by:
getCharacterState in interface CharacterStatesHolder
Overrides:
getCharacterState in class CategoricalStates

getStateClass

public java.lang.Class getStateClass()
Indicates the type of character stored

Specified by:
getStateClass in interface CharacterStatesHolder
Overrides:
getStateClass in class CategoricalStates

getCharacterDataClass

public java.lang.Class getCharacterDataClass()
returns the corresponding CharacterData subclass

Specified by:
getCharacterDataClass in interface CharacterStatesHolder
Overrides:
getCharacterDataClass in class CategoricalStates

getDataTypeName

public java.lang.String getDataTypeName()
returns the name of the type of data stored

Overrides:
getDataTypeName in class CategoricalStates

getAllStates

public long getAllStates()
returns the union of all state sets

Overrides:
getAllStates in class CategoricalStates

getCharacterState

public CharacterState getCharacterState(CharacterState cs,
                                        int N)
returns CharacterState at node N

Specified by:
getCharacterState in interface CharacterStatesHolder
Overrides:
getCharacterState in class CategoricalStates

toString

public java.lang.String toString(int node,
                                 java.lang.String lineEnding)
returns string describing character states at node

Specified by:
toString in interface CharacterStatesHolder
Overrides:
toString in class CategoricalStates

toString

public java.lang.String toString()
returns string describing states at nodes.

Overrides:
toString in class CategoricalStates

adjustHistorySize

public 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.

Specified by:
adjustHistorySize in interface CharacterDistribution
Overrides:
adjustHistorySize in class CategoricalDistribution

makeAdjustable

public CategoricalAdjustable makeAdjustable(Taxa taxa)
Overrides:
makeAdjustable in class CategoricalDistribution