com.github.junrar.unpack.ppm
Class PPMContext

java.lang.Object
  extended by com.github.junrar.unpack.ppm.Pointer
      extended by com.github.junrar.unpack.ppm.PPMContext

public class PPMContext
extends Pointer

DOCUMENT ME

Version:
$LastChangedRevision$
Author:
$LastChangedBy$

Field Summary
static int[] ExpEscape
           
static int size
           
 
Fields inherited from class com.github.junrar.unpack.ppm.Pointer
mem, pos
 
Constructor Summary
PPMContext(byte[] mem)
           
 
Method Summary
 int createChild(ModelPPM model, State pStats, StateRef firstState)
           
 void decodeBinSymbol(ModelPPM model)
           
 boolean decodeSymbol1(ModelPPM model)
           
 boolean decodeSymbol2(ModelPPM model)
           
 FreqData getFreqData()
           
 int getMean(int summ, int shift, int round)
           
 int getNumStats()
           
 State getOneState()
           
 int getSuffix()
           
 PPMContext init(byte[] mem)
           
 void rescale(ModelPPM model)
           
 void setAddress(int pos)
          needs to set the fields of this object to the values in the byte[] at the given position.
 void setFreqData(FreqData freqData)
           
 void setNumStats(int numStats)
           
 void setOneState(StateRef oneState)
           
 void setSuffix(int suffix)
           
 void setSuffix(PPMContext suffix)
           
 String toString()
           
 void update1(ModelPPM model, int p)
           
 void update2(ModelPPM model, int p)
           
 
Methods inherited from class com.github.junrar.unpack.ppm.Pointer
getAddress
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

size

public static final int size

ExpEscape

public static final int[] ExpEscape
Constructor Detail

PPMContext

public PPMContext(byte[] mem)
Method Detail

init

public PPMContext init(byte[] mem)

getFreqData

public FreqData getFreqData()

setFreqData

public void setFreqData(FreqData freqData)

getNumStats

public final int getNumStats()

setNumStats

public final void setNumStats(int numStats)

getOneState

public State getOneState()

setOneState

public void setOneState(StateRef oneState)

getSuffix

public int getSuffix()

setSuffix

public void setSuffix(PPMContext suffix)

setSuffix

public void setSuffix(int suffix)

setAddress

public void setAddress(int pos)
Description copied from class: Pointer
needs to set the fields of this object to the values in the byte[] at the given position. be aware of the byte order

Overrides:
setAddress in class Pointer
Parameters:
pos - the position this object should point to

createChild

public int createChild(ModelPPM model,
                       State pStats,
                       StateRef firstState)

rescale

public void rescale(ModelPPM model)

getMean

public int getMean(int summ,
                   int shift,
                   int round)

decodeBinSymbol

public void decodeBinSymbol(ModelPPM model)

update1

public void update1(ModelPPM model,
                    int p)

decodeSymbol2

public boolean decodeSymbol2(ModelPPM model)

update2

public void update2(ModelPPM model,
                    int p)

decodeSymbol1

public boolean decodeSymbol1(ModelPPM model)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012. All Rights Reserved.