[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
FCall
From: |
Fred Wan |
Subject: |
FCall |
Date: |
Fri, 8 Mar 2002 18:39:04 +0100 |
Hi,
I'm trying to put an action in the schedule of my modelSwarm. The method
corresponding to the action has an argument, and I don't know how to pass it
to the method. I know from previous mails to swarm support that this has to
be done through FCall, FArguments etc. and that I'll probably have to use
perform$with, but I don't know how. In the fragment below that's in
modelSwarm's buildactions section, I want to pass an argument to
perceiveThinkMove, which is a ListImpl of 'bugs' called bugList (so I'm
calling each one of the bugs to perform an action, but they have to get
access to the same list they're in).
Thanks,
Fred Wan,
Vrije Universiteit Amsterdam,
The Netherlands.
try{
Selector sel = new Selector(Class.forName("SimpleBug"),
"perceiveThinkMove", false);
FArguments fa = new FArgumentsImpl(getZone(),sel);
FCall fc = new FCallImpl(getZone(), bugList.getFirst(),
sel, fa);
modelActions.createFActionForEachHeterogeneous$call(
bugList, fc);
} catch(Exception e) {
System.err.println("Exception in ModelSwarm sending perceiveAll: " +
e.getMessage());
System.exit(1);
}
==================================
Swarm-Support is for discussion of the technical details of the day
to day usage of Swarm. For list administration needs (esp.
[un]subscribing), please send a message to <address@hidden>
with "help" in the body of the message.
- gcc3.0, Jonathan Impett, 2002/03/04
- Re: gcc3.0, Marcus G. Daniels, 2002/03/04
- Message not available
- FCall,
Fred Wan <=