ambulance.Ambulance.go_to_base_station#

Ambulance.go_to_base_station(SIMULATION_PARAMETERS: dict[str, Any], SIMULATION_DATA: dict[str, Any])#

Drive to its base station.

Parameters:
  • SIMULATION_PARAMETERS (dict[str, Any]) – The simulation parameters. The parameters NO_SIREN_PENALTY, 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. SIREN_DRIVING_MATRIX ``is at least necessary. It 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

  1. If there is a queue at the ambulance resource. 2. If the variable drives_to_base conflicts with the variables charges, assigned_to_patient and/or helps_patient. 3. If an invalid ENGINE_TYPE is specified.

Returns:

driving_interrupted (bool) – Whether the driving was interrupted or not.