package scheduler.ScheduleQuality; import scheduler.Generate.*; import scheduler.Preferences.*; import scheduler.ViewSchedule.*; import java.util.Collection; /** * * ScheduleQuality determine the schedule's overall "quality" based on the amount and degree of schedule preference violations. * * @author * @version * **/ public class ScheduleQuality { /** Default Constructor **/ public ScheduleQuality() { } /** CalculateQuality uses the points from each preference * violation in the preference violation database to determine a value for the overall quality of the schedule. **/ protected int calculateQuality(PreferenceViolationList[] pvList) { return null; } /** This function goes through the entire list of preference violations and assigns points to each violation. **/ protected PreferenceViolationList findPoints( PreferenceViolationList[] pvList) { return null; } /** FindPrefViolations scans through all ScheduleItems an *d checks the PreferencesCollection for any violations. I *t calculates the points for each violation and puts them in a database. **/ protected PreferenceViolationList findPrefViolations( PreferencesCollection[] prefDB, ScheduleItem siList) { return null; } /** ViewQuality displays the Schedule Quality Window that * includes all the preference violations and the calculated schedule quality value. **/ protected ScheduleQuality viewQuality(PreferenceViolationList[] pvList, int quality, int high, int low, int avg) { return null; } protected PreferenceViolationList pvList; protected int quality; protected int low; protected int high; protected int avg; }