All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.maizegenetics.taxa.tree.AttributeNode Maven / Gradle / Ivy

Go to download

TASSEL is a software package to evaluate traits associations, evolutionary patterns, and linkage disequilibrium.

The newest version!
// 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();
	
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy