MASON-INTEREST-L Archives

August 2013

MASON-INTEREST-L@LISTSERV.GMU.EDU

Options: Use Monospaced Font
Show HTML 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:
Aуdar Aliev <[log in to unmask]>
Reply To:
MASON Multiagent Simulation Toolkit <[log in to unmask]>
Date:
Mon, 12 Aug 2013 14:36:43 +1200
Content-Type:
multipart/alternative
Parts/Attachments:
text/plain (695 bytes) , text/html (785 bytes)
Sure!
Each agent contains a Bag called population. Within population there are
number of IntBags. So population looks like this:
((1,1,1,1,1),(1,1,1,1,1),(1,1,1,1,1),(1,1,1,1,1),(1,1,1,1,1,1)....(1,1,1,1,1)).
On each step I perform some operations with population, but it is
irrelevant at the moment.

Each 10th(for example) step I want my agents to exchange IntBags(aka
individuals). The problem is that while I can call
map.getNeighborsExactlyWithinDistance() or something similar, and get
individuals from the *copy*(or copies) of neighboring agents method returns
by calling getMigrants() method I created for agent, I can't figure out a
way to remove individuals who migrated from the original neighbor.


ATOM RSS1 RSS2