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,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.
SIREN_DRIVING_MATRIX ``is at least necessary. It is based on ``TRAVEL_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 there is a queue at the ambulance resource. 2. If the variable
drives_to_baseconflicts with the variablescharges,assigned_to_patientand/orhelps_patient. 3. If an invalidENGINE_TYPEis specified.
- Returns:
 driving_interrupted (bool) – Whether the driving was interrupted or not.