|
Großmarkt | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectusers.User
market.UPerson
market.UStaffer
public class UStaffer
A market's staffer. Can be warehouse worker, seller or manager.
Field Summary | |
---|---|
static String |
MANAGER
|
static String |
SELLER
|
static String |
WAREHOUSE_WORKER
|
Fields inherited from class market.UPerson |
---|
FRAU, HERR |
Fields inherited from class users.User |
---|
DEFAULT_PASSWORD_GARBLER, m_lhListeners |
Constructor Summary | |
---|---|
UStaffer(String userName,
String qualification)
Creates a new UStaffer. |
Method Summary | |
---|---|
Value |
computeDismissalCompensation()
Computes and returns the money a staffer gets, if he or she is dismissed. |
String |
getQualification()
Gets the staffer's qualification. |
IntegerValue |
getSalary()
Gets the staffer's salary. |
void |
setQualification(String s)
Sets the staffer's qualification. |
void |
setSalary(int salary)
Sets the staffer's salary. |
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 users.User |
---|
addCapabilityDataListener, equals, fireCapabilitiesAdded, fireCapabilitiesReplaced, garblePassWD, getCapability, getCapabilityCheckBox, getGlobalPassWDGarbler, getName, isPassWd, loggedOff, loggedOn, removeCapabilityDataListener, setCapabilities, setCapability, setGlobalPassWDGarbler, setPassWd, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String SELLER
public static final String WAREHOUSE_WORKER
public static final String MANAGER
Constructor Detail |
---|
public UStaffer(String userName, String qualification)
userName
- the staffer's ID.Method Detail |
---|
public void setSalary(int salary)
salary
- the salary to be set.public IntegerValue getSalary()
public String getQualification()
public void setQualification(String s)
s
- the qualification's denotation.public Value computeDismissalCompensation()
Options
|
Großmarkt | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |