Examples of copyAgent()


Examples of jade.core.management.AgentManagementSlice.copyAgent()

      public void cloneAgent(AID id, Location where, String newName) throws Throwable {
        // Do as if it was a remote call from the main to allow
        // security checks to take place if needed
        jade.core.mobility.AgentMobilitySlice target = (jade.core.mobility.AgentMobilitySlice) getProxyToLocalSlice(jade.core.mobility.AgentMobilitySlice.NAME);
        // FIXME: set Principal and Credentials
        target.copyAgent(id, where, newName);
      }

      private SliceProxy getProxyToLocalSlice(String serviceName) throws Throwable {
        Service svc = myServiceFinder.findService(serviceName);
        return (SliceProxy) myIMTPManager.createSliceProxy(serviceName, svc.getHorizontalInterface(), myIMTPManager.getLocalNode());
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.