ChargeLevel

fun ChargeLevel(currentCharge: Energy, maxCharge: Energy)

Parameters

currentCharge

Specifies the current electric energy supply, typically in kilowatt hours (kWh). Applicable only for electric engines.

maxCharge

Specifies the capacity of the vehicle's battery, typically in kilowatt hours (kWh). Applicable only for electric engines. If used at all, it must be used in conjunction with {@link #withCurrentChargeInKWh(double)}.