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

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

public class DeathInfo
extends Object
implements 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.
 String getIllness()
          Get the name of the illness that caused the death.
 String getJob()
          Gets the person's job at the time of death.
 Coordinates getLocationOfDeath()
          Gets the location of death.
 String getMalfunction()
          Gets the most serious emergency malfunction local to the person at time of death.
 String getMission()
          Gets the mission the person was on at time of death.
 String getMissionPhase()
          Gets the mission phase at time of death.
 String getPlaceOfDeath()
          Gets the place the death happened.
 String getTask()
          Gets the task the person was doing at time of death.
 String getTaskPhase()
          Gets the task phase at time of death.
 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 String getTimeOfDeath()
Get the time death happened.

Returns:
formatted time.

getPlaceOfDeath

public 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 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 String getJob()
Gets the person's job at the time of death.

Returns:
job

getMission

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

Returns:
mission name

getMissionPhase

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

Returns:
mission phase

getTask

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

Returns:
task name

getTaskPhase

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

Returns:
task phase

getMalfunction

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

Returns:
malfunction name


Copyright © 2009-2013. All Rights Reserved.