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
PRINTandENGINE_TYPEare at least necessary. Note that methods that are called within this method may require more parameters. Seemain.pyfor parameter explanations.SIMULATION_DATA (dict[str, Any]) – The simulation data.
output_patientandSIREN_DRIVING_MATRIXare at least necessary.SIREN_DRIVING_MATRIXis based onTRAVEL_TIMES_FILE. Seemain.pyand 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_TYPEis specified.