Skip to content

rlegendi/mason-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MASON Examples

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...

Running the examples

Simply copy&paste the cloned sources to your MASON project. See how to set up a MASON project on NetBeans or Eclipse.

Examples

mason-elfarol

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.

mason-elfarol for PET2

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].

mason-elfarol-pet2 screenshot

  • [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)

mason-jung

mason-jung screenshot

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.

About

Examples for the MASON Agent-Based Modeling platform.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages