Examples of addUserDefinedParameter()


Examples of jade.lang.acl.ACLMessage.addUserDefinedParameter()

          ACLMessage msg = gMsg.getACLMessage();
          Collection interestedAgents = topicTable.getInterestedAgents(topic, msg);
          if (interestedAgents.size() > 0) {
            // Forward the message to all agents interested in that topic.
            // Note that if no agents are currently listening to this topic, the message is simply swallowed
            msg.addUserDefinedParameter(ACLMessage.IGNORE_FAILURE, "true");
            gMsg.setModifiable(false);
            Iterator it = interestedAgents.iterator();
            while (it.hasNext()) {
              AID target = (AID) it.next();
              if (myLogger.isLoggable(Logger.FINE)) {
View Full Code Here

Examples of jade.lang.acl.ACLMessage.addUserDefinedParameter()

  }

  private void notify(SubscriptionResponder.Subscription sub, List results, AbsIRE absIota) {
    try {
      ACLMessage notification = sub.getMessage().createReply();
      notification.addUserDefinedParameter(ACLMessage.IGNORE_FAILURE, "true");
      notification.setPerformative(ACLMessage.INFORM);
      AbsPredicate absEquals = new AbsPredicate(SLVocabulary.EQUALS);
      absEquals.set(SLVocabulary.EQUALS_LEFT, absIota);
      absEquals.set(SLVocabulary.EQUALS_RIGHT, FIPAManagementOntology.getInstance().fromObject(results));
     
View Full Code Here

Examples of jade.lang.acl.ACLMessage.addUserDefinedParameter()

        if (replyWith != null) {
          msg.setReplyWith(replyWith);
        }
        else {
          // We do not expect any reply
          msg.addUserDefinedParameter(ACLMessage.IGNORE_FAILURE, "true");
        }
        send(msg);
      } catch(Exception fe) {
        fe.printStackTrace();
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.