Package pal.tree
Interface AttributeNode
- All Superinterfaces:
Node
,Serializable
- All Known Implementing Classes:
PositionedNode
,SimpleNode
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.
- Version:
- $Id: AttributeNode.java,v 1.4 2001/12/03 11:04:39 korbinian Exp $
- Author:
- Alexei Drummond, Korbinian Strimmer
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
attribute name for the probability of the clade defined by an internal node.static final String
attribute name for the mean height of this clade in a group of trees.static final String
attribute name for the standard error on a node's height.static final String
attribute name for the probability of the subtree defined by an internal node. -
Method Summary
Modifier and TypeMethodDescriptiongetAttribute
(String name) void
setAttribute
(String name, 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, setNodeHeight, setNumber, setParent, setSequence
-
Field Details
-
NODE_HEIGHT_SE
attribute name for the standard error on a node's height.- See Also:
-
CLADE_PROBABILITY
attribute name for the probability of the clade defined by an internal node.- See Also:
-
SUBTREE_PROBABILITY
attribute name for the probability of the subtree defined by an internal node.- See Also:
-
MEAN_CLADE_HEIGHT
attribute name for the mean height of this clade in a group of trees.- See Also:
-
-
Method Details
-
setAttribute
Sets a named attribute to the given value.- Parameters:
name
- the name of the attributevalue
- the value to set the attribute
-
getAttribute
- Parameters:
name
- the name of the attribute.- Returns:
- the attribute with the given name or null if it doesn't exist.
-
getAttributeNames
Enumeration getAttributeNames()- Returns:
- an enumeration of the attributes that this node has.
-