Package jade.content.lang.sl

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


          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

     // 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

  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


     // 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


     // 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

       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

    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

    // 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

Related Classes of jade.content.lang.sl.SLCodec

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.