Translate: Arabic | Chinese | French | German | Italian | Japanese | Korean | Portugese | Russian | Spanish
Predator Prey Multi Agent Simulation Model (JAVA & REPAST).
Note: Someone sent me a question without contact info, so here is the answer:
Q: I wish to use it [code] in order to make a test in how it would run concurrently (each agent in a thread). I wish to have your permission and I need your indication on the reference for the paper/article.
A: You have my permission. Reference is:
Sabelli H. and Kovacevic L. Biotic Population Dynamics and the Theory of Evolution. InterJournal Complex Systems, 1793.
If you are new to REPAST, I wormly recommend that you start with this Java tutorial.
If you are relatively new to JAVA programming or programming in general, you will also find this tutorial very usefull,
because it will show you a methodology of implementing an idea from words into a computer program in a step by step instructions.
Predator Prey model simulates the dynamics of the system with 3 different agent types: predator, prey, and grass.
With default parameters the system is stable (all 3 agents are surviving),
while if you change any of the parameters a little, you will see the extinction of predators, or preys (and therefore also predators).
Download a jar application PredatorPrey.zip that includes a REPAST libraries (2 Megabytes).
Or instead of this file, download a source code predator-prey-multi-agent-repast-simulation.zip (16 kilobytes) file with the following 5 classes
PredatorPreyModel.java
PredatorPreySpace.java
PredatorPreyAgent.java
Predator.java
Prey.java
You can download REPAST libraries from their website.
screenshot of the application