Package jade.content.onto.basic

Examples of jade.content.onto.basic.Action


  private void remoteSetLogFile(AID helper, String name, String file) throws FIPAException {
    ACLMessage request = createHelperRequest(helper);
   
    SetFile sf = new SetFile(name, file);
   
    Action act = new Action();
    act.setActor(helper);
    act.setAction(sf);
   
    try {
      myAgent.getContentManager().fillContent(request, act);
      ACLMessage inform = FIPAService.doFipaRequestClient(myAgent, request, 10000);
      if (inform == null) {
View Full Code Here


      ACLMessage msg = getRequest();
      msg.setOntology(JADEManagementOntology.NAME);
      DebugOn dbgOn = new DebugOn();
      dbgOn.setDebugger(getAID());
      dbgOn.addDebuggedAgents(name);
      Action a = new Action();
      a.setActor(getAMS());
      a.setAction(dbgOn);
     
      getContentManager().fillContent(msg, a);
     
      addBehaviour(new AMSRequester("DebugOn", msg));
    }
View Full Code Here

        ACLMessage msg = getRequest();
        msg.setOntology(JADEManagementOntology.NAME);
        DebugOff dbgOff = new DebugOff();
        dbgOff.setDebugger(getAID());
        dbgOff.addDebuggedAgents(name);
        Action a = new Action();
        a.setActor(getAMS());
        a.setAction(dbgOff);
       
        getContentManager().fillContent(msg, a);
       
        addBehaviour(new AMSRequester("DebugOff", msg));
      }
View Full Code Here

        ca.addArguments((Object)arg[i]);
      }
    }
   
    try {
      Action a = new Action();
      a.setActor(getAMS());
      a.setAction(ca);
     
      ACLMessage requestMsg = getRequest();
      requestMsg.setOntology(JADEManagementOntology.NAME);
      getContentManager().fillContent(requestMsg, a);
      addBehaviour(new AMSClientBehaviour("CreateAgent", requestMsg));
View Full Code Here

      while(it.hasNext()) {
        AID id = (AID)it.next();
        dbgOff.addDebuggedAgents(id);
      }
     
      Action a = new Action();
      a.setActor(getAMS());
      a.setAction(dbgOff);
     
      try {
        getContentManager().fillContent(msg, a);
        FIPAService.doFipaRequestClient(this, msg);
      }
View Full Code Here

    amsd.setState(AMSAgentDescription.SUSPENDED);
    Modify m = new Modify();
    m.setDescription(amsd);
   
    try {
      Action a = new Action();
      a.setActor(getAMS());
      a.setAction(m);
     
      ACLMessage requestMsg = getRequest();
      requestMsg.setOntology(FIPAManagementOntology.NAME);
      getContentManager().fillContent(requestMsg, a);
      addBehaviour(new AMSClientBehaviour("SuspendAgent", requestMsg));
View Full Code Here

        ACLMessage msg = getRequest();
        msg.setOntology(JADEManagementOntology.NAME);
        DebugOff dbgOff = new DebugOff();
        dbgOff.setDebugger(getAID());
        dbgOff.addDebuggedAgents(amsId);
        Action a = new Action();
        a.setActor(getAMS());
        a.setAction(dbgOff);
       
        getContentManager().fillContent(msg, a);
       
        addBehaviour(new AMSRequester("DebugOff", msg) {
          public int onEnd() {
View Full Code Here

    amsd.setState(AMSAgentDescription.ACTIVE);
    Modify m = new Modify();
    m.setDescription(amsd);
   
    try {
      Action a = new Action();
      a.setActor(getAMS());
      a.setAction(m);
     
      ACLMessage requestMsg = getRequest();
      requestMsg.setOntology(FIPAManagementOntology.NAME);
      getContentManager().fillContent(requestMsg, a);
      addBehaviour(new AMSClientBehaviour("ResumeAgent", requestMsg));
View Full Code Here

    amsd.setOwnership(ownership);
    Modify m = new Modify();
    m.setDescription(amsd);
   
    try {
      Action a = new Action();
      a.setActor(getAMS());
      a.setAction(m);
     
      ACLMessage requestMsg = getRequest();
      requestMsg.setOntology(FIPAManagementOntology.NAME);
      getContentManager().fillContent(requestMsg, a);
      addBehaviour(new AMSClientBehaviour("ChangeAgentOwnership", requestMsg));
View Full Code Here

    KillAgent ka = new KillAgent();
   
    ka.setAgent(name);
   
    try {
      Action a = new Action();
      a.setActor(getAMS());
      a.setAction(ka);
     
      ACLMessage requestMsg = getRequest();
      requestMsg.setOntology(JADEManagementOntology.NAME);
      getContentManager().fillContent(requestMsg, a);
      addBehaviour(new AMSClientBehaviour("KillAgent", requestMsg));
View Full Code Here

TOP

Related Classes of jade.content.onto.basic.Action

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.