public abstract class InstructorPreference
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) java.util.Collection<CoursePreference> |
coursePrefs |
(package private) java.util.Collection<Time> |
eight |
(package private) java.util.Collection<Time> |
five |
(package private) java.util.Collection<Time> |
four |
(package private) java.util.Collection<Time> |
nine |
(package private) java.util.Collection<Time> |
one |
(package private) java.util.Collection<Time> |
seven |
(package private) java.util.Collection<Time> |
six |
(package private) java.util.Collection<Time> |
ten |
(package private) java.util.Collection<Time> |
three |
(package private) java.util.Collection<Time> |
two |
(package private) java.util.Collection<Time> |
zero |
Constructor and Description |
---|
InstructorPreference() |
Modifier and Type | Method and Description |
---|---|
(package private) abstract void |
addCoursePreference(CoursePreference coursePref)
This method adds a course preference for an instructor.
|
(package private) abstract void |
deleteCoursePreference(CoursePreference coursePref)
This method deletes a course preference for an instructor.
|
(package private) abstract void |
editPreference(Time time,
int rating)
This method edits the preferred times for an instructor to teach.
|
java.util.Collection<Time> zero
java.util.Collection<Time> one
java.util.Collection<Time> two
java.util.Collection<Time> three
java.util.Collection<Time> four
java.util.Collection<Time> five
java.util.Collection<Time> six
java.util.Collection<Time> seven
java.util.Collection<Time> eight
java.util.Collection<Time> nine
java.util.Collection<Time> ten
java.util.Collection<CoursePreference> coursePrefs
abstract void editPreference(Time time, int rating)
time
- The time that is being edited.rating
- The rating that the instructor is giving to the time.
pre:
//
// The rating should be between zero and ten.
//
rating >= 0 && rating <= 10;abstract void addCoursePreference(CoursePreference coursePref)
coursePref
- The course the wants to be added to the instructor's
preferences.
pre:
//
// The coursePref should not already exist.
//
!exists (CoursePref other;
coursePrefs.contains(other);
coursePref.equals(other));abstract void deleteCoursePreference(CoursePreference coursePref)
coursePref
- The course the wants to be deleted from the instructor's
preferences.
pre:
//
// The coursePref should already exist.
//
exists (CoursePref other;
coursePrefs.contains(other);
coursePref.equals(other));