ElectricVehicleConsumption

data class ElectricVehicleConsumption(val auxiliaryPower: Power? = null, val speedConsumption: Map<Speed, ElectricConsumption>)

Describes capacity and the consumption of the EV.

Throws

if any consumption values are invalid.

Constructors

Link copied to clipboard
constructor(auxiliaryPower: Power? = null, speedConsumption: Map<Speed, ElectricConsumption>)

Properties

Link copied to clipboard
val auxiliaryPower: Power? = null

The amount of power required for sustaining auxiliary systems. It can be used to specify consumption due to devices and systems such as AC systems, radio, heating, etc.

Link copied to clipboard
val speedConsumption: Map<Speed, ElectricConsumption>

The speed-dependent component of consumption. It is provided as a piecewise linear function mapping speed to consumption. All consumption values as well as the extrapolated values for speeds outside the provided range must be positive.