DME
Class DME4CCustomer

java.lang.Object
  |
  +--DME.DME4CCustomer

public class DME4CCustomer
extends java.lang.Object

DME4CCustomer class for the creation of customer electrial service objects with associated attributes and methods.


Field Summary
static java.lang.String DME_PANE_TITLE
           
 
Constructor Summary
DME4CCustomer()
          Initialize (create default values for) instance variables that includes customer number and name, customer type, service type, meter reading day/month/year and kilowatt hours
 
Method Summary
 java.lang.String getCustomerName()
          Provides the current value of the customer name
 int getCustomerNumber()
          Provides the current value of the customer number
 java.lang.String getCustomerType()
          Provides the current value of the customer type
 int getKilowattHours()
          Provides the current value of the kilowatt hours used
 int getMeterReadingDay()
          Provides the current value of the meter reading day
 int getMeterReadingMonth()
          Provides the current value of the meter reading month
 int getMeterReadingYear()
          Provides the current value of the meter reading year
 int getServiceType()
          Provides the current value of the service type
 void setCustomerName()
          Controls prompting the user for the customer name (a string variable)
 void setCustomerNumber()
          Controls prompting the user for the customer number (an integer variable)
 void setCustomerType()
          Controls prompting the user for the customer type (a string variable with valid values of R, C or G)
 void setKilowattHours()
          Controls prompting the user for the number of kilowatt hours used (an integer variable)
 void setMeterReadingDay()
          Controls prompting the user for the meter reading day (an integer variable)
 void setMeterReadingMonth()
          Controls prompting the user for the meter reading month (an integer variable)
 void setMeterReadingYear()
          Controls prompting the user for the meter reading year (an integer variable)
 void setServiceType()
          Controls prompting the user for the service type (an integer variable with valid values of 1 or 2)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DME_PANE_TITLE

public static final java.lang.String DME_PANE_TITLE
See Also:
Constant Field Values
Constructor Detail

DME4CCustomer

public DME4CCustomer()
Initialize (create default values for) instance variables that includes customer number and name, customer type, service type, meter reading day/month/year and kilowatt hours

Method Detail

setCustomerNumber

public void setCustomerNumber()
Controls prompting the user for the customer number (an integer variable)


setCustomerName

public void setCustomerName()
Controls prompting the user for the customer name (a string variable)


setCustomerType

public void setCustomerType()
Controls prompting the user for the customer type (a string variable with valid values of R, C or G)


setServiceType

public void setServiceType()
Controls prompting the user for the service type (an integer variable with valid values of 1 or 2)


setMeterReadingDay

public void setMeterReadingDay()
Controls prompting the user for the meter reading day (an integer variable)


setMeterReadingMonth

public void setMeterReadingMonth()
Controls prompting the user for the meter reading month (an integer variable)


setMeterReadingYear

public void setMeterReadingYear()
Controls prompting the user for the meter reading year (an integer variable)


setKilowattHours

public void setKilowattHours()
Controls prompting the user for the number of kilowatt hours used (an integer variable)


getCustomerNumber

public int getCustomerNumber()
Provides the current value of the customer number


getCustomerName

public java.lang.String getCustomerName()
Provides the current value of the customer name


getCustomerType

public java.lang.String getCustomerType()
Provides the current value of the customer type


getServiceType

public int getServiceType()
Provides the current value of the service type


getMeterReadingDay

public int getMeterReadingDay()
Provides the current value of the meter reading day


getMeterReadingMonth

public int getMeterReadingMonth()
Provides the current value of the meter reading month


getMeterReadingYear

public int getMeterReadingYear()
Provides the current value of the meter reading year


getKilowattHours

public int getKilowattHours()
Provides the current value of the kilowatt hours used