package caltool.model.schedule;

import caltool.model.caldb.*;
import mvp.*;

/****
 *
 * Class Schedule is the top-level model class in the
 * schedule package.  It provides methods to schedule the
 * four types of calendar item.  ...
 *
 * @author Gene Fisher (gfisher@calpoly.edu)
 * @version 9nov15
 *
 */




public class Schedule extends Model {



    // Skipping down to scheduleEvent.java ..













  /**
   * ScheduleEvent adds the given Event to the given
   * CalendarDB, if an event of the same start date and
   * title is not already scheduled.
   */
  public void scheduleEvent(Event event) {
      System.out.println("In Schedule.scheduleEvent.");
  }










  /**
   * Change the given old appointment to the given new one
   * in the current calendar.
   */
  public void changeAppointment(
    Appointment oldAppt, Appointment newAppt) {
      System.out.println("In Schedule.changeAppointment.");
  }

  /**
   * Delete the given appointment from the current calendar.
   */
  public void deleteAppointment(Appointment appt) {
      System.out.println("In Schedule.deleteAppointment.");
  }


  /*-*
   * Access methods
   */

  /**
   * Return the categories component.
   */
  public Categories getCategories() {
      return categories;
  }


  /*-*
   * Derived data fields
   */

  /** Category list in which scheduled item categories are defined */
  protected Categories categories;


  /*-*
   * Process data fields
   */

  /** Calendar database in which scheduled items are stored */
  protected CalendarDB calDB;

}