Package jade.lang.acl.MessageTemplate

Examples of jade.lang.acl.MessageTemplate.MatchExpression


    // Unless a template is explicitly set, we get messages matching the ontology, the served performatives.
    if (template == null) {
      if (servedPerformatives != null) {
        template = MessageTemplate.and(
            MessageTemplate.MatchOntology(onto.getName()),
              new MessageTemplate(new MatchExpression() {
                public boolean match(ACLMessage msg) {
                  int perf = msg.getPerformative();
                  for (int p : servedPerformatives) {
                    if (p == perf) {
                      return true;
View Full Code Here

TOP

Related Classes of jade.lang.acl.MessageTemplate.MatchExpression

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.