package admin; import java.util.Collection; /** * This class contains all of the blackout times for a schedule. * * @author rmcgover * */ public abstract class BlackoutTimeDB { Collection blackoutTimes; /** * This method adds a blackout time. * * @param blackoutTime * The blackout time to be added. * * * pre: // // The blackoutTime should not already exist. // !exists (BlackoutTime other; blackoutTimes.contains(other); blackoutTime.equals(other)); */ abstract void addBlackoutTime(BlackoutTime blackoutTime); /** * This method deletes a blackout time. * * @param blackoutTime * The blackout time to be deleted. * * * pre: // // The blackoutTime should already exist. // exists (BlackoutTime other; blackoutTimes.contains(other); blackoutTime.equals(other)); */ abstract void deleteBlackoutTime(BlackoutTime blackoutTime); }