|
From: | Marcus G. Daniels |
Subject: | Re: [Swarm-Support] Java swarm help with Log File |
Date: | Wed, 09 Nov 2005 07:06:17 -0700 |
User-agent: | Mozilla Thunderbird 1.0.7-1.1.fc4 (X11/20050929) |
durga bhavani wrote:
This program really makes sense but when i am trying to add one more method it doesn't do anything I did declraed a new selector, Selector sel2=null; leaderList.add(new MyMathsClass1()); changed to modelActions.createActionTo$message (leaderList.get(1), sel2); modelActions.createActionTo$message (leaderList.get(1), sel2);
You have to keep in mind that any `message' ofr createActionTo$message will have to exist in all of the targets, whether it is a ForEach or a To. Thus, a Leader would need to have a `addEmUp'. Typically the way this is done with Java is to inherit the different kinds of agents from a common class.
[Prev in Thread] | Current Thread | [Next in Thread] |