schedule
Class AdminAdjCourseDistConstraint

java.lang.Object
  extended by schedule.AdminAdjCourseDistConstraint

abstract class AdminAdjCourseDistConstraint
extends java.lang.Object

This object saves the maximum distance between two adjacent courses. The admin has privileges to set this constraint. The score integer is used to figure out success metrics of the generated schedule. It tells how "well" this constraint was met.

This object is derived from Section 2.4.1.3 of the Functional Requirements.


Field Summary
(package private)  int adjCourseScore
           
(package private)  java.util.Collection<java.lang.Integer> fixedDistances
           
(package private)  int maxDistance
           
 
Constructor Summary
AdminAdjCourseDistConstraint()
           
 
Method Summary
abstract  void saveDistance(int dist)
          This method is called once the admin saves the maximum distance between adjacent course.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

maxDistance

int maxDistance

fixedDistances

java.util.Collection<java.lang.Integer> fixedDistances

adjCourseScore

int adjCourseScore
Constructor Detail

AdminAdjCourseDistConstraint

AdminAdjCourseDistConstraint()
Method Detail

saveDistance

public abstract void saveDistance(int dist)
This method is called once the admin saves the maximum distance between adjacent course.