def agentForService(self, service): a = super().agentForService(service) if a is not None: if isinstance(a, str): a = AgentID(self, a) else: a = AgentID(self, a.name, a.is_topic) return a
def agentsForService(self, service): a = super().agentsForService(service) if a is not None: for j in range(len(a)): if isinstance(a[j], str): a[j] = AgentID(self, a[j]) else: a[j] = AgentID(self, a[j].name) return a
def agent(self, name): return AgentID(self, name)
def topic(self, name): a = super().topic(name) return AgentID(self, a.name, a.is_topic)