Package model.city
Class SocialSecurity
java.lang.Object
model.city.SocialSecurity
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Dies existing citizens and aging them.double
collectTax
(double taxRate) Calculate the total tax revenue from taxint
Calculates the spend of pension
-
Constructor Details
-
SocialSecurity
-
-
Method Details
-
census
Dies existing citizens and aging them. -
payPension
public int payPension()Calculates the spend of pension- Returns:
- the total amount of pension to be paid by city.
-
collectTax
public double collectTax(double taxRate) Calculate the total tax revenue from tax- Parameters:
taxRate
- current tax rate- Returns:
- total tax from work forces.
-