Examples of SLCodec


Examples of jade.content.lang.sl.SLCodec

   
    // Register the Introspection ontology
    myAgent.getContentManager().registerOntology(IntrospectionOntology.getInstance());
   
    // Register the SL0 language
    myAgent.getContentManager().registerLanguage(new SLCodec(), FIPANames.ContentLanguage.FIPA_SL0);
   
    // Fill the subscription message
    AMSSubscription.addReceiver(ams);
    AMSSubscription.setLanguage(FIPANames.ContentLanguage.FIPA_SL0);
    AMSSubscription.setOntology(IntrospectionOntology.NAME);
View Full Code Here

Examples of jade.content.lang.sl.SLCodec

          codec = cm.lookupLanguage(FIPANames.ContentLanguage.FIPA_SL0);
        }
      }
    }
    if (codec == null) {
      codec = new SLCodec();
      cm.registerLanguage(codec);
    }
   
    template = MessageTemplate.and(
        MessageTemplate.MatchOntology(onto.getName()),
View Full Code Here

Examples of jade.content.lang.sl.SLCodec

     // initialize SL0 Codec and FIPAManagementVocabulary
     if (a.getContentManager().lookupOntology(FIPAManagementOntology.NAME) == null)
       a.getContentManager().registerOntology(FIPAManagementOntology.getInstance());   
     if (a.getContentManager().lookupLanguage(FIPANames.ContentLanguage.FIPA_SL0) == null)
       a.getContentManager().registerLanguage(new SLCodec(0),FIPANames.ContentLanguage.FIPA_SL0);

     // Write the action in the :content slot of the request
     try {
       a.getContentManager().fillContent(msg, act);
     } catch (Exception e) {
View Full Code Here

Examples of jade.content.lang.sl.SLCodec

  private APDescription myPlatformProfile;
 
  private AMSSubscriber myAMSSubscriber;
 
  protected void setup() {
    getContentManager().registerLanguage(new SLCodec());
    getContentManager().registerOntology(JADEManagementOntology.getInstance());
    getContentManager().registerOntology(LogManagementOntology.getInstance());
   
    myAMSSubscriber = new AMSSubscriber() {
      protected void installHandlers(Map handlersTable) {
View Full Code Here

Examples of jade.content.lang.sl.SLCodec


     // initialize SL0 Codec and FIPAAgentManagementOntology
     //FIXME for applet I have not the agent c = sender.lookupLanguage(SL0Codec.NAME);
     //if (c == null)
       c = new SLCodec();

     // Write the action in the :content slot of the request
     List content = new ArrayList();
     content.add(act);
View Full Code Here

Examples of jade.content.lang.sl.SLCodec


     // initialize SL0 Codec and FIPAAgentManagementOntology
     //FIXME for applet I have not the agent c = sender.lookupLanguage(SL0Codec.NAME);
     //if (c == null)
       c = new SLCodec();

     // Write the action in the :content slot of the request
     List content = new ArrayList();
     content.add(act);
View Full Code Here

Examples of jade.content.lang.sl.SLCodec

       throw new UnsupportedFunction();

     // initialize SL0 Codec and FIPAAgentManagementOntology
     //FIXME for applet I have not the agent c = sender.lookupLanguage(SL0Codec.NAME);
     //if (c == null)
       c = new SLCodec();

     // Write the action in the :content slot of the request
     this.reqMsg.setContent(AppletRequestProto.encode(act,(SLCodec)c,o));

View Full Code Here

Examples of jade.content.lang.sl.SLCodec

    getContentManager().registerOntology(JADEManagementOntology.getInstance());
    getContentManager().registerOntology(IntrospectionOntology.getInstance());
    getContentManager().registerOntology(FIPAManagementOntology.getInstance());
   
    // Register the supported languages
    SLCodec codec = new SLCodec();
    getContentManager().registerLanguage(codec, FIPANames.ContentLanguage.FIPA_SL0);
    getContentManager().registerLanguage(codec, FIPANames.ContentLanguage.FIPA_SL1);
    getContentManager().registerLanguage(codec, FIPANames.ContentLanguage.FIPA_SL2);
    getContentManager().registerLanguage(codec, FIPANames.ContentLanguage.FIPA_SL);
   
View Full Code Here

Examples of jade.content.lang.sl.SLCodec

    // Register Ontology and Language
    ContentManager cm = myAgent.getContentManager();
    if (cm.lookupOntology(onto.getName()) == null) {
      cm.registerOntology(onto);
    }
    this.codec = (codec != null ? codec : new SLCodec());
    if (cm.lookupLanguage(codec.getName()) == null) {
      cm.registerLanguage(codec);
    }
  }
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.