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

java.lang.Object
  extended by org.mars_sim.msp.simulation.events.HistoricalEvent
      extended by org.mars_sim.msp.simulation.person.medical.MedicalEvent

public class MedicalEvent
extends HistoricalEvent

This class represents the historical action of a medical problem occuring or being resolved. Death is also recorded with medical events.


Field Summary
static java.lang.String CURED
           
static java.lang.String DEATH
           
static java.lang.String DEGRADES
           
static java.lang.String RECOVERY
           
static java.lang.String STARTS
           
static java.lang.String TREATED
           
 
Constructor Summary
MedicalEvent(Person person, HealthProblem illness, java.lang.String eventType)
          Constructor
 
Method Summary
 
Methods inherited from class org.mars_sim.msp.simulation.events.HistoricalEvent
getCategory, getDescription, getSource, getTimestamp, getType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CURED

public static final java.lang.String CURED
See Also:
Constant Field Values

STARTS

public static final java.lang.String STARTS
See Also:
Constant Field Values

DEGRADES

public static final java.lang.String DEGRADES
See Also:
Constant Field Values

RECOVERY

public static final java.lang.String RECOVERY
See Also:
Constant Field Values

TREATED

public static final java.lang.String TREATED
See Also:
Constant Field Values

DEATH

public static final java.lang.String DEATH
See Also:
Constant Field Values
Constructor Detail

MedicalEvent

public MedicalEvent(Person person,
                    HealthProblem illness,
                    java.lang.String eventType)
Constructor

Parameters:
person - the person with the medical problem.
illness - the medical problem.
eventType - the medical event type.