Großmarkt

market
Class Options

java.lang.Object
  |
  +--market.Options
All Implemented Interfaces:
Serializable

public class Options
extends Object
implements Serializable

Contains some variables which affect the computation of the discount and the dismissal compensation.

See Also:
Serialized Form

Constructor Summary
Options()
           
 
Method Summary
 int getDiscountRange()
           
 int getDiscountValue()
           
 double getFractionOfWages()
           
 double getMaxDiscount()
           
 double getTimeOfEmployment()
           
 void setDiscountRange(int range)
          Sets the number of months which have influence on the discount.
 void setDiscountValue(int value)
          Sets the money in Euros that are worth one percent discount.
 void setFractionOfWages(double fraction)
          Sets the influence the current wage has on the computation of the dismissal compensation.
 void setMaxDiscount(double max)
          Sets the maximal discount that can be allowed.
 void setTimeOfEmployment(double fraction)
          Sets the influence the time the worker has been employed has on the computation of the dismissal compensation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Options

public Options()
Method Detail

getDiscountRange

public int getDiscountRange()
Returns:
the number of months which have influence on the discount.

setDiscountRange

public void setDiscountRange(int range)
Sets the number of months which have influence on the discount.

Parameters:
range - the number of months

getMaxDiscount

public double getMaxDiscount()
Returns:
the maximal discount that can be allowed.

setMaxDiscount

public void setMaxDiscount(double max)
Sets the maximal discount that can be allowed.

Parameters:
max - the maximal discount.

getDiscountValue

public int getDiscountValue()
Returns:
the money in Euros that are worth one percent discount.

setDiscountValue

public void setDiscountValue(int value)
Sets the money in Euros that are worth one percent discount.

Parameters:
value - the money in Euros.

getFractionOfWages

public double getFractionOfWages()
Returns:
the influence the current wage has on the computation of the dismissal compensation.

setFractionOfWages

public void setFractionOfWages(double fraction)
Sets the influence the current wage has on the computation of the dismissal compensation.

Parameters:
fraction - the influence of the wage in percent.

getTimeOfEmployment

public double getTimeOfEmployment()
Returns:
the influence the time the worker has been employed has on the computation of the dismissal compensation.

setTimeOfEmployment

public void setTimeOfEmployment(double fraction)
Sets the influence the time the worker has been employed has on the computation of the dismissal compensation.

Parameters:
fraction - the influence of the time in percent.

Großmarkt