SpeedConsumptionProperty

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

Specifies the consumption of the electric engine.

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

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>