org.jscience.medicine
Class Doctor

java.lang.Object
  extended by org.jscience.sociology.Role
      extended by org.jscience.economics.EconomicAgent
          extended by org.jscience.economics.Worker
              extended by org.jscience.medicine.Doctor
All Implemented Interfaces:
Named

public class Doctor
extends Worker

The Doctor class provides some useful information for people whose job is to cure individuals.


Field Summary
 
Fields inherited from class org.jscience.sociology.Role
CLIENT, OBSERVER, SERVER, SUPERVISOR
 
Constructor Summary
Doctor(Individual individual, MedicalSituation medicalSituation, Organization organization)
          Creates a new Doctor object.
Doctor(Individual individual, MedicalSituation medicalSituation, java.lang.String function, Organization organization)
          Creates a new Doctor object.
 
Method Summary
 void addPatient(Patient patient)
          DOCUMENT ME!
 java.util.Set getPatients()
          DOCUMENT ME!
 void removePatient(Patient patient)
          DOCUMENT ME!
 void setPatients(java.util.Set patients)
          DOCUMENT ME!
 
Methods inherited from class org.jscience.economics.Worker
addSubaltern, equals, extractTree, getAllSubalterns, getAnnualIncome, getChiefs, getCommonRoot, getCoWorkers, getFunction, getLeaders, getLineage, getOrganization, getSubalterns, getSubalternsAtLevelK, getWorkedHours, hasChief, hasChild, hasChild, hasDistantSubaltern, removeSubaltern, reparent, setAnnualIncome, setFunction, setOrganization, setSubalterns, setWorkedHours
 
Methods inherited from class org.jscience.economics.EconomicAgent
addBelonging, getBelongings, getCommunity, getWallet, removeBelonging, setBelongings, setWallet
 
Methods inherited from class org.jscience.sociology.Role
getIndividual, getKind, getName, getSituation, setSituation
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Doctor

public Doctor(Individual individual,
              MedicalSituation medicalSituation,
              java.lang.String function,
              Organization organization)
Creates a new Doctor object.

Parameters:
individual - DOCUMENT ME!
medicalSituation - DOCUMENT ME!
function - DOCUMENT ME!
organization - DOCUMENT ME!

Doctor

public Doctor(Individual individual,
              MedicalSituation medicalSituation,
              Organization organization)
Creates a new Doctor object.

Parameters:
individual - DOCUMENT ME!
medicalSituation - DOCUMENT ME!
organization - DOCUMENT ME!
Method Detail

getPatients

public java.util.Set getPatients()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setPatients

public void setPatients(java.util.Set patients)
DOCUMENT ME!

Parameters:
patients - DOCUMENT ME!
Throws:
java.lang.IllegalArgumentException - DOCUMENT ME!

addPatient

public void addPatient(Patient patient)
DOCUMENT ME!

Parameters:
patient - DOCUMENT ME!

removePatient

public void removePatient(Patient patient)
DOCUMENT ME!

Parameters:
patient - DOCUMENT ME!