MASON-INTEREST-L Archives

April 2013

MASON-INTEREST-L@LISTSERV.GMU.EDU

Options: Use Proportional Font
Show HTML Part by Default
Condense Mail Headers

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

Print Reply
Sender:
MASON Multiagent Simulation Toolkit <[log in to unmask]>
Date:
Mon, 8 Apr 2013 22:19:17 -0400
MIME-version:
1.0 (Apple Message framework v1085)
Reply-To:
MASON Multiagent Simulation Toolkit <[log in to unmask]>
Content-type:
text/plain; charset=us-ascii
Subject:
From:
Sean Luke <[log in to unmask]>
In-Reply-To:
Content-Transfer-Encoding:
8bit
Parts/Attachments:
text/plain (29 lines)
On Apr 8, 2013, at 10:05 PM, Mark Coletti wrote:

> In other words, I think I resolved your problem by adding the following to your Sim.start():
> 
>         schedule.scheduleRepeating(new Steppable()
>         {
>             public void step(SimState state)
>             {
>                 trailSpace.updateSpatialIndex();
>             }
> 
>         });

Quick suggested improvement:


>         schedule.scheduleRepeating(new Steppable()
>         {
>             public void step(SimState state)
>             {
>                 trailSpace.updateSpatialIndex();
>             }
> 
>         }, -1, 1);

This will cause updateSpatialIndex() to happen before anything else each timestep.

Sean

ATOM RSS1 RSS2