ambulance.Ambulance.charge_at_drop_off#
- Ambulance.charge_at_drop_off(hospital_location_ID: int, charging_stations_hospitals: dict[str, list[simpy.resources.resource.Resource | float]], SIMULATION_PARAMETERS: dict[str, Any], SIMULATION_DATA: dict[str, Any])#
Charges the battery during patient handover. Interrupts if necessary.
- Parameters:
hospital_location_ID (int) – The hospital location ID.
charging_stations_hospitals (dict[str, list[sp.resources.resource.Resource | float]]) – The charging stations resources at all hospitals together with their charging speeds.
SIMULATION_PARAMETERS (dict[str, Any]) – The simulation parameters. The parameter
PRINT
is 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. Methods that are called within this method require data. See these methods for explanations.
- Raises:
Exception –
If the variable
charges
conflicts withdrives_to_base
. 2. Ifhelps_patient
and/orassigned_to_patient
are not True. 3. If the request was triggered, but the ambulance was not charged.