Class SetAvailabilityPage

java.lang.Object
Common.UserInterface
UI.AppointmentPages.SetAvailabilityPage

public class SetAvailabilityPage extends UserInterface
The SetAvailabilityPage class provides functionality for setting the availability schedule of a doctor. It extends UserInterface and interacts with the DoctorSchedule and DoctorAM managers to manage appointment slots.
  • Constructor Details

    • SetAvailabilityPage

      public SetAvailabilityPage(Account doctor, DoctorSchedule doctorSchedule, DoctorAM doctorAM)
      Constructs a SetAvailabilityPage with the specified Account, DoctorSchedule, and DoctorAM instances.
      Parameters:
      doctor - the account of the doctor
      doctorSchedule - the schedule of the doctor
      doctorAM - the manager used to access and manage doctor's appointments
  • Method Details

    • setAvailability

      public void setAvailability()
      Allows the doctor to set their availability by specifying a date and time range. It prompts for input, validates it, and updates the doctor's schedule accordingly.