package view; import java.util.Collection; import java.sql.Time; import schedule.TimeRestriction; /** * A TimeRestrictionView contains the list of time restrictions. * @author jnpease */ public abstract class TimeRestrictionView { Collection restrictions; /** * Add a time restriction to the restrictions list. * @param start The start time of the restriction. * @param end The end time of the restriction. */ public abstract void add(Time start, Time end); /** * Remove a time restriction from the restrictions list. * @param start The start time of the restriction. * @param end The end time of the restriction. */ public abstract void remove(Time start, Time end); }