-
Notifications
You must be signed in to change notification settings - Fork 3
HelloWorld
franksn90 edited this page Feb 19, 2024
·
2 revisions
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-simulatorand
mvn -B package --file pom.xml "-DskipTests=true" "-Dmaven.javadoc.skip=true" "-Dcheckstyle.skipExec=true"
cp target/misim.jar ../misim.jarExecute 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 ./HelloWorldResultsNote 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