// 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();
}
}