Class LightChangeBrightnessEvent
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.LightChangeBrightnessEvent
The class that represents a light brightness changed event that occurred to an IKEA TRÃ…DFRI light
-
Constructor Summary
ConstructorsConstructorDescriptionLightChangeBrightnessEvent(Light light, LightProperties oldProperties, LightProperties newProperties) Construct the LightChangeBrightnessEvent class -
Method Summary
Modifier and TypeMethodDescriptionintGet the new brightness of the light (from after the event occurred)intGet the old brightness of the light (from before the event occurred)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
-
LightChangeBrightnessEvent
public LightChangeBrightnessEvent(Light light, LightProperties oldProperties, LightProperties newProperties) Construct the LightChangeBrightnessEvent 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
-
getOldBrightness
public int getOldBrightness()Get the old brightness of the light (from before the event occurred)- Returns:
- The old brightness of the light
-
getNewBrightness
public int getNewBrightness()Get the new brightness of the light (from after the event occurred)- Returns:
- The new brightness of the light
-