pal.tree
Interface AttributeNode
- All Superinterfaces:
- Node, java.io.Serializable
- All Known Implementing Classes:
- SimpleNode
- public interface AttributeNode
- extends Node
interface for a node (includes branch) in a binary/non-binary
rooted/unrooted tree. Unlike its superclass this node
can have an arbitrary number of named attributes associated with it.
Field Summary |
static java.lang.String |
CLADE_PROBABILITY
attribute name for the probability of the clade defined by an internal node. |
static java.lang.String |
MEAN_CLADE_HEIGHT
attribute name for the mean height of this clade in a group of trees. |
static java.lang.String |
NODE_HEIGHT_SE
attribute name for the standard error on a node's height. |
static java.lang.String |
SUBTREE_PROBABILITY
attribute name for the probability of the subtree defined by an internal node. |
Method Summary |
java.lang.Object |
getAttribute(java.lang.String name)
|
java.util.Enumeration |
getAttributeNames()
|
void |
setAttribute(java.lang.String name,
java.lang.Object value)
Sets a named attribute to the given value. |
Methods inherited from interface pal.tree.Node |
addChild, getBranchLength, getBranchLengthSE, getChild, getChildCount, getIdentifier, getNodeHeight, getNumber, getParent, getSequence, insertChild, isLeaf, isRoot, removeChild, setBranchLength, setBranchLengthSE, setChild, setIdentifier, setNodeHeight, setNumber, setParent, setSequence |
NODE_HEIGHT_SE
public static final java.lang.String NODE_HEIGHT_SE
- attribute name for the standard error on a node's height.
CLADE_PROBABILITY
public static final java.lang.String CLADE_PROBABILITY
- attribute name for the probability of the clade defined by an internal node.
SUBTREE_PROBABILITY
public static final java.lang.String SUBTREE_PROBABILITY
- attribute name for the probability of the subtree defined by an internal node.
MEAN_CLADE_HEIGHT
public static final java.lang.String MEAN_CLADE_HEIGHT
- attribute name for the mean height of this clade in a group of trees.
setAttribute
public void setAttribute(java.lang.String name,
java.lang.Object value)
- Sets a named attribute to the given value.
- Parameters:
name
- the name of the attributevalue
- the value to set the attribute
getAttribute
public java.lang.Object getAttribute(java.lang.String name)
- Parameters:
name
- the name of the attribute.- Returns:
- the attribute with the given name or null if it doesn't exist.
getAttributeNames
public java.util.Enumeration getAttributeNames()
- Returns:
- an enumeration of the attributes that this node has.