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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumMETHOD DEFINING PROCESSES APPLICABLE TO THE SIMULATED POPULATION IN AGGREGATE -
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanint -
Constructor Summary
ConstructorsConstructorDescriptionSimPathsModel(Country country) SimPathsModel(Country country, int startYear) CONSTRUCTOR FOR SIMULATION PROJECTIONS -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidMETHOD 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 GUIvoidMETHOD 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.voidintintbooleanintintbooleandoubledoublegetFertilityAdjustment(int year) booleandoubleintintintdoubledoublegetPartnershipAdjustment(int year) static StringintgetPopulationProjectionByAge(int startAge, int endAge) intintintintintintintbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleandoubledoublegetRetirementAdjustment(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.doublebooleanbooleandoubledoubledoubleintgetYear()booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanvoidvoidsetAlignCohabitation(boolean flag) voidsetAlignFertility(boolean alignFertility) voidsetAlignInSchool(boolean flag) voidsetAlignPopulation(boolean flag) voidsetAlignRetirement(boolean flag) voidsetBequestSyntheticRecipientCount(int count) voidsetCollector(SimPathsCollector collector) voidsetCountry(Country country) voidsetDisposableIncomeFromLabourInnov(double innov) voidsetDonorPoolAveraging(boolean val) voidsetEmploymentOptionsOfPrincipalWorker(int employmentOptionsOfPrincipalWorker) voidsetEmploymentOptionsOfSecondaryWorker(int employmentOptionsOfSecondaryWorker) voidsetEnableIntertemporalOptimisations(boolean enableIntertemporalOptimisations) voidsetEndYear(Integer endYear) voidsetFirstRun(boolean firstRun) voidsetFixRandomSeed(Boolean fixRandomSeed) voidsetFixTimeTrend(boolean fixTimeTrend) voidsetFlagDefaultToTimeSeriesAverages(boolean val) voidsetInitialisePotentialEarningsFromDatabase(boolean initialisePotentialEarningsFromDatabase) voidsetInterestRateInnov(double innov) voidsetLabourMarketCovid19On(boolean labourMarketCovid19On) voidvoidsetMinAgeForPoorHealth(int minAgeForPoorHealth) static voidsetPersistDatabasePath(String persistDatabasePath) static voidsetPersistPopulation(boolean persistPopulation) voidsetPopSize(Integer popSize) voidsetProjectFormalChildcare(boolean projectFormalChildcare) voidsetProjectMortality(boolean projectMortality) voidsetProjectSocialCare(boolean projectSocialCare) voidsetRandomSeedIfFixed(Long randomSeedIfFixed) voidsetReadGrid(String readGrid) voidsetResponsesToDisability(boolean responsesToDisability) voidsetResponsesToEducation(boolean responsesToEducation) voidsetResponsesToHealth(boolean responsesToHealth) voidsetResponsesToLowWageOffer(boolean val) voidsetResponsesToPension(boolean val) voidsetResponsesToRegion(boolean responsesToRegion) voidsetResponsesToRetirement(boolean val) voidsetSaveImperfectTaxDBMatches(boolean flag) voidsetSavingRate(Double savingRate) voidsetStartYear(Integer startYear) voidsetTaxDonorUpratingByWage(boolean val) voidsetTimeTrendStopsIn(Integer timeTrendStopsIn) voidsetUnionMatchingMethod(String value) voidsetUnionMatchingMethod(UnionMatchingMethod unionMatchingMethod) voidsetUseSavedBehaviour(boolean useSavedBehaviour) voidsetUseWeights(boolean useWeights) voidsetYear(int year) protected voidunionMatching(boolean alignmentRun) protected voidunionMatchingNoRegion(boolean alignmentRun) Methods inherited from class microsim.engine.AbstractSimulationManager
dispose, getEngine, getId, setEngine
-
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
CONSTRUCTOR FOR SIMULATION PROJECTIONS- Parameters:
country-startYear-
-
SimPathsModel
-
-
Method Details
-
getPersistDatabasePath
-
setPersistDatabasePath
-
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:
buildObjectsin interfacemicrosim.engine.SimulationManager- Specified by:
buildObjectsin classmicrosim.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:
buildSchedulein interfacemicrosim.engine.SimulationManager- Specified by:
buildSchedulein classmicrosim.engine.AbstractSimulationManager
-
onEvent
- Specified by:
onEventin interfacemicrosim.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
-
getPersons
-
getBenefitUnits
-
getHouseholds
-
getEndYear
-
getMaxAge
-
setMaxAge
-
getPerson
-
getCountry
-
setCountry
-
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
-
setPopSize
-
getYear
public int getYear() -
setStartYear
-
setEndYear
-
getTimeTrendStopsIn
-
getTimeTrendStopsInMonetaryProcesses
-
isFixTimeTrend
public boolean isFixTimeTrend() -
setFixTimeTrend
public void setFixTimeTrend(boolean fixTimeTrend) -
setTimeTrendStopsIn
-
getFixRandomSeed
-
setFixRandomSeed
-
getRandomSeedIfFixed
-
setRandomSeedIfFixed
-
setInterestRateInnov
public void setInterestRateInnov(double innov) -
setDisposableIncomeFromLabourInnov
public void setDisposableIncomeFromLabourInnov(double innov) -
getSavingRate
-
setSavingRate
-
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
-
isInitialisePotentialEarningsFromDatabase
public boolean isInitialisePotentialEarningsFromDatabase() -
setInitialisePotentialEarningsFromDatabase
public void setInitialisePotentialEarningsFromDatabase(boolean initialisePotentialEarningsFromDatabase) -
getLabourMarket
-
isUseWeights
public boolean isUseWeights() -
setUseWeights
public void setUseWeights(boolean useWeights) -
getWealthModule
-
getUnionMatchingMethod
-
setUnionMatchingMethod
-
setUnionMatchingMethod
-
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
-
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
-
setReadGrid
-
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
-
getUpratedMedianIncomeForCurrentYear
-
isLabourMarketCovid19On
public boolean isLabourMarketCovid19On() -
setLabourMarketCovid19On
public void setLabourMarketCovid19On(boolean labourMarketCovid19On) -
getCollector
-
setCollector
-
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()
-