1 | // AttributeNode.java |
---|
2 | // |
---|
3 | // (c) 1999-2001 PAL Development Core Team |
---|
4 | // |
---|
5 | // This package may be distributed under the |
---|
6 | // terms of the Lesser GNU General Public License (LGPL) |
---|
7 | |
---|
8 | |
---|
9 | package de.ugoe.cs.autoquest.tasktrees.alignment.pal.tree; |
---|
10 | |
---|
11 | |
---|
12 | import java.io.*; |
---|
13 | import java.util.Enumeration; |
---|
14 | |
---|
15 | |
---|
16 | /** |
---|
17 | * interface for a node (includes branch) in a binary/non-binary |
---|
18 | * rooted/unrooted tree. Unlike its superclass this node |
---|
19 | * can have an arbitrary number of named attributes associated with it. |
---|
20 | * |
---|
21 | * @version $Id: AttributeNode.java,v 1.4 2001/12/03 11:04:39 korbinian Exp $ |
---|
22 | * |
---|
23 | * @author Alexei Drummond |
---|
24 | * @author Korbinian Strimmer |
---|
25 | * |
---|
26 | */ |
---|
27 | |
---|
28 | public interface AttributeNode extends Node { |
---|
29 | |
---|
30 | /** attribute name for the standard error on a node's height. */ |
---|
31 | String NODE_HEIGHT_SE = "node height SE"; |
---|
32 | |
---|
33 | /** attribute name for the probability of the clade defined by an internal node. */ |
---|
34 | String CLADE_PROBABILITY = "clade probability"; |
---|
35 | |
---|
36 | /** attribute name for the probability of the subtree defined by an internal node. */ |
---|
37 | String SUBTREE_PROBABILITY = "subtree probability"; |
---|
38 | |
---|
39 | /** attribute name for the mean height of this clade in a group of trees. */ |
---|
40 | String MEAN_CLADE_HEIGHT = "mean clade height"; |
---|
41 | |
---|
42 | /** |
---|
43 | * Sets a named attribute to the given value. |
---|
44 | * @param name the name of the attribute |
---|
45 | * @param value the value to set the attribute |
---|
46 | */ |
---|
47 | void setAttribute(String name, Object value); |
---|
48 | |
---|
49 | /** |
---|
50 | * @return the attribute with the given name or null if it doesn't exist. |
---|
51 | * @param name the name of the attribute. |
---|
52 | */ |
---|
53 | Object getAttribute(String name); |
---|
54 | |
---|
55 | /** |
---|
56 | * @return an enumeration of the attributes that this node has. |
---|
57 | */ |
---|
58 | Enumeration getAttributeNames(); |
---|
59 | |
---|
60 | } |
---|
61 | |
---|