Version 3, last updated by jtbriggs at May 03 13:57 2008 UTC
Guide to installing and running FinancialModel
There are two ways to get the project. The simpler way is:
- Download FinancialMarket.jar and setups.zip from the Files tab of this site.
- Unpack setups.zip and place the setups folder next to the jar file.
Alternatively, if you want to be able to revise or extend the models you can:
- Check them out using Subversion from http://svn2.assembla.com/svn/MarketModel
- Build them in Eclipse for Java.
Subversion and Eclipse are fully documented on the web.
Next, you need to configure some files to set the parameters to the models.
- In setups folder, you should see following files:
- main.properties: a configuration file describing what simulation you will run. In particular, by changing values of orderbookClass and agentConfiguration parameters, you can choose the type of orderbook and parameters for the models. Example main.properties files (ie, main_cont.properties) are included for reference, but it is 'main.properties' that counts. Not all order books work with all agents.
- *.txt: these files contain data on composition of population of players and are included via the 'agentConfiguration' option in main.properties. Entries should be formatted as playerClass,numOfInstances with single line per playerClass. You can have as many lines (or different types of agents) in you simulation as required.
Finally, you're ready to run the model.
- If you downloaded the jar file, doubleclick the jar file (or use java -Xmx1024M -jar FinancialModel.jar command) to start the simulation.
- If you're using eclipse, go to src/gui and run FinancialModelWithUI.java as a Java Application.
All Mason simulations have common interface. You can refer to following slides for explanation of control window that should appear.