src/org/gel/mauve/tree/IstNode.java

Go to the documentation of this file.
00001 package org.gel.mauve.tree;
00002 
00003 class IstNode {
00004         private IstNode parent;
00005 
00006         private IstNode left;
00007 
00008         private IstNode right;
00009 
00010         private long subtreeSize;
00011 
00012         private long length;
00013 
00014         private Key key;
00015 
00016         void setParent (IstNode parent) {
00017                 if (parent == this)
00018                         throw new RuntimeException (
00019                                         "Error:  attempt to set node's parent as itself.");
00020 
00021                 this.parent = parent;
00022         }
00023 
00024         IstNode getParent () {
00025                 return parent;
00026         }
00027 
00028         void setLeft (IstNode left) {
00029                 this.left = left;
00030         }
00031 
00032         IstNode getLeft () {
00033                 return left;
00034         }
00035 
00036         void setRight (IstNode right) {
00037                 this.right = right;
00038         }
00039 
00040         IstNode getRight () {
00041                 return right;
00042         }
00043 
00044         void setSubtreeSize (long subtreeSize) {
00045                 this.subtreeSize = subtreeSize;
00046         }
00047 
00048         long getSubtreeSize () {
00049                 return subtreeSize;
00050         }
00051 
00052         void setLength (long length) {
00053                 this.length = length;
00054         }
00055 
00056         long getLength () {
00057                 return length;
00058         }
00059 
00060         void setKey (Key key) {
00061                 this.key = key;
00062         }
00063 
00064         Key getKey () {
00065                 return key;
00066         }
00067 };

Generated on Mon Aug 19 06:03:44 2013 for Mauve by doxygen 1.3.6