public class Person extends Agent
This class implements the Person agent. The Person agent is an individual inhabitant of the community. A Person assess the quality of physician performance, chooses a primary care physician, requests treatment from a physician, and complies with treatment recommendations.
| Constructor and Description |
|---|
Person(repast.simphony.context.Context<java.lang.Object> pContext,
AgentID pPersonID)
Constructs a Person agent.
|
| Modifier and Type | Method and Description |
|---|---|
int |
chart_GetDisease1Count()
Counts the number of Persons with Disease 1.
|
int |
chart_GetDisease2Count()
Counts the number of Persons with Disease 2.
|
int |
chart_GetDiseaseStatus()
Provides the Person's health status as an integer (0, 1, or 2).
|
int |
chart_GetImproperlyTreatedPatientTypeCount()
Counts the number of "improperly treated" patients.
|
int |
chart_GetNoncompliantPatientTypeCount()
Counts the number of "noncompliant" patients.
|
int |
chart_GetNonrequestingPatientTypeCount()
Counts the number of "non-requesting" patients.
|
int |
chart_GetPCPTreatmentRequestedCount()
Counts the number of Persons who requested a PCP treatment.
|
int |
chart_GetProperlyTreatedPatientTypeCount()
Counts the number of "properly treated" patients.
|
int |
chart_GetSpecialistTreatmentRequestedCount()
Counts the number of Persons who requested a Specialist treatment.
|
int |
chart_GetUntreatedPatientTypeCount()
Counts the number of "untreated" patients.
|
Constants.Disease |
getCurrentDiseaseStatus()
Returns the Person's current disease status.
|
AgentID |
getCurrentPCP()
Returns the Person's current PCP.
|
java.lang.String |
getCurrentPCPString()
Returns the identification number of the current PCP as a string.
|
java.util.ArrayList<AnnualDiseaseStatus> |
getDiseaseStatusHistory()
Returns the Person's current disease status.
|
int |
getIntegerCurrentDiseaseStatus()
Returns the Person's disease status as an integer.
|
java.lang.String |
getPatientType()
Returns the patient type as a string.
|
boolean |
getPCPTreatmentCompliance()
Returns whether the Person complied with the PCP treatment.
|
java.lang.String |
getPCPTreatmentRecommendation()
Returns the treatment recommendation the Person received from a PCP.
|
boolean |
getPCPTreatmentRequested()
Returns whether the Person requested a treatment from a PCP.
|
java.lang.String |
getPersonGoal1()
Returns the Person's first goal as a string.
|
java.lang.String |
getPersonGoal2()
Returns the Person's second goal as a string.
|
java.lang.String |
getPersonGoal3()
Returns the Person's third goal as a string.
|
java.util.ArrayList<Goal> |
getPersonGoals() |
int |
getPersonIDNumber()
Returns the Person's identification number as an integer.
|
java.lang.String |
getPersonIDString()
Returns the Person's identification number as a string.
|
AgentID |
getPreviousPeriodPCP()
Returns the Person's PCP for the previous period.
|
boolean |
getSpecialistTreatmentCompliance()
Returns whether the Person complied with the Specialist treatment.
|
java.lang.String |
getSpecialistTreatmentRecommendation()
Returns the treatment recommendation the Person received from a Specialist.
|
boolean |
getSpecialistTreatmentRequested()
Returns whether the Person requested a treatment from a Specialist.
|
void |
i1_GetPCPTreatmentRecommendation()
Get PCP treatment recommendation.
|
void |
i1_GetSpecialistTreatmentRecommendation()
Get PCP treatment recommendation.
|
void |
init_AssignInitialPCP()
Determines the Person's initial PCP.
|
void |
init_InitializeVariables_BOY()
Initializes variables at the beginning of each simulation period.
|
void |
init_InitializeVariables_Constructor()
Initializes variables (used in the constructor)
|
void |
p1_SelectPCP()
Select a PCP.
|
void |
p2_RequestPCPTreatment()
Requests a treatment from a PCP if the Person has a disease.
|
void |
p3_RequestSpecialistTreatment()
Requests a treatment from a Specialist if the Person receives a referral.
|
void |
p4_ComplyWithPCPTreatmentRecommendation()
The Person responds to the treatment recommendation received from a PCP.
|
void |
p5_ComplyWithSpecialistTreatmentRecommendation()
The Person responds to the treatment recommendation received from a Specialist.
|
void |
p6_UpdateDiseaseStatus()
Updates the Person's disease status based on the treatment received.
|
void |
p7_ContractNewDisease()
Updates the Person's disease status.
|
boolean |
r10_CheckForAppropriateTreatment() |
boolean |
r11_CheckForReferral() |
boolean |
r12_CheckNetworkParticipation(AgentID pPhysicianID) |
AgentID |
r4_GetNearestPCP() |
AgentID |
r5_GetFavoredPCP() |
boolean |
r9_DetermineTreatmentPainLevel() |
public Person(repast.simphony.context.Context<java.lang.Object> pContext,
AgentID pPersonID)
pSpace - The identifier for the "space" simulation environment.pPersonID - The Person's identifier.public void init_InitializeVariables_Constructor()
public void init_InitializeVariables_BOY()
public void init_AssignInitialPCP()
public void i1_GetPCPTreatmentRecommendation()
public void i1_GetSpecialistTreatmentRecommendation()
public void p1_SelectPCP()
public void p2_RequestPCPTreatment()
public void p3_RequestSpecialistTreatment()
public void p4_ComplyWithPCPTreatmentRecommendation()
public void p5_ComplyWithSpecialistTreatmentRecommendation()
public void p6_UpdateDiseaseStatus()
public void p7_ContractNewDisease()
public AgentID r4_GetNearestPCP()
public AgentID r5_GetFavoredPCP()
public boolean r9_DetermineTreatmentPainLevel()
public boolean r10_CheckForAppropriateTreatment()
public boolean r11_CheckForReferral()
public boolean r12_CheckNetworkParticipation(AgentID pPhysicianID)
public java.lang.String getPersonIDString()
public java.lang.String getCurrentPCPString()
public int getIntegerCurrentDiseaseStatus()
public int getPersonIDNumber()
public java.lang.String getPersonGoal1()
public java.lang.String getPersonGoal2()
public java.lang.String getPersonGoal3()
public int chart_GetDisease1Count()
public int chart_GetDisease2Count()
public int chart_GetDiseaseStatus()
public int chart_GetPCPTreatmentRequestedCount()
public int chart_GetSpecialistTreatmentRequestedCount()
public int chart_GetProperlyTreatedPatientTypeCount()
public int chart_GetImproperlyTreatedPatientTypeCount()
public int chart_GetNoncompliantPatientTypeCount()
public int chart_GetUntreatedPatientTypeCount()
public int chart_GetNonrequestingPatientTypeCount()
public AgentID getCurrentPCP()
public AgentID getPreviousPeriodPCP()
public Constants.Disease getCurrentDiseaseStatus()
public java.util.ArrayList<AnnualDiseaseStatus> getDiseaseStatusHistory()
public boolean getPCPTreatmentRequested()
public boolean getSpecialistTreatmentRequested()
public java.lang.String getPCPTreatmentRecommendation()
public java.lang.String getSpecialistTreatmentRecommendation()
public boolean getPCPTreatmentCompliance()
public boolean getSpecialistTreatmentCompliance()
public java.lang.String getPatientType()
public java.util.ArrayList<Goal> getPersonGoals()