MASON-INTEREST-L Archives

March 2016

MASON-INTEREST-L@LISTSERV.GMU.EDU

Options: Use Proportional Font
Show HTML 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 14:18:28 +0000
Reply-To:
MASON Multiagent Simulation Toolkit <[log in to unmask]>
Subject:
MIME-Version:
1.0
Message-ID:
In-Reply-To:
Content-Type:
multipart/alternative; boundary=001a11c3294081fccb052eb8013e
From:
Ernesto Carrella <[log in to unmask]>
Parts/Attachments:
text/plain (1150 bytes) , text/html (1765 bytes)
Well for starters you only really care about the serializable interface if
you are planning on writing objects to file and back (I think it's a
necessary for MASON checkpointing, but I could be wrong about that).
The idea is that if you implement Serializable (and if you extend Mason
Geometry you do) is that you need to make sure all the fields of your Agent
class are also serializable (writable to file). This is a bit confusing
since Serializable is really a marker interface for some behind the curtain
java stuff rather than your classic method interfaces.

There is a long description of what's needed here:
http://docs.oracle.com/javase/7/docs/platform/serialization/spec/serial-arch.html#4176

In practice however I didn't mean to scare anyone, this is really only
needed when you are looking to generate persistent objects


On Wed, Mar 23, 2016 at 9:02 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...
>
> Luís
>


ATOM RSS1 RSS2