public interface IModelChangeListener
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
UD_BATCH_MODE_CHANGED_ACTION |
static java.lang.String |
UD_BATTERY_DEVICE_WRITE_MODE_CHANGED_ACTION |
static java.lang.String |
UD_CLIENT_HEART_BEAT_EVENT |
static java.lang.String |
UD_DEVICE_SPECIFIC_EVENT |
static java.lang.String |
UD_DISCOVERING_NODES_ACTION
global
|
static java.lang.String |
UD_DISCOVERING_NODES_COMPLETE_ACTION |
static java.lang.String |
UD_FOLDER_ADDED_ACTION |
static java.lang.String |
UD_FOLDER_REMOVED_ACTION |
static java.lang.String |
UD_FOLDER_RENAMED_ACTION
Folders
|
static java.lang.String |
UD_GROUP_ADDED_ACTION |
static java.lang.String |
UD_GROUP_REMOVED_ACTION |
static java.lang.String |
UD_GROUP_RENAMED_ACTION
groups
|
static java.lang.String |
UD_INTERNET_ACCESS_DISABLED_ACTION |
static java.lang.String |
UD_INTERNET_ACCESS_ENABLED_ACTION |
static java.lang.String |
UD_INTERNET_ACCESS_EVENT |
static java.lang.String |
UD_INTERNET_ACCESS_FAILED_ACTION |
static java.lang.String |
UD_LINKER_EVENT
Gas _17; device.model.gas.IGasMeterListener
|
static java.lang.String |
UD_LINKER_EVENT_CLEAR |
static java.lang.String |
UD_LINKER_EVENT_DEVICE_STATUS |
static java.lang.String |
UD_NETWORK_RENAMED_ACTION |
static java.lang.String |
UD_NODE_ADDED_ACTION |
static java.lang.String |
UD_NODE_CHANGE_LINK_ACTION |
static java.lang.String |
UD_NODE_CLEAR_ERROR_ACTION |
static java.lang.String |
UD_NODE_DEVICE_ID_CHANGED |
static java.lang.String |
UD_NODE_DEVICE_PROPERTY_CHANGED
Properties
|
static java.lang.String |
UD_NODE_ENABLED_ACTION |
static java.lang.String |
UD_NODE_HAS_PENDING_DEVICE_WRITES_ACTION |
static java.lang.String |
UD_NODE_IN_ERROR_ACTION |
static java.lang.String |
UD_NODE_MOVED_ACTION |
static java.lang.String |
UD_NODE_PARENT_CHANGED_ACTION |
static java.lang.String |
UD_NODE_POWER_INFO_CHANGED_ACTION |
static java.lang.String |
UD_NODE_REMOVED_ACTION |
static java.lang.String |
UD_NODE_REMOVED_FROM_GROUP_ACTION |
static java.lang.String |
UD_NODE_RENAMED_ACTION
nodes
|
static java.lang.String |
UD_NODE_REVISED_ACTION |
static java.lang.String |
UD_NODE_SUPPORTED_TYPE_INFO_CHANGED |
static java.lang.String |
UD_NODE_WRITING_TO_DEVICE_ACTION |
static java.lang.String |
UD_NODES_UPDATED_EVENT
different for each protocol
|
static java.lang.String |
UD_NOTIFICATION_SETTINGS_UPDATED_ACTION |
static java.lang.String |
UD_NTP_COMM_FAILED_ACTION |
static java.lang.String |
UD_NTP_SETTINGS_UPDATED_ACTION |
static java.lang.String |
UD_PROGRESS_EVENT_UPDATE |
static java.lang.String |
UD_PROGRESS_UPDATED_EVENT |
static java.lang.String |
UD_SYS_CONFIG_UPDATED_EVENT |
static java.lang.String |
UD_SYSTEM_BUSY_EVENT |
static java.lang.String |
UD_SYSTEM_IS_BUSY_ACTION |
static java.lang.String |
UD_SYSTEM_IS_IDLE_ACTION |
static java.lang.String |
UD_SYSTEM_IS_IN_SAFE_MODE_ACTION |
static java.lang.String |
UD_SYSTEM_IS_NOT_BUSY_ACTION |
static java.lang.String |
UD_TIME_CHANGED_ACTION |
static java.lang.String |
UD_TIME_CONFIG_CHANGED_ACTION |
static java.lang.String |
UD_TRIGGER_EVENT_GET_STATUS |
static java.lang.String |
UD_TRIGGER_EVENT_INFO_STRING |
static java.lang.String |
UD_TRIGGER_EVENT_KEY_CHANGED |
static java.lang.String |
UD_TRIGGER_EVENT_LEARN_IR |
static java.lang.String |
UD_TRIGGER_EVENT_SCHEDULE |
static java.lang.String |
UD_TRIGGER_EVENT_STATUS |
static java.lang.String |
UD_TRIGGER_EVENT_VAR_INIT |
static java.lang.String |
UD_TRIGGER_EVENT_VAR_STATUS |
static java.lang.String |
UD_TRIGGER_UPDATED_EVENT |
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 |
onNodeSupportedTypeInfoChanged(UDProxyDevice device,
java.lang.String nodeAddress)
Notifies the client that the supported types for this node have
changed.
|
void |
onNodeToGroupRoleChanged(UDProxyDevice device,
UDNode node,
UDGroup group,
char new_role)
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
|
static final java.lang.String UD_CLIENT_HEART_BEAT_EVENT
static final java.lang.String UD_TRIGGER_UPDATED_EVENT
static final java.lang.String UD_TRIGGER_EVENT_STATUS
static final java.lang.String UD_TRIGGER_EVENT_GET_STATUS
static final java.lang.String UD_TRIGGER_EVENT_KEY_CHANGED
static final java.lang.String UD_TRIGGER_EVENT_INFO_STRING
static final java.lang.String UD_TRIGGER_EVENT_LEARN_IR
static final java.lang.String UD_TRIGGER_EVENT_SCHEDULE
static final java.lang.String UD_TRIGGER_EVENT_VAR_STATUS
static final java.lang.String UD_TRIGGER_EVENT_VAR_INIT
static final java.lang.String UD_DEVICE_SPECIFIC_EVENT
static final java.lang.String UD_NODES_UPDATED_EVENT
static final java.lang.String UD_NODE_RENAMED_ACTION
static final java.lang.String UD_NODE_REMOVED_ACTION
static final java.lang.String UD_NODE_ADDED_ACTION
static final java.lang.String UD_NODE_REVISED_ACTION
static final java.lang.String UD_NODE_IN_ERROR_ACTION
static final java.lang.String UD_NODE_CLEAR_ERROR_ACTION
static final java.lang.String UD_NODE_ENABLED_ACTION
static final java.lang.String UD_NODE_PARENT_CHANGED_ACTION
static final java.lang.String UD_NODE_HAS_PENDING_DEVICE_WRITES_ACTION
static final java.lang.String UD_NODE_WRITING_TO_DEVICE_ACTION
static final java.lang.String UD_NODE_POWER_INFO_CHANGED_ACTION
static final java.lang.String UD_NODE_DEVICE_ID_CHANGED
static final java.lang.String UD_NODE_SUPPORTED_TYPE_INFO_CHANGED
static final java.lang.String UD_NODE_DEVICE_PROPERTY_CHANGED
static final java.lang.String UD_GROUP_RENAMED_ACTION
static final java.lang.String UD_GROUP_REMOVED_ACTION
static final java.lang.String UD_GROUP_ADDED_ACTION
static final java.lang.String UD_NODE_MOVED_ACTION
static final java.lang.String UD_NODE_CHANGE_LINK_ACTION
static final java.lang.String UD_NODE_REMOVED_FROM_GROUP_ACTION
static final java.lang.String UD_FOLDER_RENAMED_ACTION
static final java.lang.String UD_FOLDER_REMOVED_ACTION
static final java.lang.String UD_FOLDER_ADDED_ACTION
static final java.lang.String UD_DISCOVERING_NODES_ACTION
static final java.lang.String UD_DISCOVERING_NODES_COMPLETE_ACTION
static final java.lang.String UD_NETWORK_RENAMED_ACTION
static final java.lang.String UD_SYS_CONFIG_UPDATED_EVENT
static final java.lang.String UD_TIME_CHANGED_ACTION
static final java.lang.String UD_TIME_CONFIG_CHANGED_ACTION
static final java.lang.String UD_NTP_SETTINGS_UPDATED_ACTION
static final java.lang.String UD_NOTIFICATION_SETTINGS_UPDATED_ACTION
static final java.lang.String UD_NTP_COMM_FAILED_ACTION
static final java.lang.String UD_BATCH_MODE_CHANGED_ACTION
static final java.lang.String UD_BATTERY_DEVICE_WRITE_MODE_CHANGED_ACTION
static final java.lang.String UD_SYSTEM_BUSY_EVENT
static final java.lang.String UD_SYSTEM_IS_NOT_BUSY_ACTION
static final java.lang.String UD_SYSTEM_IS_BUSY_ACTION
static final java.lang.String UD_SYSTEM_IS_IDLE_ACTION
static final java.lang.String UD_SYSTEM_IS_IN_SAFE_MODE_ACTION
static final java.lang.String UD_INTERNET_ACCESS_EVENT
static final java.lang.String UD_INTERNET_ACCESS_DISABLED_ACTION
static final java.lang.String UD_INTERNET_ACCESS_ENABLED_ACTION
static final java.lang.String UD_INTERNET_ACCESS_FAILED_ACTION
static final java.lang.String UD_PROGRESS_UPDATED_EVENT
static final java.lang.String UD_PROGRESS_EVENT_UPDATE
static final java.lang.String UD_LINKER_EVENT
static final java.lang.String UD_LINKER_EVENT_DEVICE_STATUS
static final java.lang.String UD_LINKER_EVENT_CLEAR
void onModelChanged(UDProxyDevice device, UDControl control, java.lang.Object value, UDNode node)
UDControl
changed. i.e.
The status was changed to on or a switch was turned off, etc.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 affectedvoid onDeviceOffLine(UDProxyDevice device)
device
- - the UDProxyDevice
which is no longer reachablevoid onDeviceOnLine(UDProxyDevice device)
device
- - the UDProxyDevice
which is on-linevoid onNewDevice(UDProxyDevice device)
device
- - the UDProxyDevice
which has been discoveredvoid onInternetAccessUpdated(UDProxyDevice device, java.lang.String url, java.lang.String action)
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:
UD_INTERNET_ACCESS_ENABLED_ACTION
UD_INTERNET_ACCESS_DISABLED_ACTION
UD_INTERNET_ACCESS_FAILED_ACTION
void onDeviceSpecific(UDProxyDevice device, java.lang.String action, java.lang.String node, XMLElement ei)
device
- The UDProxyDevice
originating this eventaction
- The action to perform based on this eventnode
- (if any) to which this action was performedei
- Detailed status informationvoid onProgress(UDProxyDevice device, java.lang.String action, XMLElement ei)
device
- The UDProxyDevice
originating this eventaction
- The action to perform based on this eventei
- Detailed status informationvoid onLinkerEvent(UDProxyDevice device, java.lang.String action, XMLElement ei)
device
- The UDProxyDevice
originating this eventaction
- The action to perform based on this eventei
- Detailed status informationvoid onTriggerStatus(UDProxyDevice device, java.lang.String action, XMLElement ei)
device
- The UDProxyDevice
originating this eventaction
- The action to perform based on this eventei
- Detailed status informationvoid onDiscoveringNodes(UDProxyDevice device)
device
- - the UDProxyDevice
originating this eventvoid onNodeDiscoveryStopped(UDProxyDevice device)
device
- - the UDProxyDevice
originating this eventvoid onNetworkRenamed(UDProxyDevice device, java.lang.String newName)
device
- - the UDProxyDevice
originating this eventnewName
- - the new name for networkvoid onNewNode(UDProxyDevice device, UDNode newNode)
device
- - the UDProxyDevice
originating this eventnewNode
- - the new UDNode
which was addedvoid onNodeRevised(UDProxyDevice device, UDNode node)
device
- - the UDProxyDevice
originating this eventnode
- - the new UDNode
which was revisedvoid onNodeRenamed(UDProxyDevice device, UDNode node)
device
- - the UDProxyDevice
originating this eventnode
- - the UDNode
which was renamed. The
UDNode
will have the new name.void onNodeRemoved(UDProxyDevice device, java.lang.String nodeAddress)
device
- - the UDProxyDevice
originating this eventnodeAddress
- - the address of the node which has been removedvoid onNodeDeviceIdChanged(UDProxyDevice device, UDNode node)
device
- - the UDProxyDevice
originating this eventnode
- - the UDNode
void onNodeSupportedTypeInfoChanged(UDProxyDevice device, java.lang.String nodeAddress)
device
- - the UDProxyDevice
originating this eventnodeAddress
- - the address of the nodevoid onNodeError(UDProxyDevice device, UDNode node)
device
- - the UDProxyDevice
originating this eventnode
- - the UDNode
that is in errorvoid onNodeErrorCleared(UDProxyDevice device, UDNode node)
device
- - the UDProxyDevice
originating this eventnode
- - the UDNode
that was in errorvoid onNodeEnabled(UDProxyDevice device, UDNode node, boolean b)
device
- - the UDProxyDevice
originating this eventnode
- - the UDNode
that is enabled or disabledb
- - if true, node is enabled, otherwise node is disabledvoid onNodeParentChanged(UDProxyDevice device, UDNode node, UDNode newParent)
void onNodeHasPendingDeviceWrites(UDProxyDevice device, UDNode node, boolean hasPending)
node
- The UDNode
that changedhasPending
- Flag indicating whether device writes waiting to be written or not.void onNodeIsWritingToDevice(UDProxyDevice device, UDNode node, boolean isWriting)
node
- The UDNode
that changedisWriting
- Flag indicating whether data is currently being written to the device or not.void onNodeDevicePropertyChanged(UDProxyDevice device, UDNode node, com.universaldevices.common.properties.UDProperty<?> property)
node
- The UDNode
that changedproperty
- The property that changed.void onNodeDevicePropertiesRefreshed(UDProxyDevice device, UDNode node)
node
- The UDNode
that changedvoid onNodeDevicePropertiesRefreshedComplete(UDProxyDevice proxyDevice)
proxyDevice
- void onNewGroup(UDProxyDevice device, UDGroup newGroup)
device
- - the UDProxyDevice
originating this eventnewGroup
- - the new UDGroup
which was addedvoid onGroupRenamed(UDProxyDevice device, UDGroup group)
device
- - the UDProxyDevice
originating this eventgroup
- - the UDGroup
which was renamed. The
UDGroup
will have the new name.void onGroupRemoved(UDProxyDevice device, java.lang.String groupAddress)
device
- - the UDProxyDevice
originating this eventgroupAddress
- - the address of the group which has been removedvoid onNodeRemovedFromGroup(UDProxyDevice device, UDNode node, UDGroup group)
device
- - the UDProxyDevice
originating this eventnode
- - the UDNode
which is removed from the groupgroup
- - the UDGroup
from which the node was removedvoid onNodeMoved(UDProxyDevice device, UDNode node, UDGroup group, char role)
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/respondervoid onNewFolder(UDProxyDevice device, UDFolder newFolder)
device
- - the UDProxyDevice
originating this eventnewFolder
- - the new UDFolder
which was addedvoid onFolderRenamed(UDProxyDevice device, UDFolder folder)
device
- - the UDProxyDevice
originating this eventfolder
- - the UDFolder
which was renamed. The
UDFolder
will have the new name.void onFolderRemoved(UDProxyDevice device, java.lang.String folderAddress)
device
- - the UDProxyDevice
originating this eventfolderAddress
- - the address of the group which has been removedvoid onNodeToGroupRoleChanged(UDProxyDevice device, UDNode node, UDGroup group, char new_role)
device
- - the UDProxyDevice
originating this eventnode
- - the UDNode
whose role changedgroup
- - the UDGroup
whose role to the node changednew_role
- - 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/respondervoid onSystemStatus(UDProxyDevice device, java.lang.String event)
device
- - the UDProxyDevice
originating this eventevent
- - can be any of UD_SYSTEM_IS_NOT_BUSY_ACTION
UD_SYSTEM_IS_BUSY_ACTION
UD_SYSTEM_IS_IDLE_ACTION
void onSystemConfigChanged(UDProxyDevice device, java.lang.String event, XMLElement eventInfo)
device
- - the UDProxyDevice
originating this eventevent
- - can be any of UD_TIME_CHANGED_ACTION
UD_TIME_CONFIG_CHANGED_ACTION
UD_NTP_SETTINGS_UPDATED_ACTION
UD_NOTIFICATION_SETTINGS_UPDATED_ACTION
UD_NTP_COMM_FAILED_ACTION
eventInfo
- - any additional information sent by ISYvoid onNodePowerInfoChanged(UDProxyDevice device, UDNode node)
node
- - the nodedevice
- - UDProxyDevice