scheduler.generate
Class Treatment

java.lang.Object
  extended by scheduler.generate.Treatment

public class Treatment
extends java.lang.Object

Used as the object for a hash of how an instructor has been treated by the scheduling aglorithm, indexed by instructor name, in the Generate class. Contains information regarding the times and courses an instructor has been given, along with how many WTU's he/she currently has.

Author:
Eric Liebowitz

Field Summary
protected  java.util.Vector<Course> courses
          Which courses this instructor has been assigned to teach
protected  java.util.Vector<Time> times
          Which time slots this instructor has been assigned to teach
protected  int wtu
          How many wtu's an instructor has accrued
 
Constructor Summary
protected Treatment()
          Constructs a Fairness object with no time assignments, no course assignments, and a WTU count of 0.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

times

protected java.util.Vector<Time> times
Which time slots this instructor has been assigned to teach


courses

protected java.util.Vector<Course> courses
Which courses this instructor has been assigned to teach


wtu

protected int wtu
How many wtu's an instructor has accrued

Constructor Detail

Treatment

protected Treatment()
Constructs a Fairness object with no time assignments, no course assignments, and a WTU count of 0.
 // **Pre and Post conditions** //

 Pre:
    N/A

 Post:

    //Valid, empty vector of times
    return.times.isEmpty()

       &&

    //Valid, empty vector of courses
    return.courses.isEmpty()

       &&

    //WTU count of 0
    return.wtu == 0