ConsumptionModel
public class ConsumptionModel<T, U> where T : Dimension, U : Dimension
Describes capacity and consumption of a vehicle.
Important
This is a Public Preview API. It may be changed or removed at any time.-
Declaration
Swift
public init( speedConsumption: [Measurement<UnitSpeed>: Measurement<T>], auxiliaryPower: Measurement<U>? = nil ) throwsParameters
speedConsumptionSpecifies the speed-dependent component of consumption.
auxiliaryPowerSpecifies the amount of fuel or power consumed for sustaining auxiliary systems of the vehicle.
-
Specifies the speed-dependent component of consumption.
Declaration
Swift
public let speedConsumption: [Measurement<UnitSpeed> : Measurement<T>] -
Specifies the amount of fuel or power consumed for sustaining auxiliary systems of the vehicle.
Declaration
Swift
public let auxiliaryPower: Measurement<U>?
ConsumptionModel Class Reference