예제 #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
예제 #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
예제 #3
0
 def agent(self, name):
     return AgentID(self, name)
예제 #4
0
 def topic(self, name):
     a = super().topic(name)
     return AgentID(self, a.name, a.is_topic)