# ElectricalEnergyMeasurementTrait.MeasurementAccuracyRangeStruct

# ElectricalEnergyMeasurementTrait.MeasurementAccuracyRangeStruct


```
class ElectricalEnergyMeasurementTrait.MeasurementAccuracyRangeStruct : ClusterStruct
```

<br />

*** ** * ** ***

The accuracy of a measurement for a range of measurement values, shown as a maximum +/- percentage of the true value, a maximum +/- fixed value of the true value, or both.

## 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.MeasurementAccuracyRangeStruct.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.MeasurementAccuracyRangeStruct#MeasurementAccuracyRangeStruct(kotlin.Long,kotlin.Long,com.google.home.matter.serialization.OptionalValue,com.google.home.matter.serialization.OptionalValue,com.google.home.matter.serialization.OptionalValue,com.google.home.matter.serialization.OptionalValue,com.google.home.matter.serialization.OptionalValue,com.google.home.matter.serialization.OptionalValue)( rangeMin: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html, rangeMax: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html, percentMax: https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html>, percentMin: https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html>, percentTypical: https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html>, fixedMax: https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-long/index.html>, fixedMin: https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-long/index.html>, fixedTypical: https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-long/index.html> )` Creates the MeasurementAccuracyRangeStruct 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.MeasurementAccuracyRangeStruct#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.MeasurementAccuracyRangeStruct#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://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-long/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalEnergyMeasurementTrait.MeasurementAccuracyRangeStruct#fixedMax()` The maximum +/- fixed accuracy for the associated measurement, in the unit indicated by `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalEnergyMeasurementTrait.MeasurementAccuracyStruct#measurementType()`. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-long/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalEnergyMeasurementTrait.MeasurementAccuracyRangeStruct#fixedMin()` The minimum +/- fixed accuracy for the associated measurement, in the unit indicated by `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalEnergyMeasurementTrait.MeasurementAccuracyStruct#measurementType()`. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-long/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalEnergyMeasurementTrait.MeasurementAccuracyRangeStruct#fixedTypical()` The typical +/- fixed accuracy for the associated measurement, in the unit indicated by `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalEnergyMeasurementTrait.MeasurementAccuracyStruct#measurementType()`. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalEnergyMeasurementTrait.MeasurementAccuracyRangeStruct#percentMax()` The maximum +/- percentage accuracy for the associated measurement. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalEnergyMeasurementTrait.MeasurementAccuracyRangeStruct#percentMin()` The minimum +/- percentage accuracy for the associated measurement. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalEnergyMeasurementTrait.MeasurementAccuracyRangeStruct#percentTypical()` The typical +/- percentage accuracy for the associated measurement. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalEnergyMeasurementTrait.MeasurementAccuracyRangeStruct#rangeMax()` The maximum measurement value for the specified level of accuracy. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalEnergyMeasurementTrait.MeasurementAccuracyRangeStruct#rangeMin()` The minimum measurement value for the specified level of accuracy. |

## Public constructors

### MeasurementAccuracyRangeStruct

```
MeasurementAccuracyRangeStruct(
    rangeMin: Long = 0,
    rangeMax: Long = 0,
    percentMax: OptionalValue<UShort> = OptionalValue.absent(),
    percentMin: OptionalValue<UShort> = OptionalValue.absent(),
    percentTypical: OptionalValue<UShort> = OptionalValue.absent(),
    fixedMax: OptionalValue<ULong> = OptionalValue.absent(),
    fixedMin: OptionalValue<ULong> = OptionalValue.absent(),
    fixedTypical: OptionalValue<ULong> = OptionalValue.absent()
)
```

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

### fixedMax

```
val fixedMax: OptionalValue<ULong>
```

The maximum +/- fixed accuracy for the associated measurement, in the unit indicated by `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalEnergyMeasurementTrait.MeasurementAccuracyStruct#measurementType()`.

### fixedMin

```
val fixedMin: OptionalValue<ULong>
```

The minimum +/- fixed accuracy for the associated measurement, in the unit indicated by `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalEnergyMeasurementTrait.MeasurementAccuracyStruct#measurementType()`.

### fixedTypical

```
val fixedTypical: OptionalValue<ULong>
```

The typical +/- fixed accuracy for the associated measurement, in the unit indicated by `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalEnergyMeasurementTrait.MeasurementAccuracyStruct#measurementType()`.

### percentMax

```
val percentMax: OptionalValue<UShort>
```

The maximum +/- percentage accuracy for the associated measurement.

### percentMin

```
val percentMin: OptionalValue<UShort>
```

The minimum +/- percentage accuracy for the associated measurement.

### percentTypical

```
val percentTypical: OptionalValue<UShort>
```

The typical +/- percentage accuracy for the associated measurement.

### rangeMax

```
val rangeMax: Long
```

The maximum measurement value for the specified level of accuracy. The value of this field is greater than the value of the `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalEnergyMeasurementTrait.MeasurementAccuracyRangeStruct#rangeMin()` field and greater than or equal to the value of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalEnergyMeasurementTrait.MeasurementAccuracyStruct#minMeasuredValue()`. The value of this field is less than or equal to the value of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalEnergyMeasurementTrait.MeasurementAccuracyStruct#maxMeasuredValue()`.

### rangeMin

```
val rangeMin: Long
```

The minimum measurement value for the specified level of accuracy. The value of this field is greater than or equal to the value of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalEnergyMeasurementTrait.MeasurementAccuracyStruct#minMeasuredValue()`. The value of this field is less than or equal to the value of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalEnergyMeasurementTrait.MeasurementAccuracyStruct#maxMeasuredValue()`.