compressors
Class LZ77Dictionary

java.lang.Object
  extended by compressors.LZ77Dictionary

public class LZ77Dictionary
extends java.lang.Object

It represents a dictionary of words generated during LZ77 compression


Constructor Summary
LZ77Dictionary()
           
 
Method Summary
 void addEntry(LZ77DictEntry e)
           
 double computeMeanWordLength()
           
 java.util.Vector<LZ77DictEntry> getEntries()
           
 LZ77DictEntry getEntry(int i)
           
 int getMaxWordIndex()
           
 int getMaxWordLen()
           
 double getMeanWordLen()
           
 int getNumberOfWords()
           
 void setMaxWordIndex(int maxWordIndex)
           
 void setMaxWordLen(int maxWordLen)
           
 void setMeanWordLen(double meanWordLen)
           
 void setNumberOfWords(int numberOfWords)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LZ77Dictionary

public LZ77Dictionary()
Method Detail

getEntries

public java.util.Vector<LZ77DictEntry> getEntries()
Returns:
the entries

getEntry

public LZ77DictEntry getEntry(int i)
Returns:
the entries

addEntry

public void addEntry(LZ77DictEntry e)

computeMeanWordLength

public double computeMeanWordLength()

size

public int size()

getMaxWordLen

public int getMaxWordLen()
Returns:
the maxWordLen

setMaxWordLen

public void setMaxWordLen(int maxWordLen)
Parameters:
maxWordLen - the maxWordLen to set

getMaxWordIndex

public int getMaxWordIndex()
Returns:
the maxWordIndex

setMaxWordIndex

public void setMaxWordIndex(int maxWordIndex)
Parameters:
maxWordIndex - the maxWordIndex to set

getMeanWordLen

public double getMeanWordLen()
Returns:
the meanWordLen

setMeanWordLen

public void setMeanWordLen(double meanWordLen)
Parameters:
meanWordLen - the meanWordLen to set

getNumberOfWords

public int getNumberOfWords()
Returns:
the numberOfWords

setNumberOfWords

public void setNumberOfWords(int numberOfWords)
Parameters:
numberOfWords - the numberOfWords to set