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 available either packaged as a a single file HW10.java (https:wikiriceedudisplayCSWIKI211hw10HW10java) (with a skeleton definition for the class Student=) or as an archive (.zip file) laundry.zip of many files, one for each class and interface in =HW10.java 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 two key classes DoCommandVisitor} and {{Student have been stubbed out.

Your job is to fill in the members of the Student class which is provided in skeleton form DoCommandVisitor and Student classes that been stubbed out with degenerate bodies (either return; or return null;. In the process you may have 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 writing your code in OO coding style used in the framework.

The Student class includes:

  • the name of the student,
  • the closet shelf with its piles of clean clothes,
  • the dirty laundry pile, and
  • the laundry room with its piles of laundered garmets sitting on tables.
  • and methods to manipulate those data representations to perform the specified simulation.

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)}} which is the only vehicle for executing Java programs directly on the command line. (_DrJava_ has a {{main}} method for this reason.)

...