def GetManagedObjects(self):
"""Get all objects that are managed by the application.
Return type is a dictionary whose keys are each registered object and
values the properties of the given object.
"""
response = {}
print('GetManagedObjects')
for service in self.services:
response[service.get_path()] = service.get_properties()
chrcs = service.get_characteristics()
for chrc in chrcs:
response[chrc.get_path()] = chrc.get_properties()
descs = chrc.get_descriptors()
for desc in descs:
response[desc.get_path()] = desc.get_properties()
return response
评论列表
文章目录