Package jade.proto

Examples of jade.proto.SubscriptionResponder


    // Behaviour dealing with subscriptions
    mt1 = MessageTemplate.and(
        MessageTemplate.MatchOntology(FIPAManagementOntology.getInstance().getName()),
        MessageTemplate.or(MessageTemplate.MatchPerformative(ACLMessage.SUBSCRIBE), MessageTemplate.MatchPerformative(ACLMessage.CANCEL)));
    dfSubscriptionResponder = new SubscriptionResponder(this, mt1, subManager) {
      // If the CANCEL message has a meaningful content, use it.
      // Otherwise deregister the Subscription with the same convID (default)
      protected ACLMessage handleCancel(ACLMessage cancel) throws FailureException {
        try {
          Action act = (Action) myAgent.getContentManager().extractContent(cancel);
View Full Code Here

TOP

Related Classes of jade.proto.SubscriptionResponder

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.