Class LightChangeEvent
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
- Direct Known Subclasses:
LightChangeBrightnessEvent,LightChangeColourEvent,LightChangeColourTemperatureEvent,LightChangeOnEvent
The class that represents a light changed event that occurred to an IKEA TRÃ…DFRI light
-
Constructor Summary
ConstructorsConstructorDescriptionLightChangeEvent(Light light, LightProperties oldProperties, LightProperties newProperties) Construct the LightChangeEvent class -
Method Summary
Modifier and TypeMethodDescriptionGet the new properties of the light (from after the event occurred)Get the old properties of the light (from before the event occurred)Methods inherited from class org.openremote.agent.protocol.tradfri.device.event.LightEvent
getLightMethods inherited from class org.openremote.agent.protocol.tradfri.device.event.DeviceEvent
getDevice
-
Constructor Details
-
LightChangeEvent
Construct the LightChangeEvent 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
-
getOldProperties
Get the old properties of the light (from before the event occurred)- Returns:
- The old properties of the light
-
getNewProperties
Get the new properties of the light (from after the event occurred)- Returns:
- The new properties of the light
-