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

All Samples(68)  |  Call(68)  |  Derive(0)  |  Import(0)

src/s/p/SPADE-2.2.1/spade/ACLMessage.py   SPADE(Download)
 
        if "sender" in p:
            s = AID.aid()
            s.loadJSON(p["sender"])
            self.setSender(s)
 
        if "receivers" in p:
            for i in p["receivers"]:
                s = AID.aid()
        if "reply-to" in p:
            for i in p["reply-to"]:
                s = AID.aid()
            s.loadJSON(i)
            self.addReplyTo(s)

src/s/p/spade-HEAD/spade/Envelope.py   spade(Download)
        if "to" in r:
            for a in r["to"]:
                aid = AID.aid()
                aid.setName(a["name"])
                for addr in a["addresses"]:
                    aid.addAddress(addr)
                self.addTo(aid)
        if "from" in r:
            aid = AID.aid()
        if "intended-receiver" in r:
            for ag in r["intended-receiver"]:
                aid = AID.aid()
                aid.setName(ag["name"])
                for addr in ag["addresses"]:

src/s/p/spade-HEAD/spade/Behaviour.py   spade(Download)
 
        if "sender" in p:
            s = AID.aid()
            s.loadJSON(p["sender"])
            self.setSender(s)
 
        if "receivers" in p:
            for i in p["receivers"]:
                s = AID.aid()
        if "reply-to" in p:
            for i in p["reply-to"]:
                s = AID.aid()
            s.loadJSON(i)
            self.addReplyTo(s)

src/s/p/spade-HEAD/spade/ACLMessage.py   spade(Download)
 
        if "sender" in p:
            s = AID.aid()
            s.loadJSON(p["sender"])
            self.setSender(s)
 
        if "receivers" in p:
            for i in p["receivers"]:
                s = AID.aid()
        if "reply-to" in p:
            for i in p["reply-to"]:
                s = AID.aid()
            s.loadJSON(i)
            self.addReplyTo(s)

Previous  1 | 2