Ambulance#

A class to represent an ambulance.

Ambulance(env, base_location_ID, ...)

A class to represent an ambulance.

Ambulance.check_patient_reachable(...)

Checks whether the patient is reachable for the ambulance.

Ambulance.set_assigned_to_patient()

Sets the assigned_to_patient variable to True.

Ambulance.process_patient(patient_ID, ...)

Processes a patient.

Ambulance.go_to_patient(patient_ID, ...)

Drive to the patient.

Ambulance.on_site_aid_patient(patient_ID, ...)

Help the patient on site.

Ambulance.go_to_hospital(patient_ID, ...)

Drive to the hospital.

Ambulance.drop_off_time(patient_ID, ...)

Drop the patient off at the hospital.

Ambulance.go_to_base_station(...)

Drive to its base station.

Ambulance.check_base_reachable(...)

Checks whether the base is reachable with the current battery level.

Ambulance.add_ambulance_data_diesel(idle, ...)

Adds data for a diesel vehicle to output_ambulance.

Ambulance.add_ambulance_data_battery_decrease(...)

Adds battery decrease data to output_ambulance for an electric vehicle.

Ambulance.add_ambulance_data_charging(...)

Adds battery increase data to output_ambulance for an electric vehicle.

Ambulance.decrease_battery(decrease_quantity)

Decreases the battery with a certain amount.

Ambulance.increase_battery(increase_quantity)

Increases the battery with a certain amount.

Ambulance.calculate_battery_increase_until_now()

Calculates the battery increase due to charging until this moment.

Ambulance.charge_at_base(...)

Charge at its base station.

Ambulance.charge_at_hospital(...)

Charge at a hospital.

Ambulance.charge_battery(selected_charger, ...)

Charges the ambulance battery and interrupts charging if necessary.

Ambulance.charge_at_drop_off(...)

Charges the battery during patient handover.

Ambulance.calculate_battery_reduction_and_distance_driving(...)

Calculates the battery reduction and distance during driving.

Ambulance.calculate_battery_reduction_idling(...)

Calculates the battery reduction during idling.

Ambulance.calculate_charging_time(...)

Calculates the charging time to reach a certain battery increase.

Ambulance.select_charging_station(...)

Selects a charging station based on current availability.