Sender: |
|
Date: |
Sat, 26 Aug 2006 15:27:01 -0400 |
MIME-version: |
1.0 (Apple Message framework v752.2) |
Reply-To: |
|
Content-type: |
text/plain; charset=US-ASCII; delsp=yes; format=flowed |
Subject: |
|
From: |
|
In-Reply-To: |
|
Content-transfer-encoding: |
7bit |
Comments: |
|
Parts/Attachments: |
|
|
On Aug 25, 2006, at 10:42 AM, Michael Lees wrote:
> I was curious as to why shuffling of events with the same time-step
> isn't optional. From reading the Schedule code, the sub steps with
> the same time-step (and same ordering) are extracted into a bag and
> randomised using the shuffle method.
>
> In some situations, particularly debugging it might be preferable
> to retain the order of sub steps from step to step, or even retain
> the order in which events were scheduled.
>
> Would it be possible to just add a flag which is set to indicate if
> the schedule should be randomised or not, or does something else
> rely on the assumption of random ordering.
We always randomize because that's all we've ever needed; and it's
not uncommon for other systems' schedules to do that too of course.
If you want a straight ordering, just put everybody in a Sequence and
schedule the Sequence once on the Schedule. Or assign everyone a
different ordering.
However if you'd like to remove shuffling, just comment out this line
in Schedule.java:
// shuffle
if (substeps.numObjs > 1) substeps.shuffle
(state.random);
Sean
|
|
|