MASON-INTEREST-L Archives

March 2016

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:
Luís de Sousa <[log in to unmask]>
Reply To:
MASON Multiagent Simulation Toolkit <[log in to unmask]>
Date:
Thu, 24 Mar 2016 08:39:18 +0100
Content-Type:
text/plain
Parts/Attachments:
text/plain (17 lines)
Thank you for the explanation Sean.

Going back to Ernesto's question: what are the implications of
extending MasonGeometry regarding Serialisation?

Luís

On 23 March 2016 at 16:55, Sean Luke <[log in to unmask]> wrote:
>
> 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