public class Environment
extends java.lang.Object
This class implements the simulation's Environment. The Environment is the container for the model’s agents. It creates the simulation’s Employee agents, and maintains a list of them. It also reads data from external files, obtains and validates user-provided parameters, and schedules agent behaviors.
Constructor and Description |
---|
Environment(repast.simphony.space.continuous.ContinuousSpace<java.lang.Object> pWorkplaceSpace,
repast.simphony.context.Context<java.lang.Object> pContext)
Constructs the Environment agent.
|
public Environment(repast.simphony.space.continuous.ContinuousSpace<java.lang.Object> pWorkplaceSpace, repast.simphony.context.Context<java.lang.Object> pContext)
pWorkplaceSpace
- The identifier for the "space" simulation environmentpContext
- The identifier for the simulation "context"jxl.read.biff.BiffException
public void i1_getInputParameters()
public void p1_OverrideParameters()
public static void p2_CreateEmployee(int pIndex, repast.simphony.context.Context<java.lang.Object> pContext)
public static int getRunNumber()
public static java.util.ArrayList<Employee> getEmployeeList()
public static java.lang.String getEmployeeLabels()
public static int getMaximumSimulationPeriods()
public static int getRandomSeed()
public static java.lang.String getProgramDesign_TargetGroup()
public static Constants.IntensityLevel getProgramDesign_Type()
public static double getProgramDesign_TypeLevel1AnnualCost()
public static double getProgramDesign_TypeLevel2AnnualCost()
public static Constants.IntensityLevel getProgramDesign_ChoiceArchitectureIntensity()
public static double getProgramDesign_ChoiceArchitectureLevel1AnnualCost()
public static double getProgramDesign_ChoiceArchitectureLevel2AnnualCost()
public static Constants.IntensityLevel getProgramDesign_IncentiveIntensity()
public static double getProgramDesign_IncentiveLevel1AnnualCost()
public static double getProgramDesign_IncentiveLevel2AnnualCost()
public static double getAverageAnnualDiabetesMedicalExpenditure()
public static int getNumberOfEmployees()
public static java.lang.String getEmployeeAgeDistributionType()
public static int getEmployeeAverageAge()
public static double getEmployeeAgeStandardDeviation()
public static java.lang.String getEmployeeWorkplaceLocationDistributionType()
public static double getEmployeeWorkplaceLocationStandardDeviation()
public static double getEmployeeWorkplaceNeighborhoodRadius()
public static double getEmployeeFirstGoalPercent_Health()
public static double getEmployeeFirstGoalPercent_Conformance()
public static double getEmployeeFirstGoalPercent_Income()
public static double getEmployeesNormalWeightPercent()
public static double getEmployeesOverweightPercent()
public static double getEmployeesObesePercent()
public static double getEmployeeStageOfChange_NormalWeight_Stage1Percent()
public static double getEmployeeStageOfChange_NormalWeight_Stage2Percent()
public static double getEmployeeStageOfChange_NormalWeight_Stage3Percent()
public static double getEmployeeStageOfChange_Overweight_Stage1Percent()
public static double getEmployeeStageOfChange_Overweight_Stage2Percent()
public static double getEmployeeStageOfChange_Overweight_Stage3Percent()
public static double getEmployeeStageOfChange_Obese_Stage1Percent()
public static double getEmployeeStageOfChange_Obese_Stage2Percent()
public static double getEmployeeStageOfChange_Obese_Stage3Percent()
public static double getTurnover_BaseProbability()
public static double getTurnover_AdditionalProbability()
public static int getRetirementAge()
public static double getAbsenteeismDays()
public static double getPresenteeismDays()
public static java.lang.String getDataWorkbookFileName()
public static java.lang.String getDiabetesIncidenceWorksheetName()
public static double getDiabetesIncidenceAdjustmentFactor()
public static java.lang.String getDiabetesPrevalenceWorksheetName()
public static double getDiabetesPrevalenceAdjustmentFactor()
public static java.lang.String getDiabetesRemissionWorksheetName()
public static double getDiabetesRemissionAdjustmentFactor()
public static java.lang.String getWeightProgressionWorksheetName()
public static double getWeightProgressionAdjustmentFactor()
public static java.lang.String getWeightRegressionWorksheetName()
public static double getWeightRegressionAdjustmentFactor()
public static java.lang.String getOverrideParameters()
public static java.lang.String getWriteOutputFile()
public static java.lang.String getOutputFileName()
public static double[][] getDiabetesIncidenceRate()
public static double[][] getDiabetesPrevalenceRate()
public static double[][] getDiabetesRemissionRate()
public static double[][] getWeightRegressionRate()
public static double[][] getWeightProgressionRate()
public static int getCurrentMaximumEmployeeIDNumber()
public static void setCurrentMaximumEmployeeIDNumber(int pCurrentMaximumEmployeeIDNumber)