MASON-INTEREST-L Archives

May 2014

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:
Thu, 15 May 2014 13:08:26 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (14 lines)
On May 15, 2014, at 12:58 PM, Francesco Pizzitutti <[log in to unmask]> wrote:

>> 1) When you call sparseGrid2d.remove(agent) does it return something or
>> null?
> 
> It returns the int2D coordinates of the object I am removing. If I remove the 
> object and then I call another time the remove method it returns null. If I use 
> getObjectLocation(agent) it return the same coordinates stored inside the agent.  
> Everything seems ok. 

I presume that you call getObjectLocation(agent) *before* you're removing it.  If you call it *after* you remove it, it should return null.

Sean

ATOM RSS1 RSS2