The below table shows the mapping between the HomeDevice and Device methods.
HomeDevice Method |
Device Method |
Notes |
|---|---|---|
setUID |
N/A |
The method has no replacement in the Device interface. The UID of a functional item is unique and static for the whole system, and can not be changed. |
getUID |
getUID |
Mapped to the FunctionalItem.getUID() method. |
setName |
setName |
Mapped to the FunctionalItem.setName() method. |
getName |
getName |
Mapped to the FunctionalItem.getName() method. |
setVendor |
N/A |
The method has no replacement in the Device interface. In DA the device hardware vendor can be presented as a Functional Item attribute which by definition are unmodifiable. |
getVendor |
N/A |
The method has no replacement in the Device interface. In DA the device hardware vendor can be presented as a Functional Item attribute. |
setVersion |
N/A |
The method has no replacement in the Device interface. In DA the device hardware version can be presented as a Functional Item attribute which by definition are unmodifiable. |
getVersion |
N/A |
The method has no replacement in the Device interface. In DA the device hardware version can be presented as a Functional Item attribute. |
setType |
N/A |
The method has no replacement in the Device interface. |
getType |
N/A |
The method has no replacement in the Device interface. |
getStatus |
getStatus |
The method in the Device interface returns DA enum DeviceStatus which defines all possible device statuses. |
getError |
getError |
The method in the Device interface returns DeviceError which holds both the error code and error message. |
getTimestampAdded |
getTimestampCreated |
|
setProperty |
N/A |
The method has no replacement in the Device interface. In DA the home device properties are replaced with Functional Item attributes which by definition are unmodifiable. |
setProperties |
N/A |
The method has no replacement in the Device interface. In DA the home device properties are replaced with Functional Item attributes which by definition are unmodifiable. |
getProperties |
N/A |
The method has no replacement in the Device interface. In DA the home device properties are replaced with Functional Item attributes. |
getParent |
N/A |
The method has no replacement in the Device interface. The Device Access represents the physical device in a flat structure without parent-child hierarchy. |
getParentUID |
N/A |
The method has no replacement in the Device interface. The Device Access represents the physical device in a flat structure without parent-child hierarchy. |
getChildren |
N/A |
The method has no replacement in the Device interface. The Device Access represents the physical device in a flat structure without parent-child hierarchy. |
getChildUIDs |
N/A |
The method has no replacement in the Device interface. The Device Access represents the physical device in a flat structure without parent-child hierarchy. |
getProtocolAdapterInfo |
N/A |
The method has no replacement in the Device interface. |
getDeviceClassObject(String) |
getItem(String) |
The Device API method returns a set of device items for a certain object class name. The new device representation model allows to have more than one instance of a device item interface in a single device. For example, two Switch or Setpoint device items. |
getDeviceClassObject(Class) |
getItem(Class) |
The Device API method returns a set of device items for a certain object class. The new device representation model allows to have more than one instance of a device item interface in a single device. For example, two Switch or Setpoint device items. |
getDeviceClasses |
N/A |
The method has no replacement in the Device interface. |
getDeviceClassObjects |
getItems |
The Device API method returns a set of all device items. |
refresh |
N/A |
The method has no replacement in the Device interface. The feature for refresh of property values of the device is not supported in DA. |