public abstract static class ParameterizedTree.ParameterizedTreeBase extends java.lang.Object implements Parameterized, Tree
Parameterized.Null, Parameterized.ParameterizedBase, Parameterized.ParameterizedUser, Parameterized.UtilsTree.TreeBaseDAYS, EXPECTED_SUBSTITUTIONS, GENERATIONS, MONTHS, SAMPLE, SHORT_UNIT_NAMES, UNIT_NAMES, UNKNOWN, YEARS| Modifier | Constructor and Description |
|---|---|
|
ParameterizedTreeBase() |
protected |
ParameterizedTreeBase(ParameterizedTree.ParameterizedTreeBase toCopy)
Cloning constructor
|
|
ParameterizedTreeBase(Tree baseTree) |
| Modifier and Type | Method and Description |
|---|---|
void |
createNodeList()
This method is called to ensure that the calls to other methods
in this interface are valid.
|
java.lang.Object |
getAttribute(Node node,
java.lang.String name) |
protected Tree |
getBaseTree() |
Tree |
getCopy()
The cheapy copy that just creates a SimpleTree
|
Node |
getExternalNode(int i)
returns the ith external node in the tree.
|
int |
getExternalNodeCount()
returns a count of the number of external nodes (tips) in this
tree.
|
int |
getIdCount()
Returns the number of identifiers in this group
|
Identifier |
getIdentifier(int i)
Returns the ith identifier.
|
Node |
getInternalNode(int i)
returns the ith internal node in the tree.
|
int |
getInternalNodeCount()
returns a count of the number of internal nodes (and hence clades)
in this tree.
|
int |
getNodeCount() |
OrthogonalHints |
getOrthogonalHints() |
Node |
getRoot()
Returns the root node of this tree.
|
int |
getUnits()
Gets the units that this tree's branch lengths and node
heights are expressed in.
|
void |
setAttribute(Node node,
java.lang.String name,
java.lang.Object value)
Sets an named attribute for a given node.
|
protected void |
setBaseTree(Tree baseTree) |
void |
setIdentifier(int i,
Identifier id)
Sets the ith identifier.
|
void |
setRoot(Node root)
This method constructs a tree from the given root node.
|
java.lang.String |
toString() |
int |
whichIdNumber(java.lang.String s)
returns the index of the identifier with the given name.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDefaultValue, getLowerLimit, getNumParameters, getParameter, getUpperLimit, setParameter, setParameterSEprotected ParameterizedTreeBase(ParameterizedTree.ParameterizedTreeBase toCopy)
public ParameterizedTreeBase()
public ParameterizedTreeBase(Tree baseTree)
protected void setBaseTree(Tree baseTree)
protected Tree getBaseTree()
public final Node getRoot()
public final void setRoot(Node root)
Treepublic final Identifier getIdentifier(int i)
IdGroupgetIdentifier in interface IdGrouppublic final void setIdentifier(int i,
Identifier id)
IdGroupsetIdentifier in interface IdGrouppublic final int getIdCount()
IdGroupgetIdCount in interface IdGrouppublic final int whichIdNumber(java.lang.String s)
IdGroupwhichIdNumber in interface IdGrouppublic final int getExternalNodeCount()
getExternalNodeCount in interface Treepublic final int getInternalNodeCount()
getInternalNodeCount in interface Treepublic final int getNodeCount()
public final Node getExternalNode(int i)
getExternalNode in interface Treepublic final Node getInternalNode(int i)
getInternalNode in interface Treepublic final void createNodeList()
createNodeList in interface Treepublic final int getUnits()
TreegetUnits in interface UnitsProvidergetUnits in interface Treepublic final void setAttribute(Node node, java.lang.String name, java.lang.Object value)
TreesetAttribute in interface Treenode - the node whose attribute is being set.name - the name of the attribute.value - the new value of the attribute.public final java.lang.Object getAttribute(Node node, java.lang.String name)
getAttribute in interface Treenode - the node being interrogated.name - the name of the attribute of interest.public java.lang.String toString()
toString in class java.lang.Objectpublic Tree getCopy()
public OrthogonalHints getOrthogonalHints()