|
Großmarkt | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--users.User
|
+--market.UPerson
|
+--market.UCustomer
This class implements the customers of the market.
| Field Summary |
| Fields inherited from class market.UPerson |
FRAU, HERR |
| Fields inherited from class users.User |
DEFAULT_PASSWORD_GARBLER, m_lhListeners |
| Constructor Summary | |
UCustomer(String userName)
Creates a new UCustomer. |
|
| Method Summary | |
String |
getCompany()
Gets the customer's company. |
double |
getDiscount()
Computes and returns the customer's current discount. |
CountingStockImpl |
getShoppingBasket()
Gets the customer's shopping basket. |
void |
setCompany(String company)
Sets the customer's company. |
| Methods inherited from class market.UPerson |
compareTo, getAdress, getCity, getDayOfRegistration, getFirstName, getFullName, getMonthsOfMembership, getPostcode, getSalutation, getStreet, getSurname, getTelephone, setAddress, setCity, setFirstName, setFullName, setPostcode, setSalutation, setStreet, setSurname, setTelephone |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public UCustomer(String userName)
userName - the customer's ID.| Method Detail |
public void setCompany(String company)
company - the company to be set.public String getCompany()
public CountingStockImpl getShoppingBasket()
public double getDiscount()
Options
|
Großmarkt | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||