Examples of Done


Examples of jade.content.onto.basic.Done

      if (result != null) {
        // The action produced a result
        p = new Result(slAction, result);
      }
      else {
        p = new Done(slAction);
      }
      try {
        theDF.getContentManager().fillContent(notification, p);
      }
      catch (Exception e) {
View Full Code Here

Examples of jade.content.onto.basic.Done

    }
   
    // Prepare the notification
    ACLMessage notification = request.createReply();
    notification.setPerformative(ACLMessage.INFORM);
    Done d = new Done(slAction);
    try {
      theDF.getContentManager().fillContent(notification, d);
    }
    catch (Exception e) {
      // Should never happen
View Full Code Here

Examples of jade.content.onto.basic.Done

    if (resultNeeded) {
      // The action produced a result
      p = new Result(slAction, result);
    }
    else {
      p = new Done(slAction);
    }
    try {
      theAMS.getContentManager().fillContent(notification, p);
    }
    catch (Exception e) {
View Full Code Here

Examples of jade.content.onto.basic.Done

      }

      // Send back the notification
      ACLMessage result = request.createReply();
      result.setPerformative(ACLMessage.INFORM);
      Done d = new Done(requestAction);
      try {
        myAgent.getContentManager().fillContent(result, d);
      }
      catch (Exception e) {
        // Should never happen
View Full Code Here

Examples of jade.content.onto.basic.Done

      if (result != null) {
        // The action produced a result
        p = new Result(slAction, result);
      }
      else {
        p = new Done(slAction);
      }
      try {
        theDF.getContentManager().fillContent(notification, p);
      }
      catch (Exception e) {
View Full Code Here

Examples of jade.content.onto.basic.Done

    if (resultItems != null) {
      // The action produced a result
      p = new Result(slAction, resultItems);
    }
    else {
      p = new Done(slAction);
    }
    try {
      theAMS.getContentManager().fillContent(notification, p);
    }
    catch (Exception e) {
View Full Code Here

Examples of jade.content.onto.basic.Done

   
    public void action() {
      ACLMessage message = receive(template);
      if(message != null) {
        try{
          Done d = (Done)getContentManager().extractContent(message);
          Action a = (Action)d.getAction();
          AID tn = a.getActor();
          StartNotify sn = (StartNotify) a.getAction();
          AID observed = sn.getObserved();
          notifiers.put(observed, tn);
        }
View Full Code Here

Examples of jade.content.onto.basic.Done

      }
     
      // Send back the notification
      ACLMessage result = request.createReply();
      result.setPerformative(ACLMessage.INFORM);
      Done d = new Done(requestAction);
      try {
        myAgent.getContentManager().fillContent(result, d);
      }
      catch (Exception e) {
        // Should never happen
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.