TraitFactory

open class TraitFactory<T : Trait>


Wrapper for companions to subclass to create shorter syntax. For example, device.trait(OnOff) versus device.trait(OnOff.factory).

Summary

Public constructors

Public properties

InternalTraitFactory<T>

the internal factory.

Public constructors

TraitFactory

<T : Trait> TraitFactory(factory: InternalTraitFactory<T>)

Public functions

getAttributeById

@HomeExperimentalApi
open fun getAttributeById(tagId: UInt): Field?

getAttributeByName

@HomeExperimentalApi
open fun getAttributeByName(name: String): Field?

Public properties

factory

val factoryInternalTraitFactory<T>

the internal factory.