-
Notifications
You must be signed in to change notification settings - Fork 0
Supplementary Material of the article: A. Reina, G. Valentini, C. Fernandez-Oto, M. Dorigo and V. Trianni. A design pattern for decentralised decision making, Plos ONE, 2015. Source code for multi-agent experiments presented in the case studies.
License
joefresna/PlosONE-Reina2015
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
/************************************************/ /***************** Dependencies *****************/ /************************************************/ * JRE 1.7 (recommended version 1.7.0_11) * Mason 16 + official download source: http://cs.gmu.edu/~eclab/projects/mason/ + included in this gitHub in the dir dependencies/ * JMF + official download source: http://www.oracle.com/technetwork/java/javase/download-142937.html + included in this gitHub in the dir dependencies/ * iText (recommended version 1.2) + official download source: http://itextpdf.com/download.php + included in this gitHub in the dir dependencies/ * jCommon (recommended version 1.0.16) + included in this gitHub in the dir dependencies/ * jFreeChart (recommended version 1.0.13) + official download source: http://www.jfree.org/jfreechart/ + included in this gitHub in the dir dependencies/ * [optional] Eclipse (recommended version 4.4.1) https://eclipse.org/ POSSIBILITY TO DOWNLOAD ALL THE REQUIRED DEPENDENCIES (except Eclipse) FROM: http://cs.gmu.edu/~eclab/projects/mason/ /************************************************/ /***************** Installation *****************/ /************************************************/ 1. Download the source code into the dir <PlosONE-Reina2015> + Note that we provide some of the required third party dependencies in this gitHub project. You can find them (jar files) in <PlosONE-Reina2015>/dependencies 2. Import the project in Eclipse + File > Import > General > Existing Projects into workspace + Select the dir <PlosONE-Reina2015> /*************************************************/ /******************* Execution *******************/ /*************************************************/ *** CASE STUDIES IA AND IB *** 1. Configure the experiment properties through the properties file <PlosONE-Reina2015>/conf/nospatial.properties 2. Open (in Eclipse) the file src/nospatial/NoSpatial.java 3. Run the class (Eclipse-menu) Run > Run *** CASE STUDY II *** 1. Configure the experiment properties through the properties file <PlosONE-Reina2015>/conf/spatial.properties 2. Open (in Eclipse) the file src/spatial/BestFood.java 3. Run the class (Eclipse-menu) Run > Run 4. For a graphical visualization: + open the file src/spatial/BestFoodWithUI.java + run the class + click on play button (triangle) /*************************************************/ /**************** Check results ******************/ /*************************************************/ After execution, you find the file <PlosONE-Reina2015>/results/lastline.txt with the population distribution at the end on the experiment. The columns in this file are [timestep, population U, population A, population B] Configure the properties files to output more information.
About
Supplementary Material of the article: A. Reina, G. Valentini, C. Fernandez-Oto, M. Dorigo and V. Trianni. A design pattern for decentralised decision making, Plos ONE, 2015. Source code for multi-agent experiments presented in the case studies.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published