Class KeyFunction1

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

public class KeyFunction1 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)
     
    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

    • KeyFunction1

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