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

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

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

This class represents the status of a Person when death occurs. It records the Complaint that caused the death to occur, the time of death and the Location. The Location is recorded as a dead body may be moved from the place of death. This class is immutable since once Death occurs it is final.

See Also:
Serialized Form

Constructor Summary
DeathInfo(Person person)
          The construct creates an instance of a DeathInfo class.
 
Method Summary
 Unit getContainerUnit()
          Gets the container unit at the time of death.
 java.lang.String getIllness()
          Get the name of the illness that caused the death.
 java.lang.String getJob()
          Gets the person's job at the time of death.
 Coordinates getLocationOfDeath()
          Gets the location of death.
 java.lang.String getMalfunction()
          Gets the most serious emergency malfunction local to the person at time of death.
 java.lang.String getMission()
          Gets the mission the person was on at time of death.
 java.lang.String getMissionPhase()
          Gets the mission phase at time of death.
 java.lang.String getPlaceOfDeath()
          Gets the place the death happened.
 java.lang.String getTask()
          Gets the task the person was doing at time of death.
 java.lang.String getTaskPhase()
          Gets the task phase at time of death.
 java.lang.String getTimeOfDeath()
          Get the time death happened.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeathInfo

public DeathInfo(Person person)
The construct creates an instance of a DeathInfo class.

Parameters:
person - the dead person
Method Detail

getTimeOfDeath

public java.lang.String getTimeOfDeath()
Get the time death happened.

Returns:
formatted time.

getPlaceOfDeath

public java.lang.String getPlaceOfDeath()
Gets the place the death happened. Either the name of the unit the person was in, or 'outside' if the person died on an EVA.

Returns:
place of death.

getContainerUnit

public Unit getContainerUnit()
Gets the container unit at the time of death. Returns null if none.

Returns:
container unit

getIllness

public java.lang.String getIllness()
Get the name of the illness that caused the death.

Returns:
name of the illness.

getLocationOfDeath

public Coordinates getLocationOfDeath()
Gets the location of death.

Returns:
coordinates

getJob

public java.lang.String getJob()
Gets the person's job at the time of death.

Returns:
job

getMission

public java.lang.String getMission()
Gets the mission the person was on at time of death.

Returns:
mission name

getMissionPhase

public java.lang.String getMissionPhase()
Gets the mission phase at time of death.

Returns:
mission phase

getTask

public java.lang.String getTask()
Gets the task the person was doing at time of death.

Returns:
task name

getTaskPhase

public java.lang.String getTaskPhase()
Gets the task phase at time of death.

Returns:
task phase

getMalfunction

public java.lang.String getMalfunction()
Gets the most serious emergency malfunction local to the person at time of death.

Returns:
malfunction name