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 ) throws
Parameters
speedConsumption
Specifies the speed-dependent component of consumption.
auxiliaryPower
Specifies 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>?