Skip to content

HelloWorld

franksn90 edited this page Feb 19, 2024 · 2 revisions

Running the Hello World Simulation

Build From Source

To execute the hello world simulation, clone the repository and change to the root directory.

git clone https://github.com/Cambio-Project/resilience-simulator.git
cd ./resilience-simulator

and

mvn -B package --file pom.xml "-DskipTests=true" "-Dmaven.javadoc.skip=true" "-Dcheckstyle.skipExec=true"
cp target/misim.jar ../misim.jar

Run the Simulation

Execute the following command to start the simulation:

java -jar ./target/misim.jar -a ./Examples/example_architecture_model.json -e ./Examples/example_experiment_chaosmonkey.json -o ./HelloWorldResults

Note that MiSim should be executed using Java 18 (or previous). Newer Java versions are likely to result in failing or corrupted simulation runs!

After the simulation is finished you can check out the simulation output in the HelloWorldResults directory.


Alternatively this process can be simplified using the provided scripts:

git clone https://github.com/Cambio-Project/resilience-simulator.git
cd ./resilience-simulator
./hello_world.sh