Class TradfriLightAsset
java.lang.Object
org.openremote.model.asset.Asset<org.openremote.model.asset.impl.LightAsset>
org.openremote.model.asset.impl.LightAsset
org.openremote.agent.protocol.tradfri.TradfriLightAsset
- All Implemented Interfaces:
TradfriAsset,org.openremote.model.IdentifiableEntity<org.openremote.model.asset.impl.LightAsset>
@Entity
public class TradfriLightAsset
extends org.openremote.model.asset.impl.LightAsset
implements TradfriAsset
-
Nested Class Summary
Nested classes/interfaces inherited from class org.openremote.model.asset.Asset
org.openremote.model.asset.Asset.AssetSave -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.openremote.model.asset.AssetDescriptor<TradfriLightAsset>Fields inherited from class org.openremote.model.asset.impl.LightAsset
BRIGHTNESS, COLOUR_RGB, COLOUR_TEMPERATURE, ON_OFFFields inherited from class org.openremote.model.asset.Asset
accessPublicRead, attributes, createdOn, EMAIL, id, LOCATION, MANUFACTURER, MODEL, name, NOTES, parentId, path, realm, TAGS, type, versionFields inherited from interface org.openremote.agent.protocol.tradfri.TradfriAsset
DEVICE_ID -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedFor use by hydrators (i.e.TradfriLightAsset(String name) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEventHandlers(Device device, Consumer<org.openremote.model.attribute.AttributeEvent> attributeEventConsumer) static IntegerconvertBrightness(Integer value, boolean toPercentage) voidinitialiseAttributes(Device device) Methods inherited from class org.openremote.model.asset.impl.LightAsset
getBrightness, getColourRGB, getOnOff, getTemperature, setBrightness, setColourRGB, setOnOff, setTemperatureMethods inherited from class org.openremote.model.asset.Asset
addAttributes, addOrReplaceAttributes, getAttribute, getAttribute, getAttribute, getAttributes, getAttributesString, getCreatedOn, getEmail, getId, getLocation, getManufacturer, getMetaString, getModel, getName, getNotes, getParentId, getPath, getRealm, getTags, getType, getVersion, hasAttribute, hasAttribute, isAccessPublicRead, pathContains, setAccessPublicRead, setAttributes, setAttributes, setAttributes, setCreatedOn, setEmail, setId, setLocation, setManufacturer, setModel, setName, setNotes, setParent, setParentId, setRealm, setTags, setVersion, toString, toStringAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.openremote.agent.protocol.tradfri.TradfriAsset
getAttributes, getDeviceId, getId, setDeviceId
-
Field Details
-
DESCRIPTOR
-
-
Constructor Details
-
TradfriLightAsset
protected TradfriLightAsset()For use by hydrators (i.e. JPA/Jackson) -
TradfriLightAsset
-
-
Method Details
-
addEventHandlers
public void addEventHandlers(Device device, Consumer<org.openremote.model.attribute.AttributeEvent> attributeEventConsumer) - Specified by:
addEventHandlersin interfaceTradfriAsset
-
initialiseAttributes
- Specified by:
initialiseAttributesin interfaceTradfriAsset
-
convertBrightness
-