
VSDriver class that you developed
for programming assignment 1.
Your implementations must be consistent with all of the documentation describing these classes.
Schedule class must use an array of Event
objects. It must not use any other kind of collection (e.g.,
ArrayList, Vector, HashMap, etc...).
ScheduledTime class that has
all of the attributes it needs and all of the methods except the
compareTo() method and the single-parameter explicit value
constructor. [Hints: (1) You may want to include some private
methods. (2) The setTruncationValue() should only store the
value it is passed.] Fully test this version.
compareTo() method to the
ScheduledTime class. Fully test this version.
ScheduledTime class that can be used to
parse a String representation of a time. Give careful
thought to where this code should be. Fully test this code.
Event class that has
all of the attributes it needs and the toString() method.
Give careful thought to how to represent the days (there are several
options, list them all and evaluate them); use
ScheduledTime objects for the start and end times.
Event class that can be used to
parse a String representation of the days passed
to the constructor. (Hint: The String class
has a String.startsWith(java.lang.String)
method that might be helpful.) Give careful thought to where this code should
be. Fully test this code.
Event class that can be used to parse a
String representation of the times passed to
the constructor. Again, give careful thought to where this code
should be. Also, make sure you do not duplicate code that is in the
ScheduledTime class.
Event
class. Fully test this version of the class.
conflicts() method to the Event
class. (Hint: On paper, create a time-line and, using an interval to
denote the start and end times of an Event, figure out
when Event objects conflict.) Fully test
the class.
Schedule class that has all of
the attributes it needs and the explicit value constructor.
add() method to the Schedule class.
Fully test this version of the class.
Schedule class.
Fully test the class.
Copyright 2013