MASON-INTEREST-L Archives

July 2010

MASON-INTEREST-L@LISTSERV.GMU.EDU

Options: Use Monospaced Font
Show Text 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:
Sean Luke <[log in to unmask]>
Reply To:
MASON Multiagent Simulation Toolkit <[log in to unmask]>
Date:
Thu, 22 Jul 2010 00:07:42 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (36 lines)
Okay, here's what I've done.  I've modified the Console and SimState  
code so that if you hard-code a seed in your GUIState constructor,  
it'll appear in the Console that way when you fire up the simulation.   
This way you can visualize your model under the same seed as when you  
run it from the command line.  Let's say you want to visualize the  
Flockers model using the seed "16".  You can change the FlockersWithUI  
constructor from

     public FlockersWithUI()
         {
         super(new Flockers(System.currentTimeMillis()));
         }

to

     public FlockersWithUI()
         {
         super(new Flockers(16));
         }

... and it should run under the Console seeded with 16.

I've just done the commits for it.  Joerg, try them out and tell me if  
it works for you.  This SHOULD be invisible to everyone else.

Sean

On Jul 21, 2010, at 4:23 PM, Joerg Hoehne wrote:

> Stupid me. Didn't remember this "misfeature" in the GUI. It  
> shouldn't be a
> problem for me because I was only looking for a way to reproduce a
> simulation with visualization (prior saving time doing some batch  
> simulations
> without visualization).

ATOM RSS1 RSS2