apollo.analysis.filter
Class HuffNode

java.lang.Object
  extended by apollo.analysis.filter.HuffNode

public class HuffNode
extends java.lang.Object


Field Summary
protected  HuffNode child_0
           
protected  HuffNode child_1
           
protected  int count
           
protected  HuffNode parent
           
protected  java.lang.String word
           
 
Constructor Summary
HuffNode(HuffNode child_0, HuffNode child_1)
           
HuffNode(java.lang.String word)
           
 
Method Summary
 void addOccurance()
           
 HuffNode getChild_0()
           
 HuffNode getChild_1()
           
 int getOccurance()
           
 HuffNode getParent()
           
 java.lang.String getWord()
           
 void setParent(HuffNode parent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

word

protected java.lang.String word

count

protected int count

parent

protected HuffNode parent

child_0

protected HuffNode child_0

child_1

protected HuffNode child_1
Constructor Detail

HuffNode

public HuffNode(java.lang.String word)

HuffNode

public HuffNode(HuffNode child_0,
                HuffNode child_1)
Method Detail

getWord

public java.lang.String getWord()

addOccurance

public void addOccurance()

getOccurance

public int getOccurance()

setParent

public void setParent(HuffNode parent)

getParent

public HuffNode getParent()

getChild_0

public HuffNode getChild_0()

getChild_1

public HuffNode getChild_1()