Exemple #1
0
 def as_message(self):
     message = Message()
     message.immediate = False
     message.sender = self.sender
     message.recipient = self.recipient
     message.tags = set(self.tags)
     message.data = self.data
Exemple #2
0
 def as_message(self):
     from bouser_simargl.message import Message
     message = Message()
     message.topic = 'errand'
     message.sender = self.setPerson_id
     message.recipient = self.execPerson_id
     message.tags = set()
     message.data = {
         'text': self.text,
         'communications': self.communications
     }
     return message
 def loop(self):
     message = Message()
     message.control = True
     message.topic = 'heartbeat'
     message.data = {'ts': time.time()}
     self.simargl.message_received(self, message)