patient.Patient#
- class patient.Patient(ID: int, arrival_time: float, location_ID: int, hospital_ID: int)#
A class to represent a patient.
- Variables:
patient_ID (int) – The patient ID.
arrival_time (float) – The arrival time of the patient.
patient_location_ID (int) – The arrival location of the patient.
hospital_location_ID (int) – The assigned hospital (in case the patient needs to be transported).
- __init__(ID: int, arrival_time: float, location_ID: int, hospital_ID: int) None #
Initializes a patient.
- Parameters:
ID (int) – The patient ID.
arrival_time (float) – The arrival time of the patient.
location_ID (int) – The arrival location of the patient.
hospital_ID (int) – The assigned hospital (in case the patient needs to be transported).
Methods
__init__
(ID, arrival_time, location_ID, ...)Initializes a patient.