ostore.archive.cauchy
Class CauchyDecode

java.lang.Object
  |
  +--ostore.archive.cauchy.CauchyDecode

public class CauchyDecode
extends Object

CauchyEncode decodes a msg that was previously encoded using Cauchy Reed-Solomon method. Move information from fragments into received message. Fill in parts of received message that requires no processing and figure out how many of the redundant fragments are needed. Nfirstrec is the number of fragments received from among the first Mfragments that carry portions of the unprocessed original message. Rec_index is an array that indicates which parts of the message are received. The pattern is the same within all Nsegs segments,

Version:
$Id: CauchyDecode.java,v 1.10 2003/11/17 23:52:43 emilong Exp $
Author:
Hakim Weatherspoon

Constructor Summary
CauchyDecode()
           
 
Method Summary
static long decode(int[] rec_fragments, int Nrec, int[] rec_message, Parameters p)
          decode uses the cauchy erasure coding method to decode an array of fragments back into a msg.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CauchyDecode

public CauchyDecode()
Method Detail

decode

public static long decode(int[] rec_fragments,
                          int Nrec,
                          int[] rec_message,
                          Parameters p)
                   throws ErasureDecodeException
decode uses the cauchy erasure coding method to decode an array of fragments back into a msg. FIXME!!

Returns:
return == time in microseconds to decode fragments into a msg.
ErasureDecodeException