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.
Properties
Link copied to clipboard
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
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.