org.mars_sim.msp.simulation.person.medical
Interface MedicalAid

All Known Implementing Classes:
MedicalCare, MedicalStation, SickBay

public interface MedicalAid

This interface defines an entity that can provide Medical Aid to an injured person. It can provide different types of treatments.


Method Summary
 boolean canTreatProblem(HealthProblem problem)
          Checks if a health problem can be treated at this medical aid.
 java.util.List getProblemsAwaitingTreatment()
          Gets the health problems awaiting treatment at the medical station.
 java.util.List getProblemsBeingTreated()
          Gets the health problems currently being treated at the medical station.
 java.util.List getSupportedTreatments()
          Get a list of supported Treatments at this medical aid.
 void requestTreatment(HealthProblem problem)
          Add a health problem to the queue of problems awaiting treatment at this medical aid.
 void startTreatment(HealthProblem problem, double treatmentDuration)
          Starts the treatment of a health problem in the waiting queue.
 void stopTreatment(HealthProblem problem)
          Stop a previously started treatment.
 

Method Detail

getProblemsAwaitingTreatment

java.util.List getProblemsAwaitingTreatment()
Gets the health problems awaiting treatment at the medical station.

Returns:
list of health problems

getProblemsBeingTreated

java.util.List getProblemsBeingTreated()
Gets the health problems currently being treated at the medical station.

Returns:
list of health problems

getSupportedTreatments

java.util.List getSupportedTreatments()
Get a list of supported Treatments at this medical aid.

Returns:
List of treatments.

canTreatProblem

boolean canTreatProblem(HealthProblem problem)
Checks if a health problem can be treated at this medical aid.

Parameters:
problem - The health problem to check treatment.
Returns:
true if problem can be treated.

requestTreatment

void requestTreatment(HealthProblem problem)
                      throws java.lang.Exception
Add a health problem to the queue of problems awaiting treatment at this medical aid.

Parameters:
problem - The health problem to await treatment.
Throws:
java.lang.Exception - if health problem cannot be treated here.

startTreatment

void startTreatment(HealthProblem problem,
                    double treatmentDuration)
                    throws java.lang.Exception
Starts the treatment of a health problem in the waiting queue.

Parameters:
problem - the health problem to start treating.
treatmentDuration - the time required to perform the treatment.
Throws:
java.lang.Exception - if treatment cannot be started.

stopTreatment

void stopTreatment(HealthProblem problem)
                   throws java.lang.Exception
Stop a previously started treatment.

Parameters:
problem - Health problem stopping treatment on.
Throws:
java.lang.Exception - if health problem is not being treated.