Großmarkt

market
Class UStaffer

java.lang.Object
  |
  +--users.User
        |
        +--market.UPerson
              |
              +--market.UStaffer
All Implemented Interfaces:
Comparable, Serializable

public class UStaffer
extends UPerson

A market's staffer. Can be warehouse worker, seller or manager.

See Also:
Serialized Form

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, getCharFromString, getGlobalPassWDGarbler, getName, getStringFromChar, 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

SELLER

public static final String SELLER

WAREHOUSE_WORKER

public static final String WAREHOUSE_WORKER

MANAGER

public static final String MANAGER
Constructor Detail

UStaffer

public UStaffer(String userName,
                String qualification)
Creates a new UStaffer.

Parameters:
userName - the staffer's ID.
Method Detail

setSalary

public void setSalary(int salary)
Sets the staffer's salary.

Parameters:
salary - the salary to be set.

getSalary

public IntegerValue getSalary()
Gets the staffer's salary.

Returns:
the salary.

getQualification

public String getQualification()
Gets the staffer's qualification.

Returns:
the qualification.

setQualification

public void setQualification(String s)
Sets the staffer's qualification.
Can be warehouse worker, seller or manager.

Parameters:
s - the qualification's denotation.

computeDismissalCompensation

public Value computeDismissalCompensation()
Computes and returns the money a staffer gets, if he or she is dismissed.

Returns:
the dismissal compensation.
See Also:
Options

Großmarkt