Previous Topic

Next Topic

Book Contents

Book Index

API Classes/Interfaces Mapping

The following table shows the mapping between the HDM API classes/interfaces and the new DA API classes/interfaces.


HDM API Class/Interface

DA API Class/Interface

Notes

com.prosyst.mbs.services.hdm.HomeDevice

com.prosyst.mbs.services.da.Device

Home Devices in HDM are replaced with Devices in DA which are represented with this interface at API level. The most significant and key change in comparison with HomeDevice and its structure is the elimination of the parent-child hierarchy and relations. The device is represented via a flat model and contains all device functionalities as a set of Functional Items in a single Device instance for a single physical device.

com.prosyst.mbs.services.hdm.DeviceClassObject

N/A

In DA, a device functionality is represented as a Functional Item. The metadata representation in DA for the device functional interfaces is different than the representation for device classes. The XML file that defines the device class' metadata is replaced with the FIM API class ItemMetadata that holds the static Functional Item metadata. It is accessible via the FunctionalItem.getItemMetadata() method.

com.prosyst.mbs.services.hdm.HomeDeviceAdmin

com.prosyst.mbs.services.da.DeviceAdmin

This interface replaces the com.prosyst.mbs.services.hdm.HomeDeviceAdmin OSGi service in HDM. The DeviceAdmin is registered as a com.prosyst.mbs.services.fim.FunctionalItemFactory service.

com.prosyst.mbs.services.hdm.HomeDeviceEventConstants

com.prosyst.mbs.services.da.DeviceEventConstants

This interface acts as a holder for a set of common constants used for DA device events that replaces the com.prosyst.mbs.services.hdm.HomeDeviceEventConstants interface in HDM.

com.prosyst.mbs.services.hdm.HomeDeviceError

com.prosyst.mbs.services.da.DeviceError

This class provides the detailed information for device error in DA.

com.prosyst.mbs.services.hdm.HomeDeviceAdminPermission

N/A

Device Access checks FunctionalItemPermission for the DeviceAdmin FunctionalItemFactory operations.

com.prosyst.mbs.services.hdm.HomeDevicePermission

N/A

The Device Access checks FunctionalItemPermission for the devices and the device items.

com.prosyst.mbs.services.hdm.HomeDeviceException

N/A

The device items that represent the device functionalities in DA throw the FIM's com.prosyst.mbs.services.fim.FunctionalItemException

com.prosyst.mbs.services.hdm.OperationInfo

N/A

This interface is related to the HDM SPI and protocol adapter implementations and has no replacement in DA.

com.prosyst.mbs.services.hdm.ProtocolAdapterInfo

N/A

This interface is related to the HDM SPI and protocol adapter implementations and has no replacement in DA.

com.prosyst.mbs.services.hdm.ProtocolAdapterInfoExt

N/A

This interface is related to the HDM SPI and protocol adapter implementations and it has no replacement in DA.

com.prosyst.mbs.services.hdm.Actuator

N/A

This interface has no replacement in DA.

com.prosyst.mbs.services.hdm.Sensor

N/A

This interface has no replacement in DA.