Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The course staff is providing a framework for writing this program that includes many classes and interfaces. The framework is packaged as a zipped DrJava project file laundry.zip. This file will unzip into a self-contained file tree with root directory laundry. This directory contains the source tree for the laundry framework with root directory edu, a DrJava project profile file laundry.drjava and two text files sampleIn} and {{sampleOut used by the sample laundry test class edu.rice.comp211 laundry.tests LaundryTest. Given the text input in sampleIn}, your program should generate the text in {{sampleOut. The provided framework compiles but LaundryTest will fail because most of the members in two key classes DoCommandVisitor and Student have been stubbed out.

...

Your assignment is to fill in the stubbed out members of the DoCommandVisitor and Student (members with degenerate bodies (either return; or return null;). In the process you may choose to define some new classes to support your Student DoCommandVisitor} class implementation. The Student class which repeatedly invokes DoCommandVisitor models the laundry habits of Acker. In our test simulations, we will typically only create a single instance of Student representing Acker, but your code should support multiple students (e.g., Acker and his brothers) at a time. Since these students do not interact with each other, supporting this form of multiplicity is a trivial consequence of OO coding style used in the framework.

...

Wiki Markup
When the simulation begins, Acker is wearing _white_ pants, _white_ socks, and a _white_ shirt. The closet shelf, dirty laundry pile, and laundry facilities are all initially empty.  YourThe program shouldstarts start execution using the special method {{public static void main(String\[\] args)}} in class {{Main}}.  The {{main}} method interface is the only vehicle for executing Java programs directly from the command line. (_DrJava_ has a {{main}} method for this reason.)

...