Ambulance#
A class to represent an ambulance.
  | 
A class to represent an ambulance.  | 
Checks whether the patient is reachable for the ambulance.  | 
|
Sets the   | 
|
  | 
Processes a patient.  | 
  | 
Drive to the patient.  | 
  | 
Help the patient on site.  | 
  | 
Drive to the hospital.  | 
  | 
Drop the patient off at the hospital.  | 
Drive to its base station.  | 
|
Checks whether the base is reachable with the current battery level.  | 
|
  | 
Adds data for a diesel vehicle to output_ambulance.  | 
Adds battery decrease data to output_ambulance for an electric vehicle.  | 
|
Adds battery increase data to output_ambulance for an electric vehicle.  | 
|
  | 
Decreases the battery with a certain amount.  | 
  | 
Increases the battery with a certain amount.  | 
Calculates the battery increase due to charging until this moment.  | 
|
Charge at its base station.  | 
|
Charge at a hospital.  | 
|
  | 
Charges the ambulance battery and interrupts charging if necessary.  | 
Charges the battery during patient handover.  | 
|
  | 
Calculates the battery reduction and distance during driving.  | 
Calculates the battery reduction during idling.  | 
|
Calculates the charging time to reach a certain battery increase.  | 
|
Selects a charging station based on current availability.  |