A SKETCHY GUIDE TO THE SOURCE CODE
This source code is for the software described at www.ptft.org. Feel free to use and modify it. Just be kind enough to follow the GNU public license agreement and also be kind enough to give us credit (that'd be me and the Group for Logic and Formal Semantics at SUNY Stony Brook, www.ptft.org).
You can download the entire source in one shot: [ptft.zip].
The source code is organized roughly as follows:
JPtftApplet, which creates an instance of
JPtftPanel, which creates an instance of
JGridButton and
JPaintCellularAutomata (which
is a subclass of JPtftCellularAutomata), which
creates 64x64 (so 4096) instances of
JPtftCell
You can also look at the javadoc, especially if you don't care about the implementation details but want to subclass ("extend" in java speak) some of my classes.
There are other classes of course, but hopefully this will give you enough of an idea to be able to look at the source code and figure out the rest. As a programmer, you might also find at least the following two tools useful:
- Some kind of IDE (stands for "Integrated Development Environment," which comes with a debugger and other nice things). For this I used NetBeans, which you can download at www.netbeans.org. NetBeans IDE is free and, if I remember correctly, is written in java, which means it's platform-independent (run it on a PC, a mac, or linux). The .form files were generated by NetBeans and so would only be useful to you if you were using NetBeans.
- Some kind of source control. It'll keep you sane. CVS is the best standard for this, especially because once you master it, it'll be a breeze concurrently working with other developers on the same project. (CVS stands for "Concurrent Version System") Which CVS implementation you use is up to you. I personally like ones that are free ;)
-Will, 1.26.2007