VehicleProperty
public enum VehicleProperty
Vehicle property attributes.
Each VehicleProperty
represents one property of the Vehicle
model, and shares its PropertyID
.
Used for updating vehicle state via
updateVehicleProperties(_:)
.
-
Represents
weight
property of the vehicle.Declaration
Swift
case weight(Measurement<UnitMass>)
-
Represents
axleWeight
property of the vehicle.Declaration
Swift
case axleWeight(Measurement<UnitMass>)
-
Represents
length
property of the vehicle.Declaration
Swift
case length(Measurement<UnitLength>)
-
Represents
width
property of the vehicle.Declaration
Swift
case width(Measurement<UnitLength>)
-
Represents
height
property of the vehicle.Declaration
Swift
case height(Measurement<UnitLength>)
-
Represents
maxSpeed
property of the vehicle.Declaration
Swift
case maxSpeed(Measurement<UnitSpeed>)
-
Represents
isCommercial
property of the vehicle.Declaration
Swift
case isCommercial(Bool)
-
Represents
hazmatClasses
property of the vehicle.Used for updating types of cargo, that may be classified as hazardous materials and restricted from some roads.
Declaration
Swift
case hazmatClasses(Set<HazmatClass>)
-
Represents
adrTunnelRestrictionCode
property of the vehicle.Used for updating the restriction level for tunnel usage according to the ‘European Agreement concerning the International Carriage of Dangerous Goods by Road’ (ADR) tunnel restrictions.
Declaration
Swift
case adrTunnelRestrictionCode(ADRTunnelRestrictionCode)
-
Represents
CombustionEngine
property of the vehicle.Declaration
Swift
case combustionEngine([CombustionEngineProperty])
-
Represents
ElectricEngine
property of the vehicle.Declaration
Swift
case electricEngine([ElectricEngineProperty])
-
Unique identifier of the property.
Declaration
Swift
public var id: PropertyID { get }