Package jade.core

Examples of jade.core.GenericCommand.addParam()


      myAgent.clean(true);
    }
   
    public void informCloned(AID agentID, Location where, String newName) throws ServiceException, JADESecurityException, IMTPException, NotFoundException, NameClashException {
      GenericCommand cmd = new GenericCommand(AgentMobilityHelper.INFORM_CLONED, AgentMobilitySlice.NAME, null);
      cmd.addParam(agentID);
      cmd.addParam(where);
      cmd.addParam(newName);
      // Set the credentials of the cloning agent
      myService.initCredentials(cmd, agentID);
     
View Full Code Here


    }
   
    public void informCloned(AID agentID, Location where, String newName) throws ServiceException, JADESecurityException, IMTPException, NotFoundException, NameClashException {
      GenericCommand cmd = new GenericCommand(AgentMobilityHelper.INFORM_CLONED, AgentMobilitySlice.NAME, null);
      cmd.addParam(agentID);
      cmd.addParam(where);
      cmd.addParam(newName);
      // Set the credentials of the cloning agent
      myService.initCredentials(cmd, agentID);
     
      Object lastException = myService.submit(cmd);
View Full Code Here

   
    public void informCloned(AID agentID, Location where, String newName) throws ServiceException, JADESecurityException, IMTPException, NotFoundException, NameClashException {
      GenericCommand cmd = new GenericCommand(AgentMobilityHelper.INFORM_CLONED, AgentMobilitySlice.NAME, null);
      cmd.addParam(agentID);
      cmd.addParam(where);
      cmd.addParam(newName);
      // Set the credentials of the cloning agent
      myService.initCredentials(cmd, agentID);
     
      Object lastException = myService.submit(cmd);
      if(lastException != null) {
View Full Code Here

      content = content + " (ACLMessage) ) (MTS-error "+receiver+" "+ie.getMessage() + ") )";
      failure.setContent(content);
     
      try {
        GenericCommand command = new GenericCommand(MessagingSlice.SEND_MESSAGE, MessagingSlice.NAME, null);
        command.addParam(theAMS);
        GenericMessage gm = new GenericMessage(failure);
        gm.setAMSFailure(true);
        command.addParam(gm);
        command.addParam((AID)(failure.getAllReceiver().next()));
        // FIXME: We should set the AMS principal and credentials
View Full Code Here

      try {
        GenericCommand command = new GenericCommand(MessagingSlice.SEND_MESSAGE, MessagingSlice.NAME, null);
        command.addParam(theAMS);
        GenericMessage gm = new GenericMessage(failure);
        gm.setAMSFailure(true);
        command.addParam(gm);
        command.addParam((AID)(failure.getAllReceiver().next()));
        // FIXME: We should set the AMS principal and credentials
       
        submit(command);
      }
View Full Code Here

        GenericCommand command = new GenericCommand(MessagingSlice.SEND_MESSAGE, MessagingSlice.NAME, null);
        command.addParam(theAMS);
        GenericMessage gm = new GenericMessage(failure);
        gm.setAMSFailure(true);
        command.addParam(gm);
        command.addParam((AID)(failure.getAllReceiver().next()));
        // FIXME: We should set the AMS principal and credentials
       
        submit(command);
      }
      catch(ServiceException se) {
View Full Code Here

        for(int i = 0; i < addresses.length; i++) {
          myContainer.addAddressToLocalAgents(addresses[i]);
        }
       
        GenericCommand gCmd = new GenericCommand(MessagingSlice.NEW_MTP, MessagingSlice.NAME, null);
        gCmd.addParam(result);
        gCmd.addParam(myContainer.getID());
        submit(gCmd);
       
        return result;
      }
View Full Code Here

          myContainer.addAddressToLocalAgents(addresses[i]);
        }
       
        GenericCommand gCmd = new GenericCommand(MessagingSlice.NEW_MTP, MessagingSlice.NAME, null);
        gCmd.addParam(result);
        gCmd.addParam(myContainer.getID());
        submit(gCmd);
       
        return result;
      }
      /*#DOTNET_INCLUDE_BEGIN
 
View Full Code Here

        for(int i = 0; i < addresses.length; i++) {
          myContainer.removeAddressFromLocalAgents(addresses[i]);
        }
       
        GenericCommand gCmd = new GenericCommand(MessagingSlice.DEAD_MTP, MessagingSlice.NAME, null);
        gCmd.addParam(desc);
        gCmd.addParam(myContainer.getID());
        submit(gCmd);       
      }
      else {
        throw new MTPException("No such address was found on this container: " + address);
View Full Code Here

          myContainer.removeAddressFromLocalAgents(addresses[i]);
        }
       
        GenericCommand gCmd = new GenericCommand(MessagingSlice.DEAD_MTP, MessagingSlice.NAME, null);
        gCmd.addParam(desc);
        gCmd.addParam(myContainer.getID());
        submit(gCmd);       
      }
      else {
        throw new MTPException("No such address was found on this container: " + address);
      }
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.