1 package jalview.datamodel;
\r
3 public class BinaryNode {
\r
10 public int bootstrap;
\r
12 public BinaryNode() {
\r
13 left = right = parent = null;
\r
16 public BinaryNode(Object element, BinaryNode parent,String name) {
\r
17 this.element = element;
\r
18 this.parent = parent;
\r
24 public Object element() {
\r
28 public Object setElement(Object v) {
\r
32 public BinaryNode left() {
\r
36 public BinaryNode setLeft(BinaryNode n) {
\r
40 public BinaryNode right() {
\r
44 public BinaryNode setRight(BinaryNode n) {
\r
48 public BinaryNode parent() {
\r
52 public BinaryNode setParent(BinaryNode n) {
\r
56 public boolean isLeaf() {
\r
57 return (left == null) && (right == null);
\r
60 public void setName(String name) {
\r
63 public String getName() {
\r
66 public void setBootstrap(int boot) {
\r
67 this.bootstrap = boot;
\r
69 public int getBootstrap() {
\r