This project contains a few examples for the MASON platform.
MASON Stands for Multi-Agent Simulator Of Neighborhoods... or Networks... or something... or Neighborhoods and Networks... but that would be NaN! Oh well...
Simply copy&paste the cloned sources to your MASON project. See how to set up a MASON project on NetBeans or Eclipse.
El Farol is a bar in Santa Fe, New Mexico. The bar is popular --- especially on Thursday nights when they offer Irish music --- but sometimes becomes overcrowded and unpleasant. In fact, if the patrons of the bar think it will be overcrowded they stay home; otherwise they go enjoy themselves at El Farol. This model explores what happens to the overall attendance at the bar on these popular Thursday evenings, as the patrons use different strategies for determining how crowded they think the bar will be.
The implementation was based on the NetLogo Model Library [ElFarol] and some fragments I had on the hard drive. It was hacked together in about 1.5 hours so don't expect too much :-)
- [ElFarol] Rand, W. and Wilensky, U. (2007). NetLogo El Farol model. http://ccl.northwestern.edu/netlogo/models/ElFarol. Center for Connected Learning and Computer-Based Modeling, Northwestern Institute on Complex Systems, Northwestern University, Evanston, IL.
The El Farol model extended to use with the Participatory Extenson Module, v2.0 (PET). It is a web-based framework that allows users to "play" the model by manifesting an agent and manipulate its decisions in a regular browser. The code is in the branch elfarol-pet2
, check it out as git checkout elfarol-pet2
.
For the details, see http://pet2.aitia.ai/, or [Pet2].
- [PET2] Richard Oliver Legendi, László Gulyás, Tamás Máhr, Rajmund Bocsi, Vilmos Kozma, Gábor Ferschl, Peter Rieger and Jakob Grazzini: "A New Set of Tools Supporting Agent-Based Economic Modelling". (To appear in the proceedings of the 16th Portuguese Conference on Artificial Intelligence, EPIA 2013 conference, SSM – Social Simulation and Modelling Thematic Track)
This is a demo model introducing the usage of JUNG (Java Universal Network/Graph Framework) with MASON. There is an official contributed example as well.
MASON offers several ways to work with networks, like the built-in mechanism (e.g., NetworkPortrayal2D) or the SocialNets extension. Unfortunately, both requires a 2D world to operate with, so one have to implement the layouting strategy for instance. MASON also supports using external libraries like JUNG for operating with networks.
This model requires the addition of the JUNG libraries to the MASON project.