ZoneManagementTrait.ZoneInformationStruct

class ZoneManagementTrait.ZoneInformationStruct : ClusterStruct


Encodes basic information about a zone without containing the specifics of how the zone is defined.

Summary

Nested types

Descriptor enum for this struct's fields.

Public constructors

Creates the ZoneInformationStruct class.

Public functions

open StructDescriptor

Returns the descriptor for the struct.

open Any?

Returns the value of the field for the given tag ID.

Public properties

OptionalValue<ZoneManagementTrait.TwoDCartesianZoneStruct>

Detailed information for the TwoDCartesianZone.

UShort

Unique ZoneID of the zone.

ZoneManagementTrait.ZoneSourceEnum

The ZoneSourceEnum value representing the source of the zone.

ZoneManagementTrait.ZoneTypeEnum

A ZoneTypeEnum value representing the type of the zone.

Public constructors

ZoneInformationStruct

ZoneInformationStruct(
    zoneId: UShort,
    zoneType: ZoneManagementTrait.ZoneTypeEnum = ZoneTypeEnum.TwoDCARTZone,
    zoneSource: ZoneManagementTrait.ZoneSourceEnum = ZoneSourceEnum.Mfg,
    twoDCartesianZone: OptionalValue<ZoneManagementTrait.TwoDCartesianZoneStruct> = OptionalValue.absent()
)

Creates the ZoneInformationStruct class.

Public functions

getDescriptor

@HomeExperimentalGenericApi
open fun getDescriptor(): StructDescriptor

Returns the descriptor for the struct.

getFieldValueById

@HomeExperimentalGenericApi
open fun getFieldValueById(tagId: UInt): Any?

Returns the value of the field for the given tag ID.

Public properties

twoDCartesianZone

val twoDCartesianZoneOptionalValue<ZoneManagementTrait.TwoDCartesianZoneStruct>

Detailed information for the TwoDCartesianZone.

zoneId

val zoneIdUShort

Unique ZoneID of the zone.

zoneSource

val zoneSourceZoneManagementTrait.ZoneSourceEnum

The ZoneSourceEnum value representing the source of the zone.

zoneType

val zoneTypeZoneManagementTrait.ZoneTypeEnum

A ZoneTypeEnum value representing the type of the zone.