ElectricalPowerMeasurementTrait.MeasurementAccuracyStruct

class ElectricalPowerMeasurementTrait.MeasurementAccuracyStruct : ClusterStruct


The set of accuracy ranges for a given measurement, the maximum and minimum values for the measurement, and whether the measurement is directly measured or only estimated from other existing information.

Summary

Public constructors

MeasurementAccuracyStruct(
    measurementType: ElectricalPowerMeasurementTrait.MeasurementTypeEnum,
    measured: Boolean,
    minMeasuredValue: Long,
    maxMeasuredValue: Long,
    accuracyRanges: List<ElectricalPowerMeasurementTrait.MeasurementAccuracyRangeStruct>
)

Creates the MeasurementAccuracyStruct 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

List<ElectricalPowerMeasurementTrait.MeasurementAccuracyRangeStruct>

A list of measurement ranges and their associated accuracies.

Long

The maximum possible value of the measured value.

Boolean

Whether the associated measurement was directly measured.

ElectricalPowerMeasurementTrait.MeasurementTypeEnum

The measurement type for the accuracy provided.

Long

The minimum possible value of the measured value.

Public constructors

MeasurementAccuracyStruct

MeasurementAccuracyStruct(
    measurementType: ElectricalPowerMeasurementTrait.MeasurementTypeEnum = MeasurementTypeEnum.Unspecified,
    measured: Boolean = false,
    minMeasuredValue: Long = 0,
    maxMeasuredValue: Long = 0,
    accuracyRanges: List<ElectricalPowerMeasurementTrait.MeasurementAccuracyRangeStruct> = emptyList()
)

Creates the MeasurementAccuracyStruct 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

accuracyRanges

val accuracyRanges: List<ElectricalPowerMeasurementTrait.MeasurementAccuracyRangeStruct>

A list of measurement ranges and their associated accuracies.

maxMeasuredValue

val maxMeasuredValue: Long

The maximum possible value of the measured value.

measured

val measured: Boolean

Whether the associated measurement was directly measured. If this field is not set to true, then the associated measurement was estimated.

measurementType

val measurementType: ElectricalPowerMeasurementTrait.MeasurementTypeEnum

The measurement type for the accuracy provided.

minMeasuredValue

val minMeasuredValue: Long

The minimum possible value of the measured value.