Class KeyFunction2

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

public class KeyFunction2 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

    • KeyFunction2

      public KeyFunction2()
      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
    • 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
    • getMatchFeatureIndex

      public int getMatchFeatureIndex(MatchFeature feature, int taxDBRegime, int keyValue)
      Specified by:
      getMatchFeatureIndex 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