August 2012


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
Luís de Sousa <[log in to unmask]>
Reply To:
MASON Multiagent Simulation Toolkit <[log in to unmask]>
Wed, 8 Aug 2012 20:23:08 +0200
text/plain (1189 bytes) , (10 kB) , (10 kB)
Thank you folks for your help. Here in attachment you'll find two
compressed files, one with the Eclipse project (use File->Import) and
another with the plain java files.

Don't try to find much logic in it, it is a very stripped down version
of another simulation, just for illustration.

Thank you once more,


On 7 August 2012 23:33, Sean Luke <[log in to unmask]> wrote:
> field.remove(foo) will definitely remove foo from the field, and the Field Portrayal will definitely stop calling draw() on its corresponding SimplePortrayal.  So if you're having a problem at this point either there's a bug in your code or a bug in ours.  To determine this, I will need you to send me (directly) a tarball containing an ideally simple example of the bug happening, including source code, so we can poke around.
> The only other thing I can think of is that you are using the same SimplePortrayal for multiple objects in the field -- that's typical -- but are storing some kind of state or information in the SimplePortrayal which is somehow carrying over -- that's unlikely.  Or you have the object being added to the field somehow or it's part of some other field which is being drawn.
> Sean