Vous êtes sur la page 1sur 1

Appliance

HVAC
<<enumeration>>
CustomerType
Refrigerator
Stove
Microwave
Dishwasher
<<enumeration>>
ApplianceType
Heating
Ventilation
AirConditioning
<<enumeration>>
HVACType
+ Customer(in name : string, in streetAddress : string, in type : CustomerType) {sequential, documentation = constructor to initialize some of the class attributes with provided parameter variables}
+ getName() : string {sequential, documentation = getter method for Name attribute}
+ setName(in name : string) : void {sequential, documentation = setter method for Name attribute}
+ getPhoneNumber() : string {sequential, documentation = getter method for PhoneNumber attribute}
+ isValidPhoneNumber(in phoneNumber : string) : static boolean {sequential, documentation = checker method of valid value for PhoneNumber attribute}
+ setPhoneNumber(in phoneNumber : string) : boolean {sequential, documentation = setter method for PhoneNumber attribute}
+ getStreetAddress() : string {sequential, documentation = getter method for StreetAddress attribute}
+ setStreetAddress(in streetAddress : string) : void {sequential, documentation = setter method for StreetAddress attribute}
+ getZIP() : string {sequential, documentation = getter method for ZIP attribute}
+ isValidZIP(in zIP : string) : static boolean {sequential, documentation = checker method of valid value for ZIP attribute}
+ setZIP(in zIP : string) : boolean {sequential, documentation = setter method for ZIP attribute}
+ getType() : CustomerType {sequential, documentation = getter method for Type attribute}
+ setType(in type : CustomerType) : void {sequential, documentation = setter method for Type attribute}
+ getAccountNumber() : int {sequential, documentation = getter method for AccountNumber attribute}
+ toString() : string {sequential, documentation = method for generating a string containing all the necessary Customer details}
+ getCustomerByPhoneNumber(in customers : ArrayList<Customer>, in phoneNumber : string) : static Customer {sequential, documentation = method for retrieving a Customer object from a list of Customer objects based on a
provided parameter variable}
- BaseAccountNumber : static int = 100
- AccountNumber : int
- Name : string
- PhoneNumber : string
- StreetAddress : string
- ZIP : string
- Type : CustomerType
Customer
+ ApplianceCustomer(in name : string, in streetAddress : string, in type : CustomerType) {sequential, documentation =
constructor to initialize some of the class attributes by calling the base or super class constructor with provided parameter
variables}
+ getAppliances() : ArrayList<ApplianceType> {sequential, documentation = getter method for Appliances attribute}
+ addApplianceType(in applianceType : ApplianceType) : void {sequential, documentation = method to add a new appliance
to the existing list of Appliances}
+ getModelNumbers() : ArrayList<string> {sequential, documentation = getter method for ModelNumbers attribute}
+ isValidModelNumber(in modelNumber : string) : static boolean {sequential, documentation = checker method of valid value
of one model number for ModelNumbers attribute}
+ addModelNumber(in modelNumber : string) : string {sequential, documentation = method to add a new model number to
the existing list of ModelNumbers}
+ getReplacementCosts() : ArrayList<oat> {sequential, documentation = getter method for ReplacementCosts attribute}
+ addReplacementCost(in replacementCost : oat) : string {sequential, documentation = method to add a new replacement
cost to the existing list of ReplacementCosts}
+ toString() : string {sequential, documentation = method for generating a string containing all the necessary
ApplianceCustomer details}
- Appliances : ArrayList<ApplianceType>
- ModelNumbers : ArrayList<string>
- ReplacementCosts : ArrayList<oat>
ApplianceCustomer
+ HVACCustomer(in name : string, in streetAddress : string, in
type : CustomerType) {sequential, documentation = constructor
to initialize some of the class attributes by calling the base or
super class constructor with provided parameter variables}
+ addHVAC(in hVACType : HVACType, in vendorName :
string) : void {sequential, documentation = setter method for both
HVAC and VendorName attribute}
+ getHVAC() : HVACType {sequential, documentation = getter
method for HVAC attribute}
+ getVendorName() : string {sequential, documentation = getter
method for VendorName attribute}
+ toString() : string {sequential, documentation = method for
generating a string containing all the necessary HVACCustomer
details}
- HVAC : HVACType
- VendorName : string
HVACCustomer

Vous aimerez peut-être aussi