August 2013


Options: Use Monospaced Font
Show HTML Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Sean Luke <[log in to unmask]>
Reply To:
MASON Multiagent Simulation Toolkit <[log in to unmask]>
Thu, 15 Aug 2013 18:08:49 -0400
text/plain (32 lines)
I'm not exactly sure what you're asking here, so I'll give two scenarios.

Scenario 1.  You have agents that you have scheduled repeating for 2000 times, let's say once per timestep, after which you stop them from repeating any more.  At that point (timestep 2001 or later) you'd like the Results steppable to be called.

	In this situation, I'd either schedule the Results steppable to be called at some high timestep value (Integer.maxValue is fine).  Or I'd wait until they were all done and THEN schedule the Results steppable for whatever the next timestep is.

Scenario 2.  You have agents that you want to schedule repeating forever.  They're all stepped once per timestep. Each timestep, after all of them have been stepped, you'd like the Results steppable to be called.

	In this situation, simply schedule the Results steppable repeating, but with an ordering that is higher than that of the agents.  By default agents are scheduled with an ordering of 0.  So if you scheduled the Results steppable with an ordering of 1 (say), it'd be stepped each timestep, but after the agents have all been stepped.


On Aug 15, 2013, at 5:40 PM, Norman Langner wrote:

> Hi me again with yet another question:
> I have 10000 Agents which simulate pedestrians + some other steppables 
> which influence their behaviour. I have one Steppable Results which i 
> want to get stepped as the very last in the schedule (all are stepped 
> repeatly). How do I do that? I'm not sure if I understand that part 
> correctly. Can I achiveve that, by giving the Results Integer.maxValue 
> as ordering when I do the scheduleRepeating? Am I getting then the 
> desired behaviour that all Steppables are executed each step, with 
> Results being the last of them?
> Thanks in advance,
> Norman