public class UDModelChangeListener extends java.lang.Object implements IModelChangeListener
UD_BATCH_MODE_CHANGED_ACTION, UD_BATTERY_DEVICE_WRITE_MODE_CHANGED_ACTION, UD_CLIENT_HEART_BEAT_EVENT, UD_DEVICE_SPECIFIC_EVENT, UD_DISCOVERING_NODES_ACTION, UD_DISCOVERING_NODES_COMPLETE_ACTION, UD_FOLDER_ADDED_ACTION, UD_FOLDER_REMOVED_ACTION, UD_FOLDER_RENAMED_ACTION, UD_GROUP_ADDED_ACTION, UD_GROUP_REMOVED_ACTION, UD_GROUP_RENAMED_ACTION, UD_INTERNET_ACCESS_DISABLED_ACTION, UD_INTERNET_ACCESS_ENABLED_ACTION, UD_INTERNET_ACCESS_EVENT, UD_INTERNET_ACCESS_FAILED_ACTION, UD_LINKER_EVENT, UD_LINKER_EVENT_CLEAR, UD_LINKER_EVENT_DEVICE_STATUS, UD_NETWORK_RENAMED_ACTION, UD_NODE_ADDED_ACTION, UD_NODE_CHANGE_LINK_ACTION, UD_NODE_CLEAR_ERROR_ACTION, UD_NODE_DEVICE_ID_CHANGED, UD_NODE_DEVICE_PROPERTY_CHANGED, UD_NODE_ENABLED_ACTION, UD_NODE_HAS_PENDING_DEVICE_WRITES_ACTION, UD_NODE_IN_ERROR_ACTION, UD_NODE_MOVED_ACTION, UD_NODE_PARENT_CHANGED_ACTION, UD_NODE_POWER_INFO_CHANGED_ACTION, UD_NODE_REMOVED_ACTION, UD_NODE_REMOVED_FROM_GROUP_ACTION, UD_NODE_RENAMED_ACTION, UD_NODE_REVISED_ACTION, UD_NODE_WRITING_TO_DEVICE_ACTION, UD_NODES_UPDATED_EVENT, UD_NOTIFICATION_SETTINGS_UPDATED_ACTION, UD_NTP_COMM_FAILED_ACTION, UD_NTP_SETTINGS_UPDATED_ACTION, UD_PROGRESS_EVENT_UPDATE, UD_PROGRESS_UPDATED_EVENT, UD_SYS_CONFIG_UPDATED_EVENT, UD_SYSTEM_BUSY_EVENT, UD_SYSTEM_IS_BUSY_ACTION, UD_SYSTEM_IS_IDLE_ACTION, UD_SYSTEM_IS_IN_SAFE_MODE_ACTION, UD_SYSTEM_IS_NOT_BUSY_ACTION, UD_TIME_CHANGED_ACTION, UD_TIME_CONFIG_CHANGED_ACTION, UD_TRIGGER_EVENT_GET_STATUS, UD_TRIGGER_EVENT_INFO_STRING, UD_TRIGGER_EVENT_KEY_CHANGED, UD_TRIGGER_EVENT_LEARN_IR, UD_TRIGGER_EVENT_SCHEDULE, UD_TRIGGER_EVENT_STATUS, UD_TRIGGER_EVENT_VAR_INIT, UD_TRIGGER_EVENT_VAR_STATUS, UD_TRIGGER_UPDATED_EVENT
Constructor and Description |
---|
UDModelChangeListener() |
Modifier and Type | Method and Description |
---|---|
void |
onDeviceOffLine(UDProxyDevice device)
Notifies the client that ISY is no longer reachable
|
void |
onDeviceOnLine(UDProxyDevice device)
Notifies the client that ISY is accessible and on-line.
|
void |
onDeviceSpecific(UDProxyDevice device,
java.lang.String action,
java.lang.String node,
XMLElement ei)
Notifies the client of any device specific changes.
|
void |
onDiscoveringNodes(UDProxyDevice device)
Notifies the client that the system is in Linking mode.
|
void |
onFolderRemoved(UDProxyDevice device,
java.lang.String folderAddress)
Notifies the client of the removal of a folder from the system.
|
void |
onFolderRenamed(UDProxyDevice device,
UDFolder folder)
Notifies the client of the change in name of a folder in the system.
|
void |
onGroupRemoved(UDProxyDevice device,
java.lang.String groupAddress)
Notifies the client of the removal of a group from the system.
|
void |
onGroupRenamed(UDProxyDevice device,
UDGroup group)
Notifies the client of the change in name of a group in the system.
|
void |
onInternetAccessUpdated(UDProxyDevice device,
java.lang.String url,
java.lang.String action)
Notifies the client of the status of internet access
|
void |
onLinkerEvent(UDProxyDevice device,
java.lang.String action,
XMLElement ei)
Notifies the client of a change during device linking
|
void |
onModelChanged(UDProxyDevice device,
UDControl control,
java.lang.Object value,
UDNode node)
Notifies the client that a
UDControl changed. |
void |
onNetworkRenamed(UDProxyDevice device,
java.lang.String newName)
Notifies the client of the name change in the top most node in the
device tree (network).
|
void |
onNewDevice(UDProxyDevice device)
Notifies the client that a new device was discovered.
|
void |
onNewFolder(UDProxyDevice device,
UDFolder newFolder)
Notifies the client of the addition of a new folder to the system.
|
void |
onNewGroup(UDProxyDevice device,
UDGroup newGroup)
Notifies the client of the addition of a new group/scene to the system.
|
void |
onNewNode(UDProxyDevice device,
UDNode newNode)
Notifies the client of the addition of a new node (device) to the system.
|
void |
onNodeDeviceIdChanged(UDProxyDevice device,
UDNode node)
Notifies the client that the address of the device represented by this
node has changed.
|
void |
onNodeDevicePropertiesRefreshed(UDProxyDevice device,
UDNode node)
Notifies the client that all the devices properties for a node were refreshed
|
void |
onNodeDevicePropertiesRefreshedComplete(UDProxyDevice proxyDevice)
Called after the properties for one or more nodes has been refreshed.
|
void |
onNodeDevicePropertyChanged(UDProxyDevice device,
UDNode node,
com.universaldevices.common.properties.UDProperty<?> property)
Notifies the client that a node property has changed
|
void |
onNodeDiscoveryStopped(UDProxyDevice device)
Notifies the client that the system is no longer in Linking mode.
|
void |
onNodeEnabled(UDProxyDevice device,
UDNode node,
boolean b)
Notifies the client that a node (device) in the system has either
been enabled or disabled
|
void |
onNodeError(UDProxyDevice device,
UDNode node)
Notifies the client that a node (device) in the system has encountered
an error (communications or otherwise)
|
void |
onNodeErrorCleared(UDProxyDevice device,
UDNode node)
Notifies the client that a node (device) in the system no longer has
an error (communications or otherwise)
|
void |
onNodeHasPendingDeviceWrites(UDProxyDevice device,
UDNode node,
boolean hasPending)
Notifies the client that a node's parent has changed
|
void |
onNodeIsWritingToDevice(UDProxyDevice device,
UDNode node,
boolean isWriting)
Notifies the client that a node's parent has changed
|
void |
onNodeMoved(UDProxyDevice device,
UDNode node,
UDGroup group,
char role)
Notifies the client that a node was moved into a group/scene
|
void |
onNodeParentChanged(UDProxyDevice device,
UDNode node,
UDNode newParent)
Notifies the client that a node's parent has changed
|
void |
onNodePowerInfoChanged(UDProxyDevice device,
UDNode node)
Notifies the clients that the node's power utilization information
has changed
|
void |
onNodeRemoved(UDProxyDevice device,
java.lang.String nodeAddress)
Notifies the client of the removal of a node (device) from the system.
|
void |
onNodeRemovedFromGroup(UDProxyDevice device,
UDNode node,
UDGroup group)
Notifies the client of the removal of a node from a group in the system.
|
void |
onNodeRenamed(UDProxyDevice device,
UDNode node)
Notifies the client of the change in name of a node in the system.
|
void |
onNodeRevised(UDProxyDevice device,
UDNode node)
Notifies the client of the revision of a node (device) to the system.
|
void |
onNodeToGroupRoleChanged(UDProxyDevice device,
UDNode node,
UDGroup group,
char newRole)
Notifies the client that the node's role for a group changed
|
void |
onProgress(UDProxyDevice device,
java.lang.String action,
XMLElement ei)
Notifies the client of the progress of actions currently being taken.
|
void |
onSystemConfigChanged(UDProxyDevice device,
java.lang.String event,
XMLElement eventInfo)
Notifies the client that system configurations have changed
|
void |
onSystemStatus(UDProxyDevice device,
java.lang.String event)
Notifies the client whether or not the system is busy
|
void |
onTriggerStatus(UDProxyDevice device,
java.lang.String action,
XMLElement ei)
Notifies the client of any changes in the schedules
|
public void onDeviceOffLine(UDProxyDevice device)
IModelChangeListener
onDeviceOffLine
in interface IModelChangeListener
device
- - the UDProxyDevice
which is no longer reachablepublic void onDeviceOnLine(UDProxyDevice device)
IModelChangeListener
onDeviceOnLine
in interface IModelChangeListener
device
- - the UDProxyDevice
which is on-linepublic void onDeviceSpecific(UDProxyDevice device, java.lang.String action, java.lang.String node, XMLElement ei)
IModelChangeListener
onDeviceSpecific
in interface IModelChangeListener
device
- The UDProxyDevice
originating this eventaction
- The action to perform based on this eventnode
- (if any) to which this action was performedei
- Detailed status informationpublic void onDiscoveringNodes(UDProxyDevice device)
IModelChangeListener
onDiscoveringNodes
in interface IModelChangeListener
device
- - the UDProxyDevice
originating this eventpublic void onFolderRemoved(UDProxyDevice device, java.lang.String folderAddress)
IModelChangeListener
onFolderRemoved
in interface IModelChangeListener
device
- - the UDProxyDevice
originating this eventfolderAddress
- - the address of the group which has been removedpublic void onFolderRenamed(UDProxyDevice device, UDFolder folder)
IModelChangeListener
onFolderRenamed
in interface IModelChangeListener
device
- - the UDProxyDevice
originating this eventfolder
- - the UDFolder
which was renamed. The
UDFolder
will have the new name.public void onGroupRemoved(UDProxyDevice device, java.lang.String groupAddress)
IModelChangeListener
onGroupRemoved
in interface IModelChangeListener
device
- - the UDProxyDevice
originating this eventgroupAddress
- - the address of the group which has been removedpublic void onGroupRenamed(UDProxyDevice device, UDGroup group)
IModelChangeListener
onGroupRenamed
in interface IModelChangeListener
device
- - the UDProxyDevice
originating this eventgroup
- - the UDGroup
which was renamed. The
UDGroup
will have the new name.public void onInternetAccessUpdated(UDProxyDevice device, java.lang.String url, java.lang.String action)
IModelChangeListener
onInternetAccessUpdated
in interface IModelChangeListener
device
- - the UDProxyDevice
originating this eventurl
- - if enabled, the url through which the device can be accessedaction
- - any of the following all defined in this interface:
IModelChangeListener.UD_INTERNET_ACCESS_ENABLED_ACTION
IModelChangeListener.UD_INTERNET_ACCESS_DISABLED_ACTION
IModelChangeListener.UD_INTERNET_ACCESS_FAILED_ACTION
public void onModelChanged(UDProxyDevice device, UDControl control, java.lang.Object value, UDNode node)
IModelChangeListener
UDControl
changed. i.e.
The status was changed to on or a switch was turned off, etc.onModelChanged
in interface IModelChangeListener
device
- - the UDProxyDevice
originating this eventcontrol
- - the UDControl
which was affectedvalue
- - the new value of the UDControl
node
- - the UDNode
(or linked device) which was affectedpublic void onNetworkRenamed(UDProxyDevice device, java.lang.String newName)
IModelChangeListener
onNetworkRenamed
in interface IModelChangeListener
device
- - the UDProxyDevice
originating this eventnewName
- - the new name for networkpublic void onNewDevice(UDProxyDevice device)
IModelChangeListener
onNewDevice
in interface IModelChangeListener
device
- - the UDProxyDevice
which has been discoveredpublic void onNewFolder(UDProxyDevice device, UDFolder newFolder)
IModelChangeListener
onNewFolder
in interface IModelChangeListener
device
- - the UDProxyDevice
originating this eventnewFolder
- - the new UDFolder
which was addedpublic void onNewGroup(UDProxyDevice device, UDGroup newGroup)
IModelChangeListener
onNewGroup
in interface IModelChangeListener
device
- - the UDProxyDevice
originating this eventnewGroup
- - the new UDGroup
which was addedpublic void onNewNode(UDProxyDevice device, UDNode newNode)
IModelChangeListener
onNewNode
in interface IModelChangeListener
device
- - the UDProxyDevice
originating this eventnewNode
- - the new UDNode
which was addedpublic void onNodeDeviceIdChanged(UDProxyDevice device, UDNode node)
IModelChangeListener
onNodeDeviceIdChanged
in interface IModelChangeListener
device
- - the UDProxyDevice
originating this eventnode
- - the UDNode
public void onNodeDevicePropertiesRefreshed(UDProxyDevice device, UDNode node)
IModelChangeListener
onNodeDevicePropertiesRefreshed
in interface IModelChangeListener
node
- The UDNode
that changedpublic void onNodeDevicePropertiesRefreshedComplete(UDProxyDevice proxyDevice)
IModelChangeListener
onNodeDevicePropertiesRefreshedComplete
in interface IModelChangeListener
public void onNodeDevicePropertyChanged(UDProxyDevice device, UDNode node, com.universaldevices.common.properties.UDProperty<?> property)
IModelChangeListener
onNodeDevicePropertyChanged
in interface IModelChangeListener
node
- The UDNode
that changedproperty
- The property that changed.public void onNodeDiscoveryStopped(UDProxyDevice device)
IModelChangeListener
onNodeDiscoveryStopped
in interface IModelChangeListener
device
- - the UDProxyDevice
originating this eventpublic void onNodeEnabled(UDProxyDevice device, UDNode node, boolean b)
IModelChangeListener
onNodeEnabled
in interface IModelChangeListener
device
- - the UDProxyDevice
originating this eventnode
- - the UDNode
that is enabled or disabledb
- - if true, node is enabled, otherwise node is disabledpublic void onNodeError(UDProxyDevice device, UDNode node)
IModelChangeListener
onNodeError
in interface IModelChangeListener
device
- - the UDProxyDevice
originating this eventnode
- - the UDNode
that is in errorpublic void onNodeErrorCleared(UDProxyDevice device, UDNode node)
IModelChangeListener
onNodeErrorCleared
in interface IModelChangeListener
device
- - the UDProxyDevice
originating this eventnode
- - the UDNode
that was in errorpublic void onNodeHasPendingDeviceWrites(UDProxyDevice device, UDNode node, boolean hasPending)
IModelChangeListener
onNodeHasPendingDeviceWrites
in interface IModelChangeListener
node
- The UDNode
that changedhasPending
- Flag indicating whether device writes waiting to be written or not.public void onNodeIsWritingToDevice(UDProxyDevice device, UDNode node, boolean isWriting)
IModelChangeListener
onNodeIsWritingToDevice
in interface IModelChangeListener
node
- The UDNode
that changedisWriting
- Flag indicating whether data is currently being written to the device or not.public void onNodeMoved(UDProxyDevice device, UDNode node, UDGroup group, char role)
IModelChangeListener
onNodeMoved
in interface IModelChangeListener
device
- - the UDProxyDevice
originating this eventnode
- - the UDNode
which was movedgroup
- - the UDGroup
which the node was moved torole
- - the role which the node plays in the group; currently this value
is restricted to Constants.NODE_IS_MASTER
i.e. this node is either
a master/controller of this group or a slave/responderpublic void onNodeParentChanged(UDProxyDevice device, UDNode node, UDNode newParent)
IModelChangeListener
onNodeParentChanged
in interface IModelChangeListener
node
- - the UDNode
that has its parent changednewParent
- - the UDNode
of the new parent - may be nullpublic void onNodePowerInfoChanged(UDProxyDevice device, UDNode node)
IModelChangeListener
onNodePowerInfoChanged
in interface IModelChangeListener
device
- - UDProxyDevicenode
- - the nodepublic void onNodeRemoved(UDProxyDevice device, java.lang.String nodeAddress)
IModelChangeListener
onNodeRemoved
in interface IModelChangeListener
device
- - the UDProxyDevice
originating this eventnodeAddress
- - the address of the node which has been removedpublic void onNodeRemovedFromGroup(UDProxyDevice device, UDNode node, UDGroup group)
IModelChangeListener
onNodeRemovedFromGroup
in interface IModelChangeListener
device
- - the UDProxyDevice
originating this eventnode
- - the UDNode
which is removed from the groupgroup
- - the UDGroup
from which the node was removedpublic void onNodeRenamed(UDProxyDevice device, UDNode node)
IModelChangeListener
onNodeRenamed
in interface IModelChangeListener
device
- - the UDProxyDevice
originating this eventnode
- - the UDNode
which was renamed. The
UDNode
will have the new name.public void onNodeRevised(UDProxyDevice device, UDNode node)
IModelChangeListener
onNodeRevised
in interface IModelChangeListener
device
- - the UDProxyDevice
originating this eventnode
- - the new UDNode
which was revisedpublic void onNodeToGroupRoleChanged(UDProxyDevice device, UDNode node, UDGroup group, char newRole)
IModelChangeListener
onNodeToGroupRoleChanged
in interface IModelChangeListener
device
- - the UDProxyDevice
originating this eventnode
- - the UDNode
whose role changedgroup
- - the UDGroup
whose role to the node changednewRole
- - the new role which the node plays in the group; currently this value
is restricted to Constants.NODE_IS_MASTER
i.e. this node is either
a master/controller of this group or a slave/responderpublic void onProgress(UDProxyDevice device, java.lang.String action, XMLElement ei)
IModelChangeListener
onProgress
in interface IModelChangeListener
device
- The UDProxyDevice
originating this eventaction
- The action to perform based on this eventei
- Detailed status informationpublic void onSystemConfigChanged(UDProxyDevice device, java.lang.String event, XMLElement eventInfo)
IModelChangeListener
onSystemConfigChanged
in interface IModelChangeListener
device
- - the UDProxyDevice
originating this eventevent
- - can be any of IModelChangeListener.UD_TIME_CHANGED_ACTION
IModelChangeListener.UD_TIME_CONFIG_CHANGED_ACTION
IModelChangeListener.UD_NTP_SETTINGS_UPDATED_ACTION
IModelChangeListener.UD_NOTIFICATION_SETTINGS_UPDATED_ACTION
IModelChangeListener.UD_NTP_COMM_FAILED_ACTION
eventInfo
- - any additional information sent by ISYpublic void onSystemStatus(UDProxyDevice device, java.lang.String event)
IModelChangeListener
onSystemStatus
in interface IModelChangeListener
device
- - the UDProxyDevice
originating this eventevent
- - can be any of IModelChangeListener.UD_SYSTEM_IS_NOT_BUSY_ACTION
IModelChangeListener.UD_SYSTEM_IS_BUSY_ACTION
IModelChangeListener.UD_SYSTEM_IS_IDLE_ACTION
public void onTriggerStatus(UDProxyDevice device, java.lang.String action, XMLElement ei)
IModelChangeListener
onTriggerStatus
in interface IModelChangeListener
device
- The UDProxyDevice
originating this eventaction
- The action to perform based on this eventei
- Detailed status informationpublic void onLinkerEvent(UDProxyDevice device, java.lang.String action, XMLElement ei)
IModelChangeListener
onLinkerEvent
in interface IModelChangeListener
device
- The UDProxyDevice
originating this eventaction
- The action to perform based on this eventei
- Detailed status information