/* * RSApplet.java - Applet wrapper for Reed-Solomon decoder. * * ------------------------------------------------------------------ * * @begin[license] * Copyright (C) 2003 Kai Chen, Caltech * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * * @author: Kai Chen * @email{kchen@cs.caltech.edu} * @end[license] * */ import java.awt.*; import java.applet.*; public class RSApplet extends Applet { public void init() { /* build the GF we are working with */ int gfPoly[] = {1, 0, 1, 0, 0, 1}; GF gf = new GF(2, 5, gfPoly); /* construct the RS decoder */ RSDecoder decoder = new RSDecoder(gf, 16); new RSFrame(decoder); } public void paint(Graphics g) { g.drawString("EE/Ma127a Final Project:", 20, 20); g.drawString("Reed-Solomon Decoder", 20, 40); } }