Class PlugChangeOnEvent
java.lang.Object
org.openremote.agent.protocol.tradfri.device.event.DeviceEvent
org.openremote.agent.protocol.tradfri.device.event.PlugEvent
org.openremote.agent.protocol.tradfri.device.event.PlugChangeEvent
org.openremote.agent.protocol.tradfri.device.event.PlugChangeOnEvent
The class that represents a plug on / off state changed event that occurred to an IKEA TRÃ…DFRI plug
-
Constructor Summary
ConstructorsConstructorDescriptionPlugChangeOnEvent(Plug plug, PlugProperties oldProperties, PlugProperties newProperties) Construct the PlugChangeOnEvent class -
Method Summary
Methods inherited from class org.openremote.agent.protocol.tradfri.device.event.PlugChangeEvent
getNewProperties, getOldPropertiesMethods inherited from class org.openremote.agent.protocol.tradfri.device.event.DeviceEvent
getDevice
-
Constructor Details
-
PlugChangeOnEvent
Construct the PlugChangeOnEvent class- Parameters:
plug- The plug for which the event occurredoldProperties- The old properties of the plug (from before the event occurred)newProperties- The new properties of the plug (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)
-