scheduler.db.instructordb
Class CoursePreference

java.lang.Object
  extended by scheduler.db.instructordb.CoursePreference

public class CoursePreference
extends java.lang.Object

This class will house the preference an instructor has for a particular course.

Author:
Cedric Wienold

Field Summary
private  Course course
          The prefered course
private  int desire
          The desire value
 
Constructor Summary
CoursePreference(Course course, int desire)
          This constructor will create a preference for a particular course.
 
Method Summary
 Course getCourse()
          This method returns the course in this preference.
 int getDesire()
          This method returns the desire value of this preference.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

course

private Course course
The prefered course


desire

private int desire
The desire value

Constructor Detail

CoursePreference

public CoursePreference(Course course,
                        int desire)
This constructor will create a preference for a particular course.

Parameters:
course - the desired course.
desire - the desire level, between 1 and 10.
Method Detail

getCourse

public Course getCourse()
This method returns the course in this preference.

Returns:
the course in this preference.

getDesire

public int getDesire()
This method returns the desire value of this preference.

Returns:
the desire value of this preference.