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

All Samples(18)  |  Call(12)  |  Derive(0)  |  Import(6)

src/s/p/SPADE-2.2.1/spade/fipa.py   SPADE(Download)
                co = msg.getContentObject()
                self.result = []
                from AMS import AmsAgentDescription
                for i in co["fipa:result"]:
                    self.result.append(AmsAgentDescription(co=i))

src/s/p/spade-HEAD/spade/fipa.py   spade(Download)
                co = msg.getContentObject()
                self.result = []
                from AMS import AmsAgentDescription
                for i in co["fipa:result"]:
                    self.result.append(AmsAgentDescription(co=i))

src/s/p/SPADE-2.2.1/spade/Agent.py   SPADE(Download)
    def WUIController_search(self, query):
 
        #FIRST SEARCH AGENTS
        from AMS import AmsAgentDescription
        agentslist = []
 
        #search by name
        aad = AmsAgentDescription()
 
        #search by address
        aad = AmsAgentDescription()
        aad.setAID(AID.aid(addresses=[query]))
        res = self.searchAgent(aad)
 
        #search by ownership
        aad = AmsAgentDescription()
        aad.setOwnership(query)
        res = self.searchAgent(aad)
 
        #search by state
        aad = AmsAgentDescription()
        aad.setState(query)
        res = self.searchAgent(aad)

src/s/p/spade-HEAD/spade/Agent.py   spade(Download)
    def WUIController_search(self, query):
 
        #FIRST SEARCH AGENTS
        from AMS import AmsAgentDescription
        agentslist = []
 
        #search by name
        aad = AmsAgentDescription()
 
        #search by address
        aad = AmsAgentDescription()
        aad.setAID(AID.aid(addresses=[query]))
        res = self.searchAgent(aad)
 
        #search by ownership
        aad = AmsAgentDescription()
        aad.setOwnership(query)
        res = self.searchAgent(aad)
 
        #search by state
        aad = AmsAgentDescription()
        aad.setState(query)
        res = self.searchAgent(aad)