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|^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 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 job assignment is to fill in the stubbed out members of the DoCommandVisitor and Student classes that been stubbed out (members with degenerate bodies (either return; or return null;). In the process you may choose to define some new classes to support your Student class implementation. The Student class 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.  Your program should start execution using the special method {{public static void main(String\[\] args)}} whichin class {{Main}}.  The {{main}} method interface is the only vehicle for executing Java programs directly onfrom the command line. (_DrJava_ has a {{main}} method for this reason.)

...

Our supporting framework is provided in two different forms:

...

the zip file laundry.zip

...

. The test input in the file sampleIn (with corresponding output) sampleOut is far from comprehensive.

All of our supporting code resides in the default package and none of the classes are public so all of the code can be placed in a single file. We are providing multi-file version of the source so that you can (optionally) gain experience with code bases where every public class resides in a separate file. All subsequent assignment will use the package system where most classes are public and reside in separate files.

...