Repast Simphony (almost) without Eclipse

Article Banner Image
Photo by Sandy Millar on Unsplash

This project uses the Repast Simphony JZombies Model, taken from the Repast Java Tutorials and shows how to use Repast Simphony (almost) without Eclipse. This is especially useful, when the model is built in a ci pipeline or one wants to use another IDE, like Intellij IDEA.

The approach is developed and widely used by the team of the topic field Cognitive Social Simulation of the Research Department Smart Data & Knowledge Services at DFKI.

Check out the Code

Requirements

git clone https://github.com/DFKI/Repast-Simphony-Ant.git

Install adoptopenjdk11

To run and build the model, Repast Simphony Runtime Libraries are needed. It is sufficient to just download (and unzip) the plugins folder. Alternatively you can use your local installation of Repast Simphony 2.9 .

Run from Command Line

Available Targets

Run the Repast Server as Docker Container

Reference to Repast Server: https://repast.github.io/docs/RepastNG/browser.html

docker-compose up -d --build

Go to http://localhost:5000

Build and Run in Intellij IDEA

import

ant-properties

Example for run-model:

run-config

Syntax Highlighting in Intellij

Under File > Project Structure > Project Settings > Modules > JZombies_Demo > Dependencies

import-module

Add a Debugger 🐞

debugger