org.mars_sim.msp.simulation.person.medical
Class Complaint

java.lang.Object
  extended by org.mars_sim.msp.simulation.person.medical.Complaint
All Implemented Interfaces:
java.io.Serializable

public class Complaint
extends java.lang.Object
implements java.io.Serializable

This class represents the definition of a specific Medical Complaint that can effect a Person. The Complaint once effecting a Person can either result in the Person entering a recovery period or developing a more serious complaint or possibly death. I

See Also:
Serialized Form

Field Summary
static double MAXPROBABILITY
          The maximum probability rating.
 
Method Summary
 double getDegradePeriod()
          Get the degrade period.
 java.lang.String getName()
          Get the name of complaint.
 Complaint getNextPhase()
          Get the next complaint that this complaint developers into.
 double getPerformanceFactor()
          Get the performance factor that effect Person with the complaint.
 double getProbability()
          Get the probabity of this complaint.
 double getRecoveryPeriod()
          Get the recover period.
 Treatment getRecoveryTreatment()
          Get the treatment required for recovery to start.
 int getSeriousness()
          Get the seriousness of this complaint.
 java.lang.String toString()
          Get a string respresentation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MAXPROBABILITY

public static final double MAXPROBABILITY
The maximum probability rating. This allows the complaint to be specifed to 1/10th of a percentage.

See Also:
Constant Field Values
Method Detail

getDegradePeriod

public double getDegradePeriod()
Get the degrade period.

Returns:
Double value representing a duration.

getName

public java.lang.String getName()
Get the name of complaint.

Returns:
Complaint name.

getNextPhase

public Complaint getNextPhase()
Get the next complaint that this complaint developers into.

Returns:
The next complaint, if null then death results.

getPerformanceFactor

public double getPerformanceFactor()
Get the performance factor that effect Person with the complaint.

Returns:
The value is between 0 -> 1.

getProbability

public double getProbability()
Get the probabity of this complaint.

Returns:
Probabity from 0 to 100.

getRecoveryTreatment

public Treatment getRecoveryTreatment()
Get the treatment required for recovery to start.

Returns:
recovery treatment.

getRecoveryPeriod

public double getRecoveryPeriod()
Get the recover period.

Returns:
Double value representing a duration.

getSeriousness

public int getSeriousness()
Get the seriousness of this complaint.

Returns:
Seriousness rating.

toString

public java.lang.String toString()
Get a string respresentation.

Overrides:
toString in class java.lang.Object
Returns:
The name of the complaint.