Class KeyFunction3

java.lang.Object
simpaths.model.taxes.KeyFunction3
All Implemented Interfaces:
IKeyFunction

public class KeyFunction3 extends Object implements IKeyFunction
CLASS TO MANAGE ONE SPECIFICATION FOR EVALUATING DONOR KEYS USED TO IMPUTE TAX AND BENEFIT PAYMENTS
  • Constructor Summary

    Constructors
    Constructor
    Description
    CONSTRUCTORS
  • Method Summary

    Modifier and Type
    Method
    Description
    evaluateKeys(int simYear, int priceYear, int age, int numberMembersOver17, int numberChildrenUnder5, int numberChildren5To9, int numberChildren10To17, double hoursWorkedPerWeekMan, double hoursWorkedPerWeekWoman, int dlltsdMan, int dlltsdWoman, int careProvision, double originalIncomePerWeek, double secondIncomePerWeek, double childcareCostPerWeek)
    METHOD TO EVALUATE DONOR KEYS FOR COARSE EXACT MATCHING
    int
    getMatchFeatureIndex(MatchFeature feature, int taxDBRegime, int keyValue)
     
    int
    getStatePensionAge(int age, int simYear)
    WORKER METHOD TO PROVIDE STATE PENSION AGE AND YEAR
    WORKER METHOD TO CALL OR INITIALISE THE COUNTER MAPPING FOR DONOR KEYS
    boolean[]
    METHOD TO INDICATE IF TAX UNIT IS MEMBER OF 'LOW INCOME' CATEGORY FOR DATABASE MATCHING

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • KeyFunction3

      public KeyFunction3()
      CONSTRUCTORS
  • Method Details

    • evaluateKeys

      public Integer[] evaluateKeys(int simYear, int priceYear, int age, int numberMembersOver17, int numberChildrenUnder5, int numberChildren5To9, int numberChildren10To17, double hoursWorkedPerWeekMan, double hoursWorkedPerWeekWoman, int dlltsdMan, int dlltsdWoman, int careProvision, double originalIncomePerWeek, double secondIncomePerWeek, double childcareCostPerWeek)
      METHOD TO EVALUATE DONOR KEYS FOR COARSE EXACT MATCHING
      Specified by:
      evaluateKeys in interface IKeyFunction
      Parameters:
      simYear - simulated year
      priceYear - year of prices used to measure financial statistics
      age - simulated age
      numberMembersOver17 - family members aged 18+
      numberChildrenUnder5 - family members under age 5
      numberChildren5To9 - family members aged 5 to 9
      numberChildren10To17 - family members aged 10 to 17
      hoursWorkedPerWeekMan - employment hours per week of adult male
      hoursWorkedPerWeekWoman - employment hours per week of adult female
      dlltsdMan - disability status of man
      dlltsdWoman - disability status of woman
      originalIncomePerWeek - original income per week of family (possibly negative)
      Returns:
      Integer list of keys, ordered from most fine (0) to most coarse (2)
    • getMatchFeatureIndex

      public int getMatchFeatureIndex(MatchFeature feature, int taxDBRegime, int keyValue)
      Specified by:
      getMatchFeatureIndex in interface IKeyFunction
    • isLowIncome

      public boolean[] isLowIncome(Integer[] keys)
      METHOD TO INDICATE IF TAX UNIT IS MEMBER OF 'LOW INCOME' CATEGORY FOR DATABASE MATCHING
      Specified by:
      isLowIncome in interface IKeyFunction
    • getStatePensionAge

      public int getStatePensionAge(int age, int simYear)
      WORKER METHOD TO PROVIDE STATE PENSION AGE AND YEAR
      Parameters:
      age - age of eldest family member
      simYear - simulated year
      Returns:
      state pension age
    • getTaxdbCounter

      public Map<MatchFeature, Map<Integer,Integer>> getTaxdbCounter()
      WORKER METHOD TO CALL OR INITIALISE THE COUNTER MAPPING FOR DONOR KEYS
      Specified by:
      getTaxdbCounter in interface IKeyFunction
      Returns:
      taxdbCounter populated as implied by current matching function