Next: Organizing the Applet: Panel
Up: Linear Codes
Previous: Cyclic Codes
  Contents
The LinearCodes package has different classes defining each linear
code described in the previous sections. All of these codes encode
data words in basically the same way, so there is also a super class
called LinearCodes. In in encoding applet, the encoding methods in
LinearCodes are used to encrypt the webpage data. The LinearCodes
class constructs the generating and parity check matrices. The only
thing that really differs from code to code is how the P matrix is
constructed. For this reason, the getP() method in LinearCodes is
abstract. Each of the code classes that extend LinearCodes defines
this method. That is why it was important for us to find
in
the Cyclic codes, even though we already had the generating matrix.
Below is a link to the java file for the LinearCodes class.
LinearCodes.java
The Parity class, which defines the parity code can be used for any
set of finite field elements. The link below is for the Parity class
file.
Parity.java
For Hamming codes and Cyclic codes, the getP() method would be
defined differently for different fields. Because I only needed to
encode
elements, the Hamming code class is only
over
.
HammingCodesOverf2.java
CyclicCodesOverf2.java
Next: Organizing the Applet: Panel
Up: Linear Codes
Previous: Cyclic Codes
  Contents
Frederick Leitner
2004-09-01