Previous Topic

Next Topic

Book Contents

Book Index

HomeDeviceAdmin to DeviceAdmin Methods Mapping

The below table shows the mapping between the HomeDeviceAdmin and DeviceAdmin methods.

HomeDeviceAdmin Method

DeviceAdmin Method

Notes

addHomeDevice(ProtocolAdapterInfo, Map)

createDevice(DeviceDescriptor)

This DeviceAdmin API method is annotated as a Functional Item operation.

addHomeDevice(ProtocolAdapterInfo, Map, int)

N/A

This method has no replacement in the DeviceAdmin interface. The devices are added into the system via DeviceAdmin.createDevice(DeviceDescriptor) Functional Item operation and the DeviceAdmin.create(String, Map<String, ?>) API method.

removeHomeDevice(String)

removeDevice(String)

The return type of the DeviceAdmin method for device removal is void.

removeHomeDevice(String, int)

removeDevice(String,RemoveArgument)

This DeviceAdmin method is annotated as a Functional Item operation.

cancelRemoveHomeDevice(String)

cancelRemoveDevice(String)

The DeviceAdmin method is annotated as a Functional Item operation and has return type void.

getProtocolAdapterInfo(String)

getAdapterInfo(String)

The DeviceAdmin method is annotated as a Functional Item operation and returns AdapterInfo object.

getProtocolAdapterInfos

getAdapterInfos

The DeviceAdmin method returns a set of AdapterInfo objects.

searchHomeDevices(ProtocolAdapterInfo, Map)

N/A

This method has no replacement in the DeviceAdmin interface.

searchHomeDevices(ProtocolAdapterInfo, Map, int)

N/A

This method has no replacement in the DeviceAdmin interface.

getHomeDevice(String)

N/A

This method has no replacement in the DeviceAdmin. The devices as Functional Items are accessible as services from the OSGi registry.

getHomeDevices(String)

N/A

This method has no replacement in the DeviceAdmin. The devices as Functional Items are accessible as services from the OSGi registry.

getHomeDevices(ProtocolAdapterInfo, String)

N/A

This has no replacement in the DeviceAdmin. The devices as Functional Items are accessible as services from the OSGi registry.