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
andENGINE_TYPE
are at least necessary. Note that methods that are called within this method may require more parameters. Seemain.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
. Seemain.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 there is a queue at the ambulance resource. 2. If the variable
drives_to_base
conflicts with the variablescharges
,assigned_to_patient
and/orhelps_patient
. 3. If an invalidENGINE_TYPE
is specified.
- Returns:
driving_interrupted (bool) – Whether the driving was interrupted or not.