Date: Mon, 07 Oct 2002 19:51:20 -0500 (Central Daylight Time) From: Mark Jacobson To: 810-061-01@uni.edu, 810-061-02@uni.edu Subject: New URL to check out... Hi Java 061 students, Be sure to check the web page at: http://www.cns.uni.edu/~jacobson/061 and link to the http://www.cns.uni.edu/~jacobson/061/applets/PurpleRain/PurpleRain.html link. It is a development of the chapter 5 examples that we went over in class today. Specifically, it develops the DropCollector and the FallingBall classes so that the FallingRain balls or raindrops need to know what DropCollector they originated from and have fallen inside of. When the FallingBall object reaches the collector, it sends a message to the DropCollector. The public method onRainDropLanding() is a DropCollector method. ------------------- ------------- public void onRainDropLanding( FallingBall2 landedBall ) The DropCollector class also has these additional two public methods: public double waterLevel() and public boolean fullOfWater() so it has taken on additional responsibilities and can answer these messages: 1. public void onRainDropLanding( FallingBall2 landedBall ) 2. public double waterLevel() 3. public boolean fullOfWater() Try out the URL. This example will be helpful to study for the earlier phases of your assignment on Boxball, but it will be essential when you get to part 4 of the project, so don't worry if you do not understand it fully until AFTER Wednesday's class, where it will be discussed. The summary/elaboration of today's class session is NOT yet ready, but should be ready late, late tonight or by early Tuesday morning. Again, class #18 summary will be at URL: http://www.cns.uni.edu/~jacobson/061/class18.html easily linked to from our class web page at http://www.cns.uni.edu/~jacobson/061 I have decided to have exam #1 on Wednesday, October 16th instead of having it two days earlier on Monday. The Wednesday, October 16th exam will be a full hour (50 minutes) in-class midterm exam. The way that you do the assignment that is due on Friday is your choice. If you do it by following the suggestions given in class for how to create software the right (Wright) way, your work on the Boxball project will be two things: 1. The best possible preparation for next weeks exam, as well as 2. the best guarantee of getting this project to work successfully without getting lost in or defeated by and slowed way down by "slimers" (Ghostbuster's terms for syntax errors, run time (execution) errors and design flaws. See you on Wednesday (October 9th), if not before. Mark