
Similar to other Repast Models, the typical way to code a simulation is to divide up the creation of the simulation into three methods - buildModel(), buildDisplay(), buildSchedule(). This division is not strictly necessary, but it does make the creation conceptually clearer and this is what the Fad model does
The buildModel() method is responsible for creating those parts of the simulation that represent what is being modeled. Consequently, the agents and their environment are typically created here together with any optional data collection objects. Of course, this method may call other methods to help build the model.
There are also a few other Repast models available from Tom Carters website: NinaNet, NinaNet2, and WealthModel.
Further information
The original source code of the fads model model can be found:
http://csustan.csustan.edu/~tom/SFI-CSSS/2005/FadsModel/
The model can either be run as a .jnlp (ie using Java web start therefore works on any OS) from:
The model can either be run as a .jnlp (ie using Java web start therefore works on any OS) from:
Or run as an executable by clicking here (Sorry it will only work in Windows). For instructions on how to run a Repast model see the Repast website.
No comments:
Post a Comment