|
From: Nick C. <nic...@ve...> - 2003-02-14 13:46:04
|
The short answer is that actions that are scheduled during the current tick to execute either at or before the current tick are not added to the queue. The point being that it is incoherent to allow the present to influence the past, but I'm not clear in my mind whether this should be considered a "mistake" on the part of the programmer. And so, the real question here is whether the user should be warned about this. At the moment she is not, and I had good reasons for this at one time, or at least I remember thinking about it and deciding for no warning. I'm not sure about this now. For example, suppose you have a simulation that does some complicated scheduling such that some scheduling targets are missed and actions get scheduled for the past. You are modeling this sort of error and in this case you wouldn't want repast to throw an exception. However, now I'm thinking that modeling this sort of error should be handled in the model and not allowed in repast itself. Comments, suggestions? Nick On Thu, 2003-02-13 at 18:17, Andy Cleary wrote: > So, what would happen if one scheduled an action for the same time that the > action currently being executed is scheduled for? Whatever the answer, is > it an intended or unintended result? > > My guess from look at ScheduleBase is that there would be a problem... but > *perhaps* what would happen is that ScheduleBase would first come into the > current tick, collect up all of the actions at the current tick, loop over > them, and if in the course of looping over those actions new actions were > added for that same tick, when the scheduler got to the end of the first > group of actions, it would then just see the same "tick" as the tick at the > top of the priority queue and repeat the same loop. > > I realize there are valid questions about whether one should even be > *allowed* to do this, but in the meantime, I'm just wondering what the > designers think should happen with a tiny bit of explanation... > > Best, > Andy > > ============================================ > Andrew J. Cleary, Software Engineer/Computational Scientist > Lawrence Livermore National Labs, 925-424-5890. > ============================================ > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: FREE SSL Guide from Thawte > are you planning your Web Server Security? Click here to get a FREE > Thawte SSL guide and find the answers to all your SSL security issues. > http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en > _______________________________________________ > Repast-developer mailing list > Rep...@li... > https://lists.sourceforge.net/lists/listinfo/repast-developer -- Nick Collier Social Science Research Computing University of Chicago http://repast.sourceforge.net |