Code samples from lecture and labtest. Labtest solutions are in the files with suffix "private".
This is a set of examples that will be the focus of Lectures 9 and 10. The following applications have been added: EventGeneratorExample, EventGeneratorExample_F, and DrawVersion7. As well, the APIs for the classes are provided in a subdirectory "doc". You are expected to print these applications out and read them *before* class (you do not need to look at or print out the supporting classes, such as DotPanel, DotController, etc - it will suffice to examine their APIs). The class definitions for the supporting classes are being provided, but you are not expected to look at these (unless you are keen and want to delve into the material more deeply). They are being provided so that it will be convenient to run the applications (as opposed to bundling them in a jar file, which must be then added to the build and class paths, etc, etc). Import into eclipse as a project (in the same manner as archive files are used in labtests). Run the two EventGeneratorExample* apps - can you understand what is happening? Run DrawVersion7 - can you trace what is happening?
This is a set of examples that will be the focus of Lectures 7 and 8. The applications are named DrawVersion*, ranging from 1 to 6. As well, the APIs for the classes DotPanel and SimpleThreeDotModel are provided. You are expected to print these out and read them *before* class. As well, the APIs for the classes DotPanel and SimpleThreeDotModel are provided. The class definitions for DotPanel and SimpleThreeDotModel are being provided, but you are not expected to look at these (unless you are keen and want to delve into the material more deeply). They are being provided so that it will be convenient to run the applications (as opposed to bundling them in a jar file, which must be then added to the build and class paths, etc, etc). Import into eclipse as a project (in the same manner as archive files are used in labtests)
A pdf file containing the API has been placed here for your convenience.