Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(16)  |  Call(16)  |  Derive(0)  |  Import(0)
adds a receiver to the list (AID class)

src/s/p/SPADE-2.2.1/spade/Agent.py   SPADE(Download)
    def WUIController_sent(self, receivers=[], performative=None, sender=None, reply_with=None, reply_by=None, reply_to=None, in_reply_to=None, encoding=None, language=None, ontology=None, protocol=None, conversation_id=None, content=""):
        msg = ACLMessage.ACLMessage()
        if isinstance(receivers, types.StringType):
            a = AID.aid(name=receivers, addresses=["xmpp://" + receivers])
            msg.addReceiver(a)
        elif isinstance(receivers, types.ListType):
            for r in receivers:
                a = AID.aid(name=r, addresses=["xmpp://" + r])
                msg.addReceiver(a)
                    if envelope.getIntendedReceiver():
                        for ir in envelope.getIntendedReceiver():
                            ACLmsg.addReceiver(ir)
                    else:
                        ACLmsg.addReceiver(AID.aid(str(mess.getTo().getStripped()), ["xmpp://" + str(mess.getTo())]))
                else:
                    ACLmsg.setSender(AID.aid(str(mess.getFrom().getStripped()), ["xmpp://" + str(mess.getFrom().getStripped())]))
                    ACLmsg.addReceiver(AID.aid(str(mess.getTo().getStripped()), ["xmpp://" + str(mess.getTo().getStripped())]))

src/s/p/spade-HEAD/spade/Agent.py   spade(Download)
    def WUIController_sent(self, receivers=[], performative=None, sender=None, reply_with=None, reply_by=None, reply_to=None, in_reply_to=None, encoding=None, language=None, ontology=None, protocol=None, conversation_id=None, content=""):
        msg = ACLMessage.ACLMessage()
        if isinstance(receivers, types.StringType):
            a = AID.aid(name=receivers, addresses=["xmpp://" + receivers])
            msg.addReceiver(a)
        elif isinstance(receivers, types.ListType):
            for r in receivers:
                a = AID.aid(name=r, addresses=["xmpp://" + r])
                msg.addReceiver(a)
                    if envelope.getIntendedReceiver():
                        for ir in envelope.getIntendedReceiver():
                            ACLmsg.addReceiver(ir)
                    else:
                        ACLmsg.addReceiver(AID.aid(str(mess.getTo().getStripped()), ["xmpp://" + str(mess.getTo())]))
                else:
                    ACLmsg.setSender(AID.aid(str(mess.getFrom().getStripped()), ["xmpp://" + str(mess.getFrom().getStripped())]))
                    ACLmsg.addReceiver(AID.aid(str(mess.getTo().getStripped()), ["xmpp://" + str(mess.getTo().getStripped())]))

src/s/p/SPADE-2.2.1/spade/ACLParser.py   SPADE(Download)
            recv = m['receiver']
            for i in recv:
                msg.addReceiver(self.processAID(i))
 
        if 'content' in m:

src/s/p/spade-HEAD/spade/ACLParser.py   spade(Download)
            recv = m['receiver']
            for i in recv:
                msg.addReceiver(self.processAID(i))
 
        if 'content' in m: