/* AMSDump: Agent sends a Ping message to all running Jade Agents Version 1.0 Jean Vaucher Aug 10 2003 Usage: % java jade.Boot -container X:AMSDump */ import jade.core.Agent; import jade.core.AID; import jade.domain.AMSService; import jade.domain.FIPAAgentManagement.*; public class AMSDump extends Agent { protected void setup() { AMSAgentDescription [] agents = null; try { SearchConstraints c = new SearchConstraints(); c.setMaxResults (new Long(-1)); agents = AMSService.search( this, new AMSAgentDescription (), c ); } catch (Exception e) { System.out.println( "Problem searching AMS: " + e ); e.printStackTrace(); } AID myID = getAID(); for (int i=0; i