Class SimPathsModel

java.lang.Object
microsim.engine.AbstractSimulationManager
simpaths.model.SimPathsModel
All Implemented Interfaces:
microsim.engine.SimulationManager, microsim.event.EventListener

public class SimPathsModel extends microsim.engine.AbstractSimulationManager implements microsim.event.EventListener
CLASS TO MANAGE SIMULATION PROJECTIONS
  • Field Details

    • addRegressionStochasticComponent

      public boolean addRegressionStochasticComponent
    • fixRegressionStochasticComponent

      public boolean fixRegressionStochasticComponent
    • commentsOn

      public boolean commentsOn
    • debugCommentsOn

      public boolean debugCommentsOn
    • donorFinderCommentsOn

      public boolean donorFinderCommentsOn
    • labourMarketCovid19On

      public boolean labourMarketCovid19On
    • projectFormalChildcare

      public boolean projectFormalChildcare
    • donorPoolAveraging

      public boolean donorPoolAveraging
    • taxDonorUpratingByWage

      public boolean taxDonorUpratingByWage
    • tmpPeopleAssigned

      public int tmpPeopleAssigned
  • Constructor Details

    • SimPathsModel

      public SimPathsModel(Country country, int startYear)
      CONSTRUCTOR FOR SIMULATION PROJECTIONS
      Parameters:
      country -
      startYear -
    • SimPathsModel

      public SimPathsModel(Country country)
  • Method Details

    • getPersistDatabasePath

      public static String getPersistDatabasePath()
    • setPersistDatabasePath

      public static void setPersistDatabasePath(String persistDatabasePath)
    • setPersistPopulation

      public static void setPersistPopulation(boolean persistPopulation)
    • isFirstRun

      public boolean isFirstRun()
    • setFirstRun

      public void setFirstRun(boolean firstRun)
    • buildObjects

      public void buildObjects()
      METHOD TO BUILD THE MODEL SO THAT IT CAN BE EXECUTED This method is launched by JAS-mine when you press the 'Build simulation model' button of the GUI
      Specified by:
      buildObjects in interface microsim.engine.SimulationManager
      Specified by:
      buildObjects in class microsim.engine.AbstractSimulationManager
    • buildSchedule

      public void buildSchedule()
      METHOD TO PROJECT THE POPULATION THROUGH TIME This method is run once for each simulated year after the simulation is launched by JAS-mine when you press the 'Start simulation' button of the GUI. This method defines the order that simulated processes are executed. There are three key categories of processes: Processes These are processes applicable to the simulation population in aggregate Person.Processes Defined in Person Class of model package. These modules define processes specific to simulated 'individuals' BenefitUnit.Processes Defined in BenefitUnit Class of model package. These modules define processes specific to simulated 'benefitUnits' All processes are initialised as 'Events' within the JAS-mine simulation engine First year involves fewer processes than subsequent years, as many of the simulated characteristics are described by the input data Characteristics simulated in the first year limited to control variables for the utility maximisation problem and states affected by control variables (time use, transfer system, consumption/savings, and mental health 2 modules). First year also allows for alignment routines
      Specified by:
      buildSchedule in interface microsim.engine.SimulationManager
      Specified by:
      buildSchedule in class microsim.engine.AbstractSimulationManager
    • onEvent

      public void onEvent(Enum<?> type)
      Specified by:
      onEvent in interface microsim.event.EventListener
    • unionMatching

      protected void unionMatching(boolean alignmentRun)
      Parameters:
      alignmentRun - If true, real unions will not be formed. Instead, flags will be set for individual to indicate those who would have formed a union.
    • unionMatchingNoRegion

      protected void unionMatchingNoRegion(boolean alignmentRun)
    • activityAlignmentSingleMales

      public void activityAlignmentSingleMales()
    • activityAlignmentSingleACMales

      public void activityAlignmentSingleACMales()
    • activityAlignmentSingleACFemales

      public void activityAlignmentSingleACFemales()
    • activityAlignmentSingleFemales

      public void activityAlignmentSingleFemales()
    • activityAlignmentSingleDepMale

      public void activityAlignmentSingleDepMale()
    • activityAlignmentSingleDepFemale

      public void activityAlignmentSingleDepFemale()
    • activityAlignmentCouples

      public void activityAlignmentCouples()
    • getStartYear

      public Integer getStartYear()
    • getPersons

      public Set<Person> getPersons()
    • getBenefitUnits

      public Set<BenefitUnit> getBenefitUnits()
    • getHouseholds

      public Set<Household> getHouseholds()
    • getEndYear

      public Integer getEndYear()
    • getMaxAge

      public Integer getMaxAge()
    • setMaxAge

      public void setMaxAge(Integer maxAge)
    • getPerson

      public Person getPerson(Long id)
    • getCountry

      public Country getCountry()
    • setCountry

      public void setCountry(Country country)
    • getProjectMortality

      public boolean getProjectMortality()
    • setProjectMortality

      public void setProjectMortality(boolean projectMortality)
    • getProjectFormalChildcare

      public boolean getProjectFormalChildcare()
    • setProjectFormalChildcare

      public void setProjectFormalChildcare(boolean projectFormalChildcare)
    • getDonorPoolAveraging

      public boolean getDonorPoolAveraging()
    • setDonorPoolAveraging

      public void setDonorPoolAveraging(boolean val)
    • getTaxDonorUpratingByWage

      public boolean getTaxDonorUpratingByWage()
    • setTaxDonorUpratingByWage

      public void setTaxDonorUpratingByWage(boolean val)
    • getPopSize

      public Integer getPopSize()
    • setPopSize

      public void setPopSize(Integer popSize)
    • getYear

      public int getYear()
    • setStartYear

      public void setStartYear(Integer startYear)
    • setEndYear

      public void setEndYear(Integer endYear)
    • getTimeTrendStopsIn

      public Integer getTimeTrendStopsIn()
    • getTimeTrendStopsInMonetaryProcesses

      public Integer getTimeTrendStopsInMonetaryProcesses()
    • isFixTimeTrend

      public boolean isFixTimeTrend()
    • setFixTimeTrend

      public void setFixTimeTrend(boolean fixTimeTrend)
    • setTimeTrendStopsIn

      public void setTimeTrendStopsIn(Integer timeTrendStopsIn)
    • getFixRandomSeed

      public Boolean getFixRandomSeed()
    • setFixRandomSeed

      public void setFixRandomSeed(Boolean fixRandomSeed)
    • getRandomSeedIfFixed

      public Long getRandomSeedIfFixed()
    • setRandomSeedIfFixed

      public void setRandomSeedIfFixed(Long randomSeedIfFixed)
    • setInterestRateInnov

      public void setInterestRateInnov(double innov)
    • setDisposableIncomeFromLabourInnov

      public void setDisposableIncomeFromLabourInnov(double innov)
    • getSavingRate

      public Double getSavingRate()
    • setSavingRate

      public void setSavingRate(Double savingRate)
    • getPersonsToMatch

      public Map<Gender, LinkedHashMap<Region, Set<Person>>> getPersonsToMatch()
    • getNumberOfSimulatedPersons

      public int getNumberOfSimulatedPersons()
    • getNumberOfSimulatedHouseholds

      public int getNumberOfSimulatedHouseholds()
    • getPopulationProjectionByAge0_18

      public int getPopulationProjectionByAge0_18()
    • getPopulationProjectionByAge0

      public int getPopulationProjectionByAge0()
    • getPopulationProjectionByAge2_10

      public int getPopulationProjectionByAge2_10()
    • getPopulationProjectionByAge19_25

      public int getPopulationProjectionByAge19_25()
    • getPopulationProjectionByAge40_59

      public int getPopulationProjectionByAge40_59()
    • getPopulationProjectionByAge60_79

      public int getPopulationProjectionByAge60_79()
    • getPopulationProjectionByAge80_100

      public int getPopulationProjectionByAge80_100()
    • getPopulationProjectionByAge

      public int getPopulationProjectionByAge(int startAge, int endAge)
    • getWeightedNumberOfPersons

      public double getWeightedNumberOfPersons()
    • getWeightedNumberOfHouseholds

      public double getWeightedNumberOfHouseholds()
    • getWeightedNumberOfHouseholds80minus

      public double getWeightedNumberOfHouseholds80minus()
    • getInitialHoursWorkedWeekly

      public Map<Long,Double> getInitialHoursWorkedWeekly()
    • isInitialisePotentialEarningsFromDatabase

      public boolean isInitialisePotentialEarningsFromDatabase()
    • setInitialisePotentialEarningsFromDatabase

      public void setInitialisePotentialEarningsFromDatabase(boolean initialisePotentialEarningsFromDatabase)
    • getLabourMarket

      public LabourMarket getLabourMarket()
    • isUseWeights

      public boolean isUseWeights()
    • setUseWeights

      public void setUseWeights(boolean useWeights)
    • getWealthModule

      public WealthModule getWealthModule()
    • getUnionMatchingMethod

      public UnionMatchingMethod getUnionMatchingMethod()
    • setUnionMatchingMethod

      public void setUnionMatchingMethod(String value)
    • setUnionMatchingMethod

      public void setUnionMatchingMethod(UnionMatchingMethod unionMatchingMethod)
    • isAlignFertility

      public boolean isAlignFertility()
    • setAlignFertility

      public void setAlignFertility(boolean alignFertility)
    • setSaveImperfectTaxDBMatches

      public void setSaveImperfectTaxDBMatches(boolean flag)
    • setAlignPopulation

      public void setAlignPopulation(boolean flag)
    • setBequestSyntheticRecipientCount

      public void setBequestSyntheticRecipientCount(int count)
    • getInheritanceModule

      public InheritanceModule getInheritanceModule()
    • setAlignCohabitation

      public void setAlignCohabitation(boolean flag)
    • setAlignInSchool

      public void setAlignInSchool(boolean flag)
    • isAlignInSchool

      public boolean isAlignInSchool()
    • setAlignRetirement

      public void setAlignRetirement(boolean flag)
    • isAlignRetirement

      public boolean isAlignRetirement()
    • isAlignPopulation

      public boolean isAlignPopulation()
    • isEnableIntertemporalOptimisations

      public boolean isEnableIntertemporalOptimisations()
    • getInSchoolAdjustment

      public double getInSchoolAdjustment()
    • getRetirementAdjustment

      public double getRetirementAdjustment()
    • getRetirementAdjustment

      public double getRetirementAdjustment(int year)
      Shift to the R1a/R1b probit index applied by the Retirement process: 0 unless retirement alignment is on; the value solved for the year up to RETIREMENT_ALIGNMENT_END_YEAR; and the value of that last year afterwards.
    • getPartnershipAdjustment

      public double getPartnershipAdjustment()
    • getPartnershipAdjustment

      public double getPartnershipAdjustment(int year)
    • getFertilityAdjustment

      public double getFertilityAdjustment()
    • getFertilityAdjustment

      public double getFertilityAdjustment(int year)
    • setYear

      public void setYear(int year)
    • getProjectSocialCare

      public boolean getProjectSocialCare()
    • setProjectSocialCare

      public void setProjectSocialCare(boolean projectSocialCare)
    • getEnableIntertemporalOptimisations

      public boolean getEnableIntertemporalOptimisations()
    • setEnableIntertemporalOptimisations

      public void setEnableIntertemporalOptimisations(boolean enableIntertemporalOptimisations)
    • getUseSavedBehaviour

      public boolean getUseSavedBehaviour()
    • setUseSavedBehaviour

      public void setUseSavedBehaviour(boolean useSavedBehaviour)
    • getReadGrid

      public String getReadGrid()
    • setReadGrid

      public void setReadGrid(String readGrid)
    • getEmploymentOptionsOfPrincipalWorker

      public int getEmploymentOptionsOfPrincipalWorker()
    • setEmploymentOptionsOfPrincipalWorker

      public void setEmploymentOptionsOfPrincipalWorker(int employmentOptionsOfPrincipalWorker)
    • getEmploymentOptionsOfSecondaryWorker

      public int getEmploymentOptionsOfSecondaryWorker()
    • setEmploymentOptionsOfSecondaryWorker

      public void setEmploymentOptionsOfSecondaryWorker(int employmentOptionsOfSecondaryWorker)
    • getResponsesToHealth

      public boolean getResponsesToHealth()
    • setResponsesToHealth

      public void setResponsesToHealth(boolean responsesToHealth)
    • getResponsesToDisability

      public boolean getResponsesToDisability()
    • setResponsesToDisability

      public void setResponsesToDisability(boolean responsesToDisability)
    • getMinAgeForPoorHealth

      public int getMinAgeForPoorHealth()
    • setMinAgeForPoorHealth

      public void setMinAgeForPoorHealth(int minAgeForPoorHealth)
    • getScalingFactor

      public double getScalingFactor()
    • getResponsesToEducation

      public boolean getResponsesToEducation()
    • setResponsesToEducation

      public void setResponsesToEducation(boolean responsesToEducation)
    • getResponsesToRegion

      public boolean getResponsesToRegion()
    • setResponsesToRegion

      public void setResponsesToRegion(boolean responsesToRegion)
    • getFlagDefaultToTimeSeriesAverages

      public boolean getFlagDefaultToTimeSeriesAverages()
    • setFlagDefaultToTimeSeriesAverages

      public void setFlagDefaultToTimeSeriesAverages(boolean val)
    • getResponsesToLowWageOffer

      public boolean getResponsesToLowWageOffer()
    • setResponsesToLowWageOffer

      public void setResponsesToLowWageOffer(boolean val)
    • getResponsesToRetirement

      public boolean getResponsesToRetirement()
    • setResponsesToRetirement

      public void setResponsesToRetirement(boolean val)
    • getResponsesToPension

      public boolean getResponsesToPension()
    • setResponsesToPension

      public void setResponsesToPension(boolean val)
    • getPolicyNameIncomeMedianMap

      public Map<String,Double> getPolicyNameIncomeMedianMap()
    • getUpratedMedianIncomeForCurrentYear

      public Double getUpratedMedianIncomeForCurrentYear()
    • isLabourMarketCovid19On

      public boolean isLabourMarketCovid19On()
    • setLabourMarketCovid19On

      public void setLabourMarketCovid19On(boolean labourMarketCovid19On)
    • getCollector

      public SimPathsCollector getCollector()
    • setCollector

      public void setCollector(SimPathsCollector collector)
    • isAlignCohabitation

      public boolean isAlignCohabitation()
    • isAlignEmployment

      public boolean isAlignEmployment()
    • clearPersonsToMatch

      public void clearPersonsToMatch()
    • getCounterErrorH1a

      public int getCounterErrorH1a()
    • getCounterErrorH1b

      public int getCounterErrorH1b()
    • addCounterErrorH1a

      public void addCounterErrorH1a()
    • addCounterErrorH1b

      public void addCounterErrorH1b()