Package jade.domain.FIPAAgentManagement

Examples of jade.domain.FIPAAgentManagement.AMSAgentDescription


        // FIXME: What about principal and ownership?
        slice.fillGADT(names, containers);

        // Update the status of each suspended agent...
        AMSAgentDescription amsd = new AMSAgentDescription();
        amsd.setState(AMSAgentDescription.SUSPENDED);
        List suspendedAgents = myMain.amsSearch(amsd, -1); // '-1' means 'all the results'

        Iterator it = suspendedAgents.iterator();
        while (it.hasNext()) {
          AMSAgentDescription desc = (AMSAgentDescription) it.next();
          try {
            slice.suspendedAgent(desc.getName());
          } catch (NotFoundException nfe) {
            // It should never happen...
            nfe.printStackTrace();
          }
        }
View Full Code Here


        // Clear all previous agents
        tree.treeAgent.clearRemotePlatformAgents(platform.getName());
       
        // Add new current agents
        while(remoteAgents.hasNext()){
          AMSAgentDescription agent = (AMSAgentDescription) remoteAgents.next();
          tree.treeAgent.addRemoteAgentNode(agent,platform.getName());
        }
      }
    };
    SwingUtilities.invokeLater(addIt);
View Full Code Here

TOP

Related Classes of jade.domain.FIPAAgentManagement.AMSAgentDescription

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.