|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mars_sim.msp.simulation.person.medical.HealthProblem
public class HealthProblem
This class represents a Health problem being suffered by a Person. The class references a fixed Complaint that defines the characteristics of this problem.
Constructor Summary | |
---|---|
HealthProblem(Complaint complaint,
Person person,
MedicalAid aid)
Create a new Health Problem that relates to a single Physical Condition object. |
Method Summary | |
---|---|
boolean |
getAwaitingTreatment()
Awaiting treatment |
boolean |
getCured()
Has the problem been cured. |
boolean |
getDegrading()
Is the problem in a degrading state. |
int |
getHealthRating()
Get a rating of the current health situation. |
Complaint |
getIllness()
Return the illness that this problem has. |
double |
getPerformanceFactor()
The performance rating for this Problem. |
boolean |
getRecovering()
Has the problem been cured. |
java.lang.String |
getSituation()
Generates a situation string that represents the current status of this problem. |
java.lang.String |
getStateString()
Gets a string representing this illness's current state. |
Person |
getSufferer()
Sufferer of problem |
boolean |
isEnvironmentalProblem()
Checks if this problem is an environmental problem. |
void |
startRecovery()
This is now moving to a recovery state. |
void |
startTreatment(double treatmentLength)
Start the required treatment. |
void |
stopTreatment()
Stops the treatment for now. |
Complaint |
timePassing(double time,
PhysicalCondition condition)
A time period has expired for this problem. |
java.lang.String |
toString()
This method generates a string representation of this problem. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public HealthProblem(Complaint complaint, Person person, MedicalAid aid)
complaint
- Medical complaint being suffered.person
- The Physical condition being effected.aid
- The local Medical Aid facility.Method Detail |
---|
public boolean getDegrading()
public boolean getCured()
public int getHealthRating()
public Complaint getIllness()
public Person getSufferer()
public double getPerformanceFactor()
public boolean getRecovering()
public boolean getAwaitingTreatment()
public java.lang.String getSituation()
public java.lang.String getStateString()
public void startTreatment(double treatmentLength)
treatmentLength
- Length of treatment.public void stopTreatment()
public void startRecovery()
public Complaint timePassing(double time, PhysicalCondition condition)
time
- The time period this problem has passed.condition
- Physical condition being effected.
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isEnvironmentalProblem()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |