MASON-INTEREST-L Archives

October 2009

MASON-INTEREST-L@LISTSERV.GMU.EDU

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
Subject:
From:
steven citron-pousty <[log in to unmask]>
Reply To:
MASON Multiagent Simulation Toolkit <[log in to unmask]>
Date:
Mon, 26 Oct 2009 09:29:53 -0700
Content-Type:
multipart/alternative
Parts/Attachments:
text/plain (1104 bytes) , text/html (1541 bytes)
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
>


ATOM RSS1 RSS2