ElectricEngineProperty
public enum ElectricEngineProperty
Electric engine property attributes.
Each ElectricEngineProperty
represents one property of the
ElectricEngine
model, and shares its PropertyID
.
Used for updating vehicle’s electric engine state via
updateVehicleProperties(_:)
.
-
Represents
currentCharge
property of the vehicle.Declaration
Swift
case currentCharge(Measurement<UnitEnergy>)
-
Represents
maxCharge
property of the vehicle.Declaration
Swift
case maxCharge(Measurement<UnitEnergy>)
-
Represents
altitudeChangeEnergy
property of the vehicle.Declaration
Swift
case altitudeChangeEnergy(AltitudeChangeEnergy)
-
Represents
auxiliaryPower
property of the vehicle. RequiresspeedConsumption(_:)
to be set.Declaration
Swift
case auxiliaryPower(Measurement<UnitPower>)
-
Represents
speedConsumption
property of the vehicle.Declaration
Swift
case speedConsumption([Measurement<UnitSpeed> : Measurement<TTUnitElectricEfficiency>])
-
Represents
velocityChange
property of the vehicle.Declaration
Swift
case velocityChangeEfficiency(VelocityChangeEfficiency)
-
Represents
altitudeChange
property of the vehicle.Declaration
Swift
case altitudeChangeEfficiency(AltitudeChangeEfficiency)
-
Represents
batteryCurve
property of the vehicle.Declaration
Swift
case batteryCurve([Measurement<UnitEnergy> : Measurement<UnitPower>])
-
Represents
chargingConnectors
property of the vehicle.Declaration
Swift
case chargingConnectors([ChargingConnector])
-
Represents
chargingTimeOffset
property of the vehicle.Declaration
Swift
case chargingTimeOffset(Measurement<UnitDuration>)
-
Unique identifier of the property.
Declaration
Swift
public var id: PropertyID { get }