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

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

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

Provides configuration information about medical complaints. Uses a DOM document to get the information.

See Also:
Serialized Form

Constructor Summary
MedicalConfig(org.w3c.dom.Document medicalDoc)
          Constructor
 
Method Summary
 java.util.List<Complaint> getComplaintList()
          Gets a list of medical complaints.
 java.util.List<Treatment> getTreatmentList()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MedicalConfig

public MedicalConfig(org.w3c.dom.Document medicalDoc)
Constructor

Parameters:
medicalDoc - DOM document of medical configuration.
Method Detail

getComplaintList

public java.util.List<Complaint> getComplaintList()
                                           throws java.lang.Exception
Gets a list of medical complaints.

Returns:
list of complaints
Throws:
java.lang.Exception - if list could not be found.

getTreatmentList

public java.util.List<Treatment> getTreatmentList()
                                           throws java.lang.Exception
Throws:
java.lang.Exception