Uses of Enum Class
Model.ServiceType
Package
Description
The Controller package contains classes that handle the control and logic of the application.
The Model package contains classes that represent the data and business logic of the application.
The View package contains classes related to the user interface (UI) of the application.
-
Uses of ServiceType in Controller
Modifier and TypeFieldDescriptionprivate static Map<ServiceType,
Double[]> ServiceController.servicePrices
A map that associatesServiceType
with an array ofDouble
to represent service prices.Modifier and TypeMethodDescriptionstatic double
ServiceController.getServicePrice
(ServiceType serviceType) Retrieves the service price for a specific service type.static double
ServiceController.getUnitPrice
(ServiceType serviceType) Retrieves the unit price for a specific service type.static void
ServiceController.updateServiceCharges
(ServiceType serviceType, double newServiceCharges) Updates the service charges for a specific service type and saves the changes.static void
ServiceController.updateUnitCharges
(ServiceType serviceType, double newUnitCharges) Updates the unit charges for a specific service type and saves the changes. -
Uses of ServiceType in Model
Modifier and TypeMethodDescriptionUtilityBill.getType()
Returns the service type associated with the utility bill.static ServiceType
Returns the enum constant of this class with the specified name.static ServiceType[]
ServiceType.values()
Returns an array containing the constants of this enum class, in the order they are declared.Modifier and TypeMethodDescriptionvoid
UtilityBill.setType
(ServiceType type) Sets the service type for the utility bill. -
Uses of ServiceType in View
Modifier and TypeMethodDescriptionprotected void
App.editService
(ServiceType serviceType, double serviceCharges, double unitCharges) Updates the service charges and unit charges for a specific service type.protected void
App.editServicePage
(ServiceType serviceType) Opens the edit service page for a specific service type.ModifierConstructorDescriptionEditServiceView
(App app, ServiceType serviceType) EditServiceView represents a user interface for modifying and saving service pricing details.