NetLogo is an environment for creating and running agent-based models. It was developed by CCL, The Center for Connected Learning and Computer-Based Modeling at Northwestern University. NetLogo, together with many contributed models, can be freely downloaded from:
http://ccl.northwestern.edu/netlogo/
There is a lot of good online documentation of NetLogo. The download also includes good documentation. Here are a few introductory lectures.