Class Doctor
java.lang.Object
org.episteme.social.sociology.Role
org.episteme.social.economics.EconomicAgent
org.episteme.social.economics.Worker
org.episteme.social.medicine.consultation.Doctor
- All Implemented Interfaces:
Serializable, Commented, ComprehensiveIdentification, Identified<Identification>, Named, Temporal<TimeCoordinate>
The Doctor class provides some useful information for people whose job
is to cure individuals.
- Version:
- 1.0
- Author:
- Silvere Martin-Michiellot
- See Also:
-
Field Summary
Fields inherited from class Role
CLIENT, OBSERVER, SERVER, SUPERVISOR -
Constructor Summary
ConstructorsConstructorDescriptionDoctor(Individual individual, MedicalSituation medicalSituation, String function, Organization organization) Initializes a new Doctor instance with a specific medical function.Doctor(Individual individual, MedicalSituation medicalSituation, Organization organization) Initializes a new Doctor instance with the default function "Doctor". -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPatient(Patient patient) Adds a patient to this doctor's care.Returns the set of patients under this doctor's care.voidremovePatient(Patient patient) Removes a patient from this doctor's care.voidsetPatients(Set<Patient> patients) Replaces the current set of patients.Methods inherited from class Worker
addSubaltern, equals, extractTree, getAllSubalterns, getAnnualIncome, getChiefs, getCommonRoot, getCoWorkers, getLeaders, getLineage, getOrganization, getSubalterns, getSubalternsAtLevelK, getWorkedHours, hasChief, hasChild, hasChild, hasDistantSubaltern, hashCode, removeSubaltern, reparent, setAnnualIncome, setFunction, setOrganization, setSubalterns, setWorkedHours, setWorkedHoursMethods inherited from class EconomicAgent
addBelonging, getBelongings, getCommunity, getWallet, removeBelonging, setBelongings, setWalletMethods inherited from class Role
getId, getIndividual, getKind, getSituation, getTraits, getWhen, setKind, setTimestamp, toStringMethods inherited from interface Commented
getComments, getTrait, setCommentsMethods inherited from interface ComprehensiveIdentification
getName, getTrait, setName, setTrait
-
Constructor Details
-
Doctor
public Doctor(Individual individual, MedicalSituation medicalSituation, String function, Organization organization) Initializes a new Doctor instance with a specific medical function.- Parameters:
individual- the underlying human individualmedicalSituation- the medical context (situation) the doctor is involved infunction- the specific title or function of the doctororganization- the medical organization (hospital, clinic, etc.) they work for- Throws:
NullPointerException- if any required argument is null
-
Doctor
Initializes a new Doctor instance with the default function "Doctor".- Parameters:
individual- the underlying human individualmedicalSituation- the medical context (situation)organization- the medical organization they work for- Throws:
NullPointerException- if any required argument is null
-
-
Method Details
-
getPatients
-
setPatients
Replaces the current set of patients. Each element must be a Patient instance.- Parameters:
patients- the new set of patients- Throws:
NullPointerException- if the input set is null
-
addPatient
Adds a patient to this doctor's care.- Parameters:
patient- the patient to add- Throws:
NullPointerException- if the patient is null
-
removePatient
Removes a patient from this doctor's care.- Parameters:
patient- the patient to remove
-