The code for the Translator class manages the GUI. The PigLatin class is an interactive control loop which processes the string word by word. For less functionality, but much cleaner code, see a simpler version of the interactive control loop (which actually works with a slightly modified Translator). While the decomposition may be somewhat unconventional java, it's precisely what's wanted for Rethinking CS101.
This applet relies on binary semaphores as well as a set of specialized String utilities. For a simpler example of synchronization using these semaphores, see a simple synchronized producer/consumer buffer.
Onwards Or Back To:
This page last updated by Lynn Andrea Stein on 6/20/96
Copyright © 1996 Massachusetts
Institute of Technology.
$ID$