package schedule; import java.sql.Time; /** * A TimePattern represents the fields necessary for a time pattern that the * courses can be scheduled in. A TimePattern contains a pattern, which is the * combination of days the TimePattern represents. The units are how much that * time pattern is worth to a student. The minHours are the minimum number of * hours per week the TimePattern must cover. The start and end time represent * the start and end times of that pattern. * * A TimePattern is described in Section 2.6.5 of the requirements. * @author vforney */ public abstract class TimePattern extends ScheduleConstraint { /** * The days of the week the TimePattern represents. */ DayPattern pattern; /** * How many units the TimePattern is worth to a student. */ int units; /** * The minimum number of hours the course must fulfill. */ int minHours; /* * The start time of the TimePattern. */ Time start; /** * The end time of the TimePattern. */ Time end; }