Author: Nick Malleson
UPDATE (Jan 2012) I have rebuilt this project from scratch and it now has it's own website here:
http://code.google.com/p/repastcity/ This page will remain for reference but this version of the code will no longer be updated.
UPDATE (Feb 2011). I have updated this project for the new version of Repast Simphony (2.0 beta). If you would like to use the old version (which only works in Simphony 1.2) you can get it here:
Repast City (old).
I've written a small Repast Simphony program which demonstrates how to create a virtual city and move some agents around a road network. I'm using this type of model for my PhD (an agent-based model of crime/burglar) and hopefully this program will be useful for anyone who needs to be able to move agents around a city.
If you're new to Repast Simphony you should do some tutorials first otherwise the code won't mean anything to you. The ones on the
Repast website are excellent (in particular do the Java one). Repast Simphony has quite a steep learning curve but is well worth learning if you need to build agent-based models, it's an excellent tool.
There is some background information about how the program works on my
research blog.
The code is released under the
GNU General Public Licence so you're welcome to use the code however you would like to but please put a reference to me (Nick Malleson) or to this page somewhere. When I finish my working paper you could use that instead.
If you improve or extend the code please let me know and I'll update it on this site. This is my first attempt at building a virtual city and so there will be lots of places where it can be improved (particularly with regards to efficiency, I think the routing algorithm is very slow).
The program is available as a single compressed file which contains the entire Eclipse project:
Repast City Project. Download the repastcity2.zip file and extract it to a temporary directory.
To run the program you need to download
Repast Simphony version 2.0 (it comes bundled with the Eclipse development environment) and then follow these instructions:
There is a picture below which shows what the program should look like. I''ve also made a
video of the simulation running.
I hope the code is useful. If you have any questions my email address is on my School of Geography
webpage or even better try the Repast
mailing list .