ElectricVehicleConsumption

data class ElectricVehicleConsumption @JvmOverloads constructor(    val currentChargeInkWh: Double? = null,     val maxChargeInkWh: Double? = null,     val auxiliaryPowerInkW: Double? = null,     val speedConsumptionInKWhPerHundredKm: Map<Double, Double>)

Important: This is a Public Preview API. It may be changed or removed at any time. Describes capacity and the consumption of the EV.

Parameters

currentChargeInkWh

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

maxChargeInkWh

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

auxiliaryPowerInkW

Specifies the amount of power consumed for sustaining auxiliary systems, in kilowatts (kW). It can be used to specify consumption due to devices and systems such as AC systems, radio, heating, etc. Applicable only for electric engines.

speedConsumptionInKWhPerHundredKm

Specifies the speed-dependent component of consumption. Provided as an unordered list of speed/consumption-rate in kWh pairs. Applicable only for electric engines.

Constructors

Link copied to clipboard
fun ElectricVehicleConsumption(    currentChargeInkWh: Double? = null,     maxChargeInkWh: Double? = null,     auxiliaryPowerInkW: Double? = null,     speedConsumptionInKWhPerHundredKm: Map<Double, Double>)

Properties

Link copied to clipboard
val auxiliaryPowerInkW: Double? = null
Link copied to clipboard
val currentChargeInkWh: Double? = null
Link copied to clipboard
val maxChargeInkWh: Double? = null
Link copied to clipboard
val speedConsumptionInKWhPerHundredKm: Map<Double, Double>