|
From: Reuben G. <reu...@ay...> - 2005-07-20 03:15:41
|
Hello, I'm working on making an IDE for Repast. We're allowing the user to code within our program and change the model's and agent's variables and functions mid-run. It should be rather snazzy once we get the bugs ironed out. I'm having a problem with AbstractGUIController/BaseController, however. It seems that calling setModel(...) in the middle of a run (when the model is paused, of course) doesn't have any effect on which model is used when I call startSim() again. Any ideas? Thanks, Reuben P.S. The way we let the user change the model mid-run is by recompiling the code, loading the new class (using a slightly new name), making a new instance, and then copying over all the variables from the old Model using reflection. (Here are some comments on the main class that allows me to do this: http://tinyurl.com/8zo28) If any of you are interested in an IDE for Repast, then we'd love your help coding! Our wiki is here: http://indigosim.sourceforge.net (still kind of under construction) -- Reuben Grinberg reu...@ay... (609)233-9891 "As you will no doubt be aware, the plans for development of the outlying regions of the Galaxy require the building of a hyperspatial express route through your solar system, and regrettably your planet is one of those scheduled for demolition." Vogon -- The Hitchiker's Guide to the Galaxy |