CSCE475/875 Multiagent Systems

Repast Demo: Example Project Setup Instructions

September 25, 2013

 

·         Download the source code to the Wealth Repast project from
          
http://csustan.csustan.edu/~tom/SFI-CSSS/2009/RePast/Wealth/src/

·         Create a new Java Application project named RepastDemo in Netbeans

o   Uncheck the option to Create Main Class

·         Create a folder named WealthModel in the src folder created by NetBeans

o   Copy the downloaded WealthModel.java, WealthSpace.java and WealthAgent.java files into the WealthModel folder

·         Create a folder params in the RepastDemo project folder

o   Copy the downloaded wealthspace.pgm file into the params folder

·         Next, add the params folder to the project in Netbeans

o   Right Click on the RepastDemo project in the Projects window on the left side of the Netbeans IDE

o   Click on Properties

o   Click on Sources

o   Click the Add Folder button under Source Package Folders

o   Choose the params folder and click on the Open button

o   Click the Ok button

·         Add the necessary jar files to the Repast Project

o   Right click RepastDemo project in the Projects window again

o   Click on Properties

o   Click on Libraries

o   Click on the Add Jar/Folder button

o   Go to the directory where Repast J was installed and go into the Repast J folder.

o   Select the repast.jar and Click Open to add it to the libraries

o   Following the same procedure, Go to the directory where Repast J was installed and go into the Repast J folder and then select all the jar files in the lib folder and add them to the RepastDemo project

o   Click the Ok button

·         Right click on the RepastDemo project (in the Projects window) and then select Clean and Build

·         Right click on the RepastDemo project (in the Projects window) and then select Run

o   Choose WealthModel.WealthModel to be the Main class, then click the Ok button

·         You should now be running the Repast simulation of the Wealth project