Package UI.AppointmentPages
Class SetAvailabilityPage
java.lang.Object
Common.UserInterface
UI.AppointmentPages.SetAvailabilityPage
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.-
Field Summary
Fields inherited from class Common.UserInterface
scanner
-
Constructor Summary
ConstructorsConstructorDescriptionSetAvailabilityPage
(Account doctor, DoctorSchedule doctorSchedule, DoctorAM doctorAM) Constructs aSetAvailabilityPage
with the specifiedAccount
,DoctorSchedule
, andDoctorAM
instances. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Allows the doctor to set their availability by specifying a date and time range.Methods inherited from class Common.UserInterface
displayError, displaySuccess, getIntInput, getNumericString, getValidatedInt, getValidatedString, pauseAndView
-
Constructor Details
-
SetAvailabilityPage
Constructs aSetAvailabilityPage
with the specifiedAccount
,DoctorSchedule
, andDoctorAM
instances.- Parameters:
doctor
- the account of the doctordoctorSchedule
- the schedule of the doctordoctorAM
- 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.
-