Package jade.content.onto.basic

Examples of jade.content.onto.basic.Result


    protected void handleInform(ACLMessage msg){
      if(logger.isLoggable(Logger.FINE))
        logger.log(Logger.FINE,"arrived a new agents from a remote platform");
      try{
        AID sender = msg.getSender();
        Result r = (Result)getContentManager().extractContent(msg);
        Iterator i = r.getItems().iterator();
        myGUI.refreshRemoteAgentsInRemotePlatform(platform,i);
      }catch(Exception e){
        e.printStackTrace();
      }
    }
View Full Code Here


       
        logger.log(Logger.CONFIG, "Log manager class defined: " + logManagerClass);
        logManager = (LogManager) Class.forName(logManagerClass).newInstance();
       
        List logInfo = logManager.getAllLogInfo();
        Result r = new Result(actExpr, logInfo);
        getContentManager().fillContent(reply, r);
        reply.setPerformative(ACLMessage.INFORM);
      } catch (Exception any) {
        String errorMsg = "Error initializing LogManager. "+any;
        logger.log(Logger.WARNING, errorMsg);
View Full Code Here

    if (notYetReady)
      throw new NotYetReady();
    if(lastMsg.getPerformative() != ACLMessage.INFORM)
      throw new FIPAException(lastMsg);

    Result r = AppletRequestProto.extractContent(lastMsg.getContent(),(SLCodec)c,o);
    Iterator i = r.getItems().iterator(); //this is the set of DFAgentDescription
    List l = new ArrayList();
    while (i.hasNext())
     l.add(i.next());
    return l;
View Full Code Here

  {
    if (notYetReady)
      throw new NotYetReady();
    if(lastMsg.getPerformative() != ACLMessage.INFORM)
      throw new FIPAException(lastMsg);
    Result r = AppletRequestProto.extractContent(lastMsg.getContent(),(SLCodec)c,o);
        Iterator i = r.getItems().iterator(); //this is the set of DFAgentDescription
        List l = new ArrayList();
        while (i.hasNext())
          l.add(i.next());
        return l;
  }
View Full Code Here

     
      if (myParams == null) {
        // Result cannot be null
        myParams = new ArrayList();
      }
      Result r = new Result(actionExpr, myParams);
      ACLMessage notification = request.createReply();
      try {
        myContentManager.fillContent(notification, r);
        notification.setPerformative(ACLMessage.INFORM);
      }
View Full Code Here

TOP

Related Classes of jade.content.onto.basic.Result

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.