# ElectricalEnergyMeasurementTrait.MeasurementAccuracyStruct

# ElectricalEnergyMeasurementTrait.MeasurementAccuracyStruct


```
class ElectricalEnergyMeasurementTrait.MeasurementAccuracyStruct : ClusterStruct
```

<br />

*** ** * ** ***

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

| ### Nested types |
|---|
| `@https://developers.home.google.com/reference/kotlin/com/google/home/annotation/HomeExperimentalGenericApi enum https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalEnergyMeasurementTrait.MeasurementAccuracyStruct.StructFields : https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html, https://developers.home.google.com/reference/kotlin/com/google/home/Field` Descriptor enum for this struct's fields. |

| ### Public constructors |
|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalEnergyMeasurementTrait.MeasurementAccuracyStruct#MeasurementAccuracyStruct(com.google.home.matter.standard.ElectricalEnergyMeasurementTrait.MeasurementTypeEnum,kotlin.Boolean,kotlin.Long,kotlin.Long,kotlin.collections.List)( measurementType: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalEnergyMeasurementTrait.MeasurementTypeEnum, measured: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html, minMeasuredValue: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html, maxMeasuredValue: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html, accuracyRanges: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalEnergyMeasurementTrait.MeasurementAccuracyRangeStruct> )` Creates the MeasurementAccuracyStruct class. |

| ### Public functions |
|---|---|
| `open https://developers.home.google.com/reference/kotlin/com/google/home/StructDescriptor` | `@https://developers.home.google.com/reference/kotlin/com/google/home/annotation/HomeExperimentalGenericApi https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalEnergyMeasurementTrait.MeasurementAccuracyStruct#getDescriptor()()` Returns the descriptor for the struct. |
| `open https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html?` | `@https://developers.home.google.com/reference/kotlin/com/google/home/annotation/HomeExperimentalGenericApi https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalEnergyMeasurementTrait.MeasurementAccuracyStruct#getFieldValueById(kotlin.UInt)(tagId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html)` Returns the value of the field for the given tag ID. |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalEnergyMeasurementTrait.MeasurementAccuracyRangeStruct>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalEnergyMeasurementTrait.MeasurementAccuracyStruct#accuracyRanges()` A list of measurement ranges and their associated accuracies. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalEnergyMeasurementTrait.MeasurementAccuracyStruct#maxMeasuredValue()` The maximum possible value of the measured value. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalEnergyMeasurementTrait.MeasurementAccuracyStruct#measured()` Whether the associated measurement was directly measured. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalEnergyMeasurementTrait.MeasurementTypeEnum` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalEnergyMeasurementTrait.MeasurementAccuracyStruct#measurementType()` The measurement type for the accuracy provided. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalEnergyMeasurementTrait.MeasurementAccuracyStruct#minMeasuredValue()` The minimum possible value of the measured value. |

## Public constructors

### MeasurementAccuracyStruct

```
MeasurementAccuracyStruct(
    measurementType: ElectricalEnergyMeasurementTrait.MeasurementTypeEnum = MeasurementTypeEnum.Unspecified,
    measured: Boolean = false,
    minMeasuredValue: Long = 0,
    maxMeasuredValue: Long = 0,
    accuracyRanges: List<ElectricalEnergyMeasurementTrait.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<ElectricalEnergyMeasurementTrait.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: ElectricalEnergyMeasurementTrait.MeasurementTypeEnum
```

The measurement type for the accuracy provided.

### minMeasuredValue

```
val minMeasuredValue: Long
```

The minimum possible value of the measured value.