Class LightChangeColourTemperatureEvent
java.lang.Object
org.openremote.agent.protocol.tradfri.device.event.DeviceEvent
org.openremote.agent.protocol.tradfri.device.event.LightEvent
org.openremote.agent.protocol.tradfri.device.event.LightChangeEvent
org.openremote.agent.protocol.tradfri.device.event.LightChangeColourTemperatureEvent
The class that represents a light colour temperature changed event that occurred to an IKEA TRÅDFRI light
-
Constructor Summary
ConstructorsConstructorDescriptionLightChangeColourTemperatureEvent
(Light light, LightProperties oldProperties, LightProperties newProperties) Construct the LightChangeColourTemperatureEvent class -
Method Summary
Modifier and TypeMethodDescriptionint
Get the new colour temperature of the light (from after the event occurred)int
Get the old colour temperature of the light (from before the event occurred)Methods inherited from class org.openremote.agent.protocol.tradfri.device.event.LightChangeEvent
getNewProperties, getOldProperties
Methods inherited from class org.openremote.agent.protocol.tradfri.device.event.LightEvent
getLight
Methods inherited from class org.openremote.agent.protocol.tradfri.device.event.DeviceEvent
getDevice
-
Constructor Details
-
LightChangeColourTemperatureEvent
public LightChangeColourTemperatureEvent(Light light, LightProperties oldProperties, LightProperties newProperties) Construct the LightChangeColourTemperatureEvent class- Parameters:
light
- The light for which the event occurredoldProperties
- The old properties of the light (from before the event occurred)newProperties
- The new properties of the light (from after the event occurred)
-
-
Method Details
-
getOldColourTemperature
public int getOldColourTemperature()Get the old colour temperature of the light (from before the event occurred)- Returns:
- The old colour temperature of the light
-
getNewColourTemperature
public int getNewColourTemperature()Get the new colour temperature of the light (from after the event occurred)- Returns:
- The new colour temperature of the light
-