MASON-INTEREST-L Archives

August 2015

MASON-INTEREST-L@LISTSERV.GMU.EDU

Options: Use Proportional 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:
Fri, 21 Aug 2015 00:10:55 +0200
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 (10 lines)
One real oddity is that in your setupPortrayals method you are creating a new FastObjectGridPortrayal2D, then attaching it.  But you didn't get rid of (detatch) the old one.  Furthermore you create a new Display and register it but don't get rid of the original display!

This is gonna cause a lot of issues.

You shouldn't have any display code in setupPortrayals at all.  That should be only in init.  It's done once and that's it.

You shouldn't make a new FastObjectGridPortrayal2D in setupPortrayals and attach it unless you've first detached the original one.  I suggest instead just taking the original one and setting it to the new field.

Sean

ATOM RSS1 RSS2