Package jade.content.lang.sl

Examples of jade.content.lang.sl.SimpleSLTokenizer


    // S has the form:
    // ((done (action (AID...) (register (df-agent-description ....) ) ) ) )
    // We skip until we find "df-agent-description" and start decoding from there.
    try {
      int start = s.indexOf(FIPAManagementVocabulary.DFAGENTDESCRIPTION);
      return parseDfd(new SimpleSLTokenizer(s.substring(start)));
    }
    catch (Exception e) {
      throw new FIPAException("Error decoding INFORM Done. "+e.getMessage());
    }
  }
View Full Code Here


  /**
   S has the form:
   (sequence (DFD...) (DFD...)) <possibly something else>
   */
  private static DFAgentDescription[] decodeDfdSequence(String s) throws Exception {
    List l = parseAggregate(new SimpleSLTokenizer(s));
    // Convert the list into an array
    DFAgentDescription[] items = new DFAgentDescription[l.size()];
    for(int i = 0; i < l.size(); i++){
      items[i] = (DFAgentDescription)l.get(i);
    }
View Full Code Here

  public Frame decode(String content) throws FrameException {
    if (content == null || content.length() == 0) {
      return null;
    }
    try {
      return (Frame) read(new SimpleSLTokenizer(content));
    }
    catch (FrameException fe) {
      throw fe;
    }
    catch (Throwable t) {
View Full Code Here

TOP

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

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.