swarm-modeling
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Swarm-Modelling] ask for help:questin on Selector


From: Marcus G. Daniels
Subject: Re: [Swarm-Modelling] ask for help:questin on Selector
Date: Wed, 25 Apr 2007 07:42:43 -0600
User-agent: Thunderbird 2.0.0.0 (X11/20070419)

Hi Kai,
>
> I am programming swarm application in JAVA.
>
> Only the method is encapsulated in a Selector, can the method be
> inserted into an ActionGroup or Schedule.I encounter a question: How
> to encapsulate a method with some parameters in a Selector (e.g.
> public void methodName (int a, double b)). I have known that a method
> without parameters can be encapsulated in a Selector through
>
> Selector sel= new Selector (Class theClass, String theMethodName,
> boolean theObjectflag).
>
>
These items from Paul Johnson's FAQ explain how to do this..

http://pj.freefaculty.org/SwarmFaq/Memos/MarcusJavaCreateActions2.txt

http://pj.freefaculty.org/SwarmFaq/WorkingExampleCode/java/FActionArguments.txt



reply via email to

[Prev in Thread] Current Thread [Next in Thread]