Package jade.domain

Examples of jade.domain.FIPAException


      ACLMessage inform = FIPAService.doFipaRequestClient(myAgent, request, 10000);
      if (inform != null) {
        return new AID(localName, AID.ISLOCALNAME);
      }
      else {
        throw new FIPAException("Response timeout expired");
      }
    }
    catch (FIPAException fe) {
      throw fe;
    }
View Full Code Here


      if (inform != null) {
        Result res = (Result) myAgent.getContentManager().extractContent(inform);
        return res.getItems();
      }
      else {
        throw new FIPAException("Response timeout expired");
      }
    }
    catch (FIPAException fe) {
      throw fe;
    }
    catch (Exception e) {
      e.printStackTrace();
      throw new FIPAException(e.getMessage());
    }
  }
View Full Code Here

   
    try {
      myAgent.getContentManager().fillContent(request, act);
      ACLMessage inform = FIPAService.doFipaRequestClient(myAgent, request, 10000);
      if (inform == null) {
        throw new FIPAException("Response timeout expired");
      }
    }
    catch (FIPAException fe) {
      throw fe;
    }
    catch (Exception e) {
      e.printStackTrace();
      throw new FIPAException(e.getMessage());
    }
  }
View Full Code Here

   
    try {
      myAgent.getContentManager().fillContent(request, act);
      ACLMessage inform = FIPAService.doFipaRequestClient(myAgent, request, 10000);
      if (inform == null) {
        throw new FIPAException("Response timeout expired");
      }
    }
    catch (FIPAException fe) {
      throw fe;
    }
    catch (Exception e) {
      e.printStackTrace();
      throw new FIPAException(e.getMessage());
    }
  } 
View Full Code Here

     try {
      String s = ((SLCodec)c).encode(o, (AbsContentElement)o.fromObject(act));
      this.reqMsg.setContent(s);
    } catch(OntologyException oe) {
      oe.printStackTrace();
      throw new FIPAException("Ontology error: " + oe.getMessage());
    } catch(Exception e)
    {
      e.printStackTrace();
    }
View Full Code Here

  public List getResult() throws FIPAException, NotYetReady
  {
    if (notYetReady)
      throw new NotYetReady();
    if(lastMsg.getPerformative() != ACLMessage.INFORM)
      throw new FIPAException(lastMsg);

    Result r = AppletRequestProto.extractContent(lastMsg.getContent(),(SLCodec)c,o);
    Iterator i = r.getItems().iterator(); //this is the set of DFAgentDescription
    List l = new ArrayList();
    while (i.hasNext())
View Full Code Here

  public List getSearchResult() throws FIPAException, NotYetReady
  {
    if (notYetReady)
      throw new NotYetReady();
    if(lastMsg.getPerformative() != ACLMessage.INFORM)
      throw new FIPAException(lastMsg);
    Result r = AppletRequestProto.extractContent(lastMsg.getContent(),(SLCodec)c,o);
        Iterator i = r.getItems().iterator(); //this is the set of DFAgentDescription
        List l = new ArrayList();
        while (i.hasNext())
          l.add(i.next());
View Full Code Here

TOP

Related Classes of jade.domain.FIPAException

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.