Prechádzať zdrojové kódy

bug fix, @TODO: Insure that the learner is also an agent, that communicates with actors

steve 8 rokov pred
rodič
commit
e1d0925c10
1 zmenil súbory, kde vykonal 2 pridanie a 0 odobranie
  1. 2 0
      src/utils/agents/actor.py

+ 2 - 0
src/utils/agents/actor.py

@@ -181,6 +181,7 @@ class Orchestrator(Actor):
         message = json.loads(stream)
         if 'content' in message :
             content = message['content']
+	    print self.actors
         
             #sender = message['from']
             to = message['to']
@@ -189,6 +190,7 @@ class Orchestrator(Actor):
                     print '**** closing ',self.getIdentifier()
                     channel.close()
             else:
+
                 id = to.lower()
                 actor = self.actors[id]