SpeedConsumptionProperty

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

Represents CombustionVehicleConsumption.speedConsumption property of the CombustionEngine.

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

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

Map used to determine fuel consumption at different speeds.