MASON-INTEREST-L Archives

August 2015

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:
Fri, 21 Aug 2015 00:10:55 +0200
Content-Type:
text/plain
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