part6
Interface Redundancy

All Known Implementing Classes:
SimpleRedundancy, WeakRedundancy

public interface Redundancy

An interface that defines the basic behaviour of an object that can be used to add redundancy to a bit integer value.


Method Summary
 boolean ok(java.math.BigInteger x)
          A method to test if the value x was produced by protect().
 java.math.BigInteger protect(java.math.BigInteger x)
          A method to add redundancy to a big integer x.
 java.math.BigInteger recover(java.math.BigInteger x)
          A method to recover a big integer value from a redundant value x produced by protect().
 

Method Detail

protect

public java.math.BigInteger protect(java.math.BigInteger x)
                             throws java.lang.Exception
A method to add redundancy to a big integer x.

Throws:
java.lang.Exception

recover

public java.math.BigInteger recover(java.math.BigInteger x)
                             throws java.lang.Exception
A method to recover a big integer value from a redundant value x produced by protect().

Throws:
java.lang.Exception - if the value x was not created by protect().

ok

public boolean ok(java.math.BigInteger x)
           throws java.lang.Exception
A method to test if the value x was produced by protect().

Throws:
java.lang.Exception