Package pal.tree
Interface AttributeNode
-
- All Superinterfaces:
Node,java.io.Serializable
- All Known Implementing Classes:
PositionedNode,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.- Version:
- $Id: AttributeNode.java,v 1.4 2001/12/03 11:04:39 korbinian Exp $
- Author:
- Alexei Drummond, Korbinian Strimmer
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCLADE_PROBABILITYattribute name for the probability of the clade defined by an internal node.static java.lang.StringMEAN_CLADE_HEIGHTattribute name for the mean height of this clade in a group of trees.static java.lang.StringNODE_HEIGHT_SEattribute name for the standard error on a node's height.static java.lang.StringSUBTREE_PROBABILITYattribute name for the probability of the subtree defined by an internal node.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.ObjectgetAttribute(java.lang.String name)java.util.EnumerationgetAttributeNames()voidsetAttribute(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, setNodeHeight, setNumber, setParent, setSequence
-
-
-
-
Field Detail
-
NODE_HEIGHT_SE
static final java.lang.String NODE_HEIGHT_SE
attribute name for the standard error on a node's height.- See Also:
- Constant Field Values
-
CLADE_PROBABILITY
static final java.lang.String CLADE_PROBABILITY
attribute name for the probability of the clade defined by an internal node.- See Also:
- Constant Field Values
-
SUBTREE_PROBABILITY
static final java.lang.String SUBTREE_PROBABILITY
attribute name for the probability of the subtree defined by an internal node.- See Also:
- Constant Field Values
-
MEAN_CLADE_HEIGHT
static final java.lang.String MEAN_CLADE_HEIGHT
attribute name for the mean height of this clade in a group of trees.- See Also:
- Constant Field Values
-
-
Method Detail
-
setAttribute
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
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
java.util.Enumeration getAttributeNames()
- Returns:
- an enumeration of the attributes that this node has.
-
-