

launchingCommands NetLogo commands to be executed, mandatory.The arguments for a NetLogoTask are the following : It is written as netLogoOutputs in the definition of the task.

Similarly, an output of the model is considered and collected by OpenMOLE at the end of each model execution.

Therefore they appear as inputs of the NetLogoTask. The replication and density OpenMOLE variables are used as parameters of the NetLogo program. If you use the forever button go in the NetLogo GUI don't forget that you will need something like "while " in the command list, as openmole won't loop your go function by default. For this particular model, this function is called until no more turtles are active. setup calling the setup function of the nlogo file,.random-seed initializing the random number generator of NetLogo using the seed provided by OpenMOLE,.In this example, the command list contains: NetLogo6Task(workDirectory / "ogo", cmds) set (
#Netlogo java how to
Here is an example on how to write the NetLogo task for the model ogo: The task comes in two versions : NetLogo5Task and NetLogo6Task, be sure to select the right version of the task according to the version of NetLogo you are using (5 or 6). the list of NetLogo commands to be run by OpenMOLE.OpenMOLE provides a NetLogo task which expects the following parameters: It is conceived to be accessible to non-programmers and thus enhances inter-disciplinarity in the construction of simulation models, but can also be used to program large scale complex models (despite its bad reputation, see this paper testing NetLogo speed performance and suggesting code improvements).Īs it runs on the JVM, it is naturally integrated into OpenMOLE. NetLogo is a widely used agent-based modeling platform and language developed by CCL at Northwestern University (see the official website).
