org.mars_sim.msp.core.vehicle
Class SickBay

java.lang.Object
  extended by org.mars_sim.msp.core.person.medical.MedicalStation
      extended by org.mars_sim.msp.core.vehicle.SickBay
All Implemented Interfaces:
Serializable, MedicalAid

public class SickBay
extends MedicalStation
implements Serializable

The SickBay class is a medical station for a vehicle.

See Also:
Serialized Form

Constructor Summary
SickBay(Vehicle vehicle, int treatmentLevel, int sickBedNum)
          Constructor
 
Method Summary
 void destroy()
          Prepare object for garbage collection.
 Vehicle getVehicle()
          Gets the vehicle this sickbay is in.
 
Methods inherited from class org.mars_sim.msp.core.person.medical.MedicalStation
canTreatProblem, getPatientNum, getPatients, getProblemsAwaitingTreatment, getProblemsBeingTreated, getSickBedNum, getSupportedTreatments, getTreatmentLevel, requestTreatment, startTreatment, stopTreatment
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SickBay

public SickBay(Vehicle vehicle,
               int treatmentLevel,
               int sickBedNum)
Constructor

Parameters:
vehicle - The vehicle the sickbay is in.
treatmentLevel - The treatment level of the medical station.
sickBedNum - Number of sickbeds.
Method Detail

getVehicle

public Vehicle getVehicle()
Gets the vehicle this sickbay is in.

Returns:
vehicle

destroy

public void destroy()
Description copied from class: MedicalStation
Prepare object for garbage collection.

Overrides:
destroy in class MedicalStation


Copyright © 2009-2013. All Rights Reserved.