|
From: Robert M. <R.M...@cs...> - 2003-11-26 15:17:22
|
Hi, I have a feeling this is more appropriate for repast-interest but anyway. I don't have the source code with me but I think the method uses the code-gen class as opposed to reflection. Not sure about this though, as I said, the documentation suggests not and if memory serves maybe the code-gen was actually just for the NQP stuff with SimBuilder. (apparently memory does not serve quite as well as one would hope !) If I am wrong then you can just hack the source a bit so that you can pass in some parameters as an Object[] (see the Method class in java.lang.reflect) and it calls it with that. When I say hack, I mean of course subclass and override the pertinent method. If I am right, you can still do as above but be prepared for a significant drop in performance of your model, unless you want to work out how the CodeGen package works, and add some functionality. Cheers, Rob. On 26 Nov 2003, Juan Antonio Rodriguez Aguilar wrote: > Hi there, > Can anyone tell me how to schedule methods along with parameters? > I've been browsing the API and it seems that there are quite a few ways > of scheduling methods, but I haven't been able to find how to schedule a > method that requires parameters. > Cheers. > > Juan > > > > ------------------------------------------------------- > This SF.net email is sponsored by: SF.net Giveback Program. > Does SourceForge.net help you be more productive? Does it > help you create better code? SHARE THE LOVE, and help us help > YOU! Click Here: http://sourceforge.net/donate/ > _______________________________________________ > Repast-developer mailing list > Rep...@li... > https://lists.sourceforge.net/lists/listinfo/repast-developer > |