ambulance.Ambulance.decrease_battery#

Ambulance.decrease_battery(decrease_quantity: float) None#

Decreases the battery with a certain amount.

Parameters:

decrease_quantity (float) – The battery decrease in kWh.

Raises:

Exception – If the battery level of the ambulance falls below 0.