SpeedConsumptionProperty

data class SpeedConsumptionProperty(@Size(min = 1, max = 25) val speedConsumption: Map<Speed, ElectricConsumption>) : ElectricEngineProperty

Represents ElectricVehicleConsumption.speedConsumption property of the ElectricEngine model.

Used for updating the energy consumption depending on the speed of the vehicle via VehicleProvider.updateVehicleProperties

Parameters

speedConsumption

Specifies the speed-dependent component of consumption. Provided as an unordered list of speed/consumption-rate pairs.

Constructors

Link copied to clipboard
constructor(@Size(min = 1, max = 25) speedConsumption: Map<Speed, ElectricConsumption>)

Types

Link copied to clipboard
object Companion

Properties

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