Class LightChangeOnEvent
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.LightChangeOnEvent
The class that represents a light on / off state changed event that occurred to an IKEA TRÃ…DFRI light
-
Constructor Summary
ConstructorsConstructorDescriptionLightChangeOnEvent(Light light, LightProperties oldProperties, LightProperties newProperties) Construct the LightChangeOnEvent class -
Method Summary
Methods inherited from class org.openremote.agent.protocol.tradfri.device.event.LightChangeEvent
getNewProperties, getOldPropertiesMethods 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
-
LightChangeOnEvent
public LightChangeOnEvent(Light light, LightProperties oldProperties, LightProperties newProperties) Construct the LightChangeOnEvent 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
-
getOldOn
public boolean getOldOn()Get the old on / off state of the light (from before the event occurred)- Returns:
- The old on / off state of the light (true for on, false for off)
-
getNewOn
public boolean getNewOn()Get the new on / off state of the light (from after the event occurred)- Returns:
- The new on / off state of the light (true for on, false for off)
-