Class HuffmanTree
java.lang.Object
me.c7dev.dexterity.displays.schematics.HuffmanTree
Used to construct the binary tags in schematic tokens
-
Constructor Summary
ConstructorDescriptionHuffmanTree
(HuffmanTree left, HuffmanTree right) HuffmanTree
(Token leaf, int freq) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addBit
(boolean b) void
int
getLeft()
getRight()
getTag()
void
setFrequency
(int f) void
void
void
-
Constructor Details
-
HuffmanTree
-
HuffmanTree
-
-
Method Details
-
getFrequency
public int getFrequency() -
getLeft
-
setLeft
-
setRight
-
setLeaf
-
getRight
-
setFrequency
public void setFrequency(int f) -
getLeafToken
-
getTag
-
addBit
public void addBit(boolean b) -
assignTags
public void assignTags() -
getTagBinary
-