ODD2NetLogo is a tool designed to generate NetLogo code from an ODD specification. It features a user-interface that emulates the ODD format and converts the information into a runnable NetLogo experiment. ODD2NetLogo is defined in the MPS platform.
ABM is used for modeling of social, socioecological, ecological, socio-economical and other types of mixed systems. The paradigm suggests that we conceptualise these systems as entities living in an environment (physical or social). The entities have properties and behaviours; they interact with each other and change their states. One major aspect of the paradigm is time. Normally, the time progresses and this enables the unfolding of the model based on the modelled behaviors.
The strength of Agent-Based Modelling is the emergence of patterns. We use ABM to test whether the properties or behaviours of the entities respond well to observed patterns (real-life patterns) or to test what patterns can emerge from observed behaviours and properties of entities. Finally, we can also use ABM to experiment with hypothetical properties and behaviours and hypothetical patterns.
Make sure you have installed Java (Version at least 1.8)
- Install JetBrains MPS 2022.2.2
- In MPS select VCS -> get from version control
- paste the URL from this GitHub repositories code-tab.
- In MPS, right click formalodd and select "Make language formalodd"
You can input your model specifications according to the manual and tutorial. Go to the Project, and right-click Rebuild
to integrate whatever changes you make.
The tool includes some build-in ODDs apart from the ones your store in your new solution/model. The build-ins ODDs cannot be changed by you; you can only view them. If you want to experiment with the already existing ODDs, copy them (one by one) and paste them into your model. To do that, create an empty ODD, copy the build-in ODD, and paste it in the empty ODD.
When working in MPS, the following plugins are required:
- MPS Multiline Property Editor Component.
To install a plugin:
- Go to Settings.
- Click the Plugins tab.
- Select Marketplace on the top.
- Search for the plugin (For example MPS Multiline Property Editor Component).
- Install, and accept any requirements by the plugin, and restart MPS.
Make sure you have installed NetLogo.
- Generate your solution
- Right click your solution -> preview generated text
- Copy the generated text.
- Paste it in an empty text file.
- Save the text file as
nameofthemodel.nlogo
. - Open the model, with NetLogo. The model is ready to run.
This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License.