/* Marcus Daniels Swarm-Support December 15, 1999 Strange, it works for me. The only thing that comes to mind is that maybe you have Agent in another package? Note that the string you give to Class.forName should include the package. (I used getClass, since I had the object handy.) */ import swarm.Globals; import swarm.Selector; import swarm.objectbase.SwarmObjectImpl; public class TestSelector { class Agent extends SwarmObjectImpl { public Object idHandleEvent (Integer event, Long time) { System.out.println (this + " handling event " + event.toString () + " at time " + time.toString ()); return this; } } public TestSelector () { Integer a = new Integer (1); Long b = new Long (2); Agent agent = new Agent (); try { agent.perform$with$with (new Selector (agent.getClass (), "idHandleEvent", true), (Object) a, (Object) b); } catch (Exception e) { e.printStackTrace (System.err); } } static public void main (String args []) { Globals.env.initSwarm ("TestSelector", "0.0", "mgd@swarm.org", args); new TestSelector (); } }