My question is regarding modifying agents on another process. I am using a grid, where I have static agents, one agent per grid cell. Each agent can get its direct neighbours using the Moore2DGridQuery. Then depending on the neighbouring agents states, they can choose one of their neighbours and change their state. Pretty much in the same way with the Humans and Zombies, where a zombie can infect a human. However, since the the agent can modify a direct neighbour, that means the neighbour could be an agent in the buffer zone. So if I want to "infect" and agent in the buffer zone and propagate that back to the original agent, what is the best possible approach to doing this?
Is there a way to modify an agent in the buffer zone of Repast HPC Grid, and propagate those changes back to the original agent?
23 Views Asked by Alexandar Ruskov At
1
There are 1 best solutions below
Related Questions in REPAST-HPC
- How to create ghost agents based on agents from another rank in repast4py?
- How to simulate an order queue in repast across multiple ranks(processor cores )?
- Is there a way to access the weight of an edge using Repast4Py's network module?
- Flexible Array Member for 2D-Array
- What is a quick way to filter agents retrieved by Moore2DGridQuery
- Running discrete grid projections on more than 4 processes
- Is there a way to modify an agent in the buffer zone of Repast HPC Grid, and propagate those changes back to the original agent?
- Issue with Synchronisation of Agents from different types in a shared discrete space projection
- Problems installing Repast HPC 2.3.1 on MacOS
- Repast HPC Not Installing correctly on UBUNTU
- REPAST HPC WSL Installation leads to boost no being found
- How to stop simulation run after specific time NOT tick
- How to configure the context.xml file?
- C++ code runs on Mac with multithreading, file will not open in Ubuntu
- GCC 4.8.4 Error on Ubuntu 14.04 VM: -std=c++11 flag isn't being detected
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
There's really no built-in way to do this. Synchronization is from the original to the ghost / buffered agent. The intention is that the non-ghost (non-buffered) agents are active, and would, for example, look around at their neighbors and then change themselves in someway. Is it possible to refactor your agent behavior with that in mind?
You could code your own mechanism for this reverse synchonization but you'd have to use MPI directly, sending agent ids and the updated state, rather than any of Repast HPC's synchronization mechanisms. If you are doing that probably the easiest way is to send all the changes to rank 0 and then have each rank query rank 0 for any applicable changes. Again though that's MPI programming and not strictly related to Repast HPC.