MASON-INTEREST-L Archives

March 2016

MASON-INTEREST-L@LISTSERV.GMU.EDU

Options: Use Monospaced Font
Show Text 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:
Wed, 23 Mar 2016 11:55:24 -0400
MIME-version:
1.0 (Mac OS X Mail 7.3 \(1878.6\))
Reply-To:
MASON Multiagent Simulation Toolkit <[log in to unmask]>
Content-type:
text/plain; charset=iso-8859-1
Subject:
From:
Sean Luke <[log in to unmask]>
In-Reply-To:
Message-ID:
Content-Transfer-Encoding:
8bit
Parts/Attachments:
text/plain (16 lines)
On Mar 23, 2016, at 5:01 AM, Luís de Sousa <[log in to unmask]> wrote:

> On 23 March 2016 at 09:52, Nick Malleson <[log in to unmask]> wrote:
>> 
>> Ernesto, what are the implications of having to make Agent serializable?
> 
> And would ask why it must be made serializable? I never did it myself...

If your model is entirely serializable, then you can checkpoint it.  This means you can save out snapshots of the model as it's running to revisit later; you can also save out a model running (say) on a back-end server machine, move it forward to your laptop, and examine it under visualization, save it out AGAIN, and move it back on the server to keep running, etc.

I would strongly suggest you try to make your model serializable.  Generally this means you should avoid attaching to your agents any GUI or visualization stuff (or having them subclass from the same), and similarly for any objects in your SimState.  And inner classes too!  Nonserializable GUI stuff should instead go into your GUIState object.  

If you do NOT do this, your model will still run just fine under the GUI. But you won't be able to checkpoint/save it out or migrate it, just run it.

Sean

ATOM RSS1 RSS2