view
Class AttributeView

java.lang.Object
  extended by view.AttributeView

abstract class AttributeView
extends java.lang.Object

Attribute view object that shows the user a schedules attributes. It is the main dialog box shown in Figure 2.4.4.1.


Field Summary
(package private)  int constraintScore
          The scores shown on the dialog box
(package private)  java.util.Collection<java.lang.String> fairness
           
(package private)  java.util.Collection<Instructor> instructors
          The instructors listed next to their corresponding fairness score and the fairness score itself are collections that will be displayed in the table view of the attribute view dialog
(package private)  int prefScore
           
(package private)  Schedule schedule
          The schedule the scores correspond to
 
Constructor Summary
AttributeView()
           
 
Method Summary
abstract  int getConstraintScore()
          Function to return the Constraint score the current schedule has, which represents how well a schedule meets constraints
abstract  int getFairnessScore(Instructor instructor)
          Function to return the fairness score the schedule gives a given instructor
abstract  int getPreferenceScore()
          Function to return the Preference score of the current schedule, which represents how well a schedule meets all instructor preferences
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

schedule

Schedule schedule
The schedule the scores correspond to


constraintScore

int constraintScore
The scores shown on the dialog box


prefScore

int prefScore

instructors

java.util.Collection<Instructor> instructors
The instructors listed next to their corresponding fairness score and the fairness score itself are collections that will be displayed in the table view of the attribute view dialog


fairness

java.util.Collection<java.lang.String> fairness
Constructor Detail

AttributeView

AttributeView()
Method Detail

getConstraintScore

public abstract int getConstraintScore()
Function to return the Constraint score the current schedule has, which represents how well a schedule meets constraints

Returns:
int

getPreferenceScore

public abstract int getPreferenceScore()
Function to return the Preference score of the current schedule, which represents how well a schedule meets all instructor preferences

Returns:
int

getFairnessScore

public abstract int getFairnessScore(Instructor instructor)
Function to return the fairness score the schedule gives a given instructor

Parameters:
instructor -
Returns:
int