net.maizegenetics.taxa.tree.AttributeNode Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tassel6 Show documentation
Show all versions of tassel6 Show documentation
TASSEL 6 is a software package to evaluate traits association. Feature Tables are at the heart of the package where, a feature is a range of positions or a single position. Row in the that table are taxon.
// AttributeNode.java
//
// (c) 1999-2001 PAL Development Core Team
//
// This package may be distributed under the
// terms of the Lesser GNU General Public License (LGPL)
package net.maizegenetics.taxa.tree;
import java.util.Enumeration;
/**
* 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.1 2007/01/12 03:26:16 tcasstevens Exp $
*
* @author Alexei Drummond
* @author Korbinian Strimmer
*
*/
public interface AttributeNode extends Node {
/** attribute name for the standard error on a node's height. */
String NODE_HEIGHT_SE = "node height SE";
/** attribute name for the probability of the clade defined by an internal node. */
String CLADE_PROBABILITY = "clade probability";
/** attribute name for the probability of the subtree defined by an internal node. */
String SUBTREE_PROBABILITY = "subtree probability";
/** attribute name for the mean height of this clade in a group of trees. */
String MEAN_CLADE_HEIGHT = "mean clade height";
/**
* Sets a named attribute to the given value.
* @param name the name of the attribute
* @param value the value to set the attribute
*/
void setAttribute(String name, Object value);
/**
* @return the attribute with the given name or null if it doesn't exist.
* @param name the name of the attribute.
*/
Object getAttribute(String name);
/**
* @return an enumeration of the attributes that this node has.
*/
Enumeration getAttributeNames();
}