Print

Print


Hey All:
Thanks for your initial help - I got this running. The next problem I am
running into is that since we use the doLoop to instantiate the class I
don't have a handle to it nor can I pass in objects that I want to live on
after the simulations are done.

I have modified tutorial 2 for my simulation - I am interested in how many
times a Trails cell is visited so I eliminated the decay. At the end of the
simulation I want to have the Object calling the doLoop function to have a
copy (or at least the values) from the Trails Grid2D. I looked through all
the tutorials but they are all written as stand alones - so that when the
simulation ceases all the values can go away. How do I get a handle to the
Class or pass in objects from the Object calling the doLoop.

Thanks
Steve

On Fri, Oct 9, 2009 at 3:09 PM, Serban Iordache <[log in to unmask]>wrote:

> Steven,
>
> If I understand correctly, you want to programmatically start a simulation
> configured according to your needs. You can try something like this:
>
>  int steps = 500;
>  SimState.doLoop(Tutorial3.class, new String[] {"-for", "" + steps});
>
>
> Serban
>