SpeedConsumptionProperty

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

Represents CombustionVehicleConsumption.speedConsumption property of the CombustionEngine model.

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

Parameters

speedConsumption

Map used to determine fuel consumption at different speeds.

Constructors

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

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard