ambulance.Ambulance.go_to_hospital#

Ambulance.go_to_hospital(patient_ID: int, hospital_location_ID: int, SIMULATION_PARAMETERS: dict[str, Any], SIMULATION_DATA: dict[str, Any])#

Drive to the hospital.

Parameters:
  • patient_ID (int) – The patient ID.

  • hospital_location_ID (int) – The assigned hospital.

  • SIMULATION_PARAMETERS (dict[str, Any]) – The simulation parameters. The parameters PRINT and ENGINE_TYPE are at least necessary. Note that methods that are called within this method may require more parameters. See main.py for parameter explanations.

  • SIMULATION_DATA (dict[str, Any]) – The simulation data. output_patient and SIREN_DRIVING_MATRIX are at least necessary. SIREN_DRIVING_MATRIX is based on TRAVEL_TIMES_FILE. See main.py and the input data section on the ELASPY website for explanations. Note that methods that are called within this method may require more data.

Raises:

Exception – If an invalid ENGINE_TYPE is specified.