Skip to content

Create new Simulation

phiesel edited this page Aug 7, 2014 · 5 revisions

This page shows the steps to create a new simulation based on one of the existing models (Excel/Vensim).


Add the simulation to ROMA

The code to add a new simulation to ROMA based on existing models and either a combined spreadsheet as created by this article can be seen in roma-server/src/test/java/edu/mit/cci/roma/util/CreateSimulations201402.java.

This class is a unit test that will add the appropriate tuples to ROMA database in order to make the simulation available. It can be executed using maven: mvn compile test -Dtest=CreateSimulations201402.

Since this is a test, the successful output can be determined from the command line:

Results :

Tests run: 1, Failures: 0, Errors: 0, Skipped: 0

To create and add different simulations copy CreateSimulations201402 and edit the code to fit your model.

Add the simulation to the Climate CoLab

New simulations will be available to the CoLab platform automatically. If they do not show up in the models-admin overview they can be accessed by clicking on the previous model and increasing the ID in the URL.

Simulations can be linked to contests in their respective templates using simulation IDs.

Clone this wiki locally