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 agents, and maintains a list of Person agents, a list Physician agents, and a list of Insurance Company agents (there is only one). It also schedules agent behaviors, and manages the passing of messages among agents.
| Constructor and Description |
|---|
Environment(repast.simphony.space.continuous.ContinuousSpace<java.lang.Object> pSpace,
repast.simphony.context.Context<java.lang.Object> pContext)
Constructs an Environment agent.
|
public Environment(repast.simphony.space.continuous.ContinuousSpace<java.lang.Object> pSpace,
repast.simphony.context.Context<java.lang.Object> pContext)
throws java.io.IOException
pSpace - The identifier for the "space" simulation environmentpContext - The identifier for the simulation "context"java.io.IOExceptionpublic static void m1_SendMessage(Message pMessage)
pMessage - a message an agent sends to another agentpublic static java.util.ArrayList<Message> m2_GetMessages(AgentID pIDAgent, Constants.MessageType pMessageType)
pIDAgent - An agent's identifierpublic static int getRunNumber()
public static java.lang.String getAgentLabels()
public static int getMaximumSimulationPeriods()
public static double getRandomNumberSeed()
public static int getNumberOfPersons()
public static int getNumberOfPCPs()
public static int getNumberOfSpecialists()
public static java.lang.String getPersonDistributionType()
public static double getPersonStandardDeviation()
public static java.lang.String getPhysicianDistributionType()
public static double getPhysicianStandardDeviation()
public static double getDisease1Probability()
public static double getDisease2Probability()
public static java.lang.String getInitialPCPAssignment()
public static double getPersonFirstGoalPercent_Treatment()
public static double getPersonFirstGoalPercent_Convenience()
public static double getPersonFirstGoalPercent_Conformance()
public static double getPcpFirstGoalPercent_Care()
public static double getPcpFirstGoalPercent_Income()
public static double getPcpFirstGoalPercent_Conformance()
public static double getSpecialistFirstGoalPercent_Care()
public static double getSpecialistFirstGoalPercent_Income()
public static double getSpecialistFirstGoalPercent_Conformance()
public static double getInsuranceCompanyFirstGoalPercent_Income()
public static double getInsuranceCompanyFirstGoalPercent_NetworkStability()
public static double getInsuranceCompanyFirstGoalPercent_NetworkSize()
public static double getPersonNeighborhoodRadius()
public static double getPhysicianNeighborhoodRadius()
public static double getPhysicianConvenienceRadius()
public static double getTreatmentCostForPCPTreatment1()
public static double getTreatmentCostForPCPTreatment2()
public static double getTreatmentCostForPCPTreatmentZ()
public static double getTreatmentCostForPCPReferral()
public static double getTreatmentCostForSpecialistTreatment1()
public static double getTreatmentCostForSpecialistTreatment2()
public static double getTreatmentCostForSpecialistTreatmentZ()
public static int getPcpQualityThreshold()
public static int getSpecialistQualityThreshold()
public static double getTreatmentPainThreshold()
public static double getPcpErrorRate()
public static double getSpecialistErrorRate()
public static int getPcpMinimumPatientLoad()
public static int getSpecialistMinimumPatientLoad()
public static int getPcpMaximumPatientLoad()
public static int getSpecialistMaximumPatientLoad()
public static java.lang.String getReferralSpecialistSelectionCriterion()
public static java.lang.String getOverrideParameters()
public static java.lang.String getWriteOutputFile()
public static java.lang.String getOutputFileName()
public static java.util.ArrayList<Person> getPersonList()
public static java.util.ArrayList<Physician> getPhysicianList()
public static java.util.ArrayList<HealthInsuranceCompany> getHealthInsuranceCompanyList()
public static java.util.ArrayList<Message> getMessageList()