ambulance.Ambulance.add_ambulance_data_charging#
- Ambulance.add_ambulance_data_charging(charging_location_ID: int, speed_charger: float, waiting_time_at_charger: float, charging_type: int, charging_time: float, increase_quantity: float, charging_success: bool, charging_interrupted: int, SIMULATION_PARAMETERS: dict[str, Any], SIMULATION_DATA: dict[str, Any]) None #
Adds battery increase data to output_ambulance for an electric vehicle.
- Parameters:
charging_location_ID (int) – The charging location ID.
speed_charger (float) – The speed of the charger (in kW).
waiting_time_at_charger (float) – The waiting time in minutes before an ambulance could charge or was assigned to another patient while waiting to charge.
charging_type (int) – The charging type. “2” for charging at the base, “1” for charging at the hospital after treating a patient and “0” for charging during patient handover.
charging_time (float) – The time the ambulance charged. It is 0 if the ambulance could not charge before it was assigned to a new patient.
increase_quantity (float) – The battery increase in kWh.
charging_success (bool) – Whether the ambulance could or could not charge during the charging session.
charging_interrupted (int) – “1” if the charging session was interrupted, “0” if it was not interrupted.
SIMULATION_PARAMETERS (dict[str, Any]) – The simulation parameters. The parameter
DATA_COLUMNS_AMBULANCE
is at least necessary. Seemain.py
for parameter explanations.SIMULATION_DATA (dict[str, Any]) – The simulation data.
output_ambulance
is at least necessary. Seemain.py
and the input data section on the ELASPY website for explanations.