CombustionVehicleConsumption

data class CombustionVehicleConsumption @JvmOverloads constructor(    val currentFuelInLiters: Double? = null,     val auxiliaryPowerInLitersPerHour: Double? = null,     val fuelEnergyDensityInMJoulesPerLiter: Double? = null,     val speedConsumptionInLitersPerHundredKm: Map<Double, Double>)

Describes parameters used to determine the vehicle power and consumption.

Important: This is a Public Preview API. It may be changed or removed at any time.

Parameters

currentFuelInLiters

Current fuel in liters.

auxiliaryPowerInLitersPerHour

Specifies the amount of fuel consumed for sustaining auxiliary systems of the vehicle, in liters per hour. It can be used to specify consumption due to devices and systems such as AC systems, radio, heating, etc. Applicable only for combustion engines.

fuelEnergyDensityInMJoulesPerLiter

Specifies the amount of chemical energy stored in one liter of fuel in megajoules (MJ). It is used in conjunction with the *Efficiency parameters for conversions between saved or consumed energy and fuel. For example, energy density is 34.2 MJ/l for gasoline, and 35.8 MJ/l for Diesel fuel. Applicable only for combustion engines.

speedConsumptionInLitersPerHundredKm

Map used to determine fuel consumption at different speeds.

Constructors

Link copied to clipboard
fun CombustionVehicleConsumption(    currentFuelInLiters: Double? = null,     auxiliaryPowerInLitersPerHour: Double? = null,     fuelEnergyDensityInMJoulesPerLiter: Double? = null,     speedConsumptionInLitersPerHundredKm: Map<Double, Double>)

Properties

Link copied to clipboard
val auxiliaryPowerInLitersPerHour: Double? = null
Link copied to clipboard
val currentFuelInLiters: Double? = null
Link copied to clipboard
val fuelEnergyDensityInMJoulesPerLiter: Double? = null
Link copied to clipboard
val speedConsumptionInLitersPerHundredKm: Map<Double, Double>