Package pal.tree

Interface AttributeNode

All Superinterfaces:
Node, 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 Details

    • NODE_HEIGHT_SE

      static final String NODE_HEIGHT_SE
      attribute name for the standard error on a node's height.
      See Also:
    • CLADE_PROBABILITY

      static final String CLADE_PROBABILITY
      attribute name for the probability of the clade defined by an internal node.
      See Also:
    • SUBTREE_PROBABILITY

      static final String SUBTREE_PROBABILITY
      attribute name for the probability of the subtree defined by an internal node.
      See Also:
    • MEAN_CLADE_HEIGHT

      static final String MEAN_CLADE_HEIGHT
      attribute name for the mean height of this clade in a group of trees.
      See Also:
  • Method Details

    • setAttribute

      void setAttribute(String name, Object value)
      Sets a named attribute to the given value.
      Parameters:
      name - the name of the attribute
      value - the value to set the attribute
    • getAttribute

      Object getAttribute(String name)
      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.