MASON-INTEREST-L Archives

October 2015

MASON-INTEREST-L@LISTSERV.GMU.EDU

Options: Use Monospaced 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
Content-Type:
text/plain; charset=utf-8
Date:
Sat, 24 Oct 2015 16:37:56 +0200
Reply-To:
MASON Multiagent Simulation Toolkit <[log in to unmask]>
Subject:
MIME-Version:
1.0
Message-ID:
Content-Transfer-Encoding:
7bit
Sender:
MASON Multiagent Simulation Toolkit <[log in to unmask]>
From:
Axel Kowald <[log in to unmask]>
Parts/Attachments:
text/plain (12 lines)
Hello Together,

I just wonder what the best way is to iterate over all the agent on my
ObjectGrid2D ?
Currently I'm extracting a Bag with all agents by using the elements()
method. It works, but I'm not sure how fast/slow it is. Would it be
worth to maintain my own Bag and do the bookkeeping by
inserting/removing agents when needed?

thanx,
  Axel

ATOM RSS1 RSS2