Esempio n. 1
0
 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
Esempio n. 2
0
 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
Esempio n. 3
0
 def agent(self, name):
     return AgentID(self, name)
Esempio n. 4
0
 def topic(self, name):
     a = super().topic(name)
     return AgentID(self, a.name, a.is_topic)