VehicleZoneProperty
A zone property is used for VehicleProperty instances which are bound to vehicle area zones. The zone property can be in one of 4 states:
Unsupported: the property is not supported by the vehicle platform.
Unsupported for specific vehicle area: the property is supported for a specific vehicle area, but unsupported for a different vehicle area.
Supported but unavailable for a specific vehicle area: the property is temporarily unavailable or has invalid value. Indicated by the
value
field of the property being set tonull
.Supported and available for a specific vehicle area: the property is available and has a valid value.
Usage:
val unsupported = property == null
val unsupportedForRow3Right =
property.zoneProperties[ThirdRowRightSeat()] == null
val supportedButUnavailableForRow3Right =
property.zoneProperties[ThirdRowRightSeat()].value == null
val supportedAndAvailableForRow3Right =
property.zoneProperties[ThirdRowRightSeat()].value != null
Parameters
The area type as provided by VehicleArea.
The type of the property's value.
A map containing the properties per VehicleZone.
Functions
Returns the Set of the first VehicleZones that contain any of the given areas.
Returns the first supported VehicleZone that contains the given set of VehicleAreas. It can contain other areas as well, but it must contain the areas from the given set.
Returns VehicleProperty for a given VehicleArea if there is one.
Returns the first supported VehicleZone that contains the given VehicleArea.
Returns the Set of VehicleZones that contain exactly one of the given areas.
Returns the supported VehicleZone that contains only the given set of VehicleAreas.
Checks whether this VehicleProperty is currently available for a given VehicleArea.
Checks whether this VehicleProperty is supported by the vehicle for a given VehicleArea.