TraitAttributesCandidate

class TraitAttributesCandidate : StarterCandidate, StateReaderCandidate, ActionCandidate


Represents automation candidate nodes corresponding to a trait's attributes. These can be used in starters, state readers and actions.

Summary

Public constructors

TraitAttributesCandidate(
    entity: HasId,
    types: List<DeviceTypeFactory<DeviceType>>,
    trait: TraitFactory<Trait>,
    fields: Map<StringAttributeDetails>,
    fieldDetailsMap: Map<FieldFieldDetails>,
    unsupportedReasons: List<UnsupportedCandidateReason>
)

Public functions

open operator Boolean
equals(other: Any?)
open Int
open String

Public properties

open HasId
open Map<FieldFieldDetails>
open Map<StringAttributeDetails>

This property is deprecated. Use fieldDetailsMap instead

open TraitFactory<Trait>
open List<DeviceTypeFactory<DeviceType>>
open List<UnsupportedCandidateReason>

Public constructors

TraitAttributesCandidate

TraitAttributesCandidate(
    entity: HasId,
    types: List<DeviceTypeFactory<DeviceType>>,
    trait: TraitFactory<Trait>,
    fields: Map<StringAttributeDetails>,
    fieldDetailsMap: Map<FieldFieldDetails> = emptyMap(),
    unsupportedReasons: List<UnsupportedCandidateReason> = emptyList()
)

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

entity

open val entityHasId

fieldDetailsMap

open val fieldDetailsMapMap<FieldFieldDetails>

fields

open val fieldsMap<StringAttributeDetails>

trait

open val traitTraitFactory<Trait>

types

open val typesList<DeviceTypeFactory<DeviceType>>

unsupportedReasons

open val unsupportedReasonsList<UnsupportedCandidateReason>