This repository contains the sources for the intergation of GAMA in OpenMOLE.
This plugin is distributed under the GNU Affero GPLv3 software licence.
You must install a version of sbt superior to 0.13. Then go to the repository and execute:
sbt osgi-bundle
This plugin works with the developpement version of OpenMOLE, the future 1.0 release.
-
Due to a bug in the JVM you should first remove the -XX:+UseG1GC option in the launching script of OpenMOLE (unless you are using java 8).
-
Launch OpenMOLE with the gama plugin loaded:
./openmole -c -p /path/to/openmole/gama/plugin/repo/target/scala-2.10/openmole-gama_2.10-1.0-SNAPSHOT.jar /path/to/openmole/gama/plugin/repo/bundles/
-
Execute a workflow launching a Gama model in OpenMOLE:
import org.openmole.plugin.domain.collection._ import org.openmole.plugin.sampling.combine._ import org.openmole.plugin.task.gama._ import org.openmole.plugin.hook.display._ // Declare the variable val number_of_preys = Prototype[Int]("number_of_preys") val nb_preys_init = Prototype[Int]("nb_preys_init") // Gama task val gama = GamaTask("hello", "/path/to/predatorPrey.gaml", "preyPred", 10) gama addGamaInput nb_preys_init gama addGamaOutput number_of_preys val exploration = ExplorationTask("explo", Factor(nb_preys_init, 0 to 200 by 10 toDomain)) val ex = exploration -< (gama hook ToStringHook()) toExecution ex.start