Ethnocentrism_Model_Documentation.docx

looneyvillestaticSoftware and s/w Development

Aug 15, 2012 (5 years and 2 months ago)

301 views

This model is implemented in Java, and requires a Java IDE such as NetBeans or
Eclipse to run.


The following runs Hammond and Axelrod's simulation 10 times for 2000 cycles
each at a cost benefit ration of 3/1:


1)

Download and unzip Ethnocentrism_Model.zip

2)

Import the project into your workspace using the import function packaged
with your IDE (for Eclipse: File
-
> Import)

3)

Create a folder to house the results

4)

Create a subfolder within your newly created results directory entitled
"benefit
-
3x
-
cost"

5)

Open the file Game_Shell.java. On the line 17 you will see
"

/*ENTER THE
APPROPRIATE FILE PATH HERE*/"

below this line, enter the full path to
your results directory

6)

Save, compile, and run the simulation and the results will be saved as text
files in the b
enefit
-
3x
-
cost/ folder of your results directory.


More to come shortly… for now if you have any questions feel free to email me at
max.hartshorn@mail.mcgill.ca