Package model.city

Class SocialSecurity

java.lang.Object
model.city.SocialSecurity
All Implemented Interfaces:
Serializable

public class SocialSecurity extends Object implements Serializable
See Also:
  • Constructor Details

    • SocialSecurity

      public SocialSecurity(CityRegistry cityRegistry)
  • Method Details

    • census

      public void census(GameModel gm)
      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.