Editor To run OpenMOLE, just run the openmole file (or openmole.bat for the windoz users). It will bring up your web browser. OpenMOLE supports Chrome and Firefox. So if you are using another default web browser please copy paste the OpenMOLE url (http://localhost:port) in one of these browser.You should see something like this (all the documentation concerning the application is provided in the application itself (the last green icon in the top bar)): .
To run OpenMOLE on a remote machine and connect to using a web browser you should run:
openmole --remote --port portnumber. The first time you launch it, it asks you for a password. Then you can remotely connect to OpenMOLE using the url https://remotemachine:portnumber - https:// is important. When you connect it asks you for the password you've entered previously.
OpenMOLE proposes a headless mode for running scripts. You can enable it thanks to the -s option:
./openmole -s /path/to/you/mole/script
./openmole -s /path/to/your/mole/script --password password. A better practice is to write this password in a file readable by OpenMOLE only and use
./openmole -s /path/to/your/mole/script --password-file password.txt.
Interactive console mode
OpenMOLE also proposes an interactive console mode. To launch the console execute openmole -c in a console. The only difference between the script in the console mode and the ones from the editor concerns the way you launch the execution, you cancel it and you follow the execution progress. An console workflow is launched like this:
Using the ex and the env variables you can follow the progress of the execution by using the commands: print(ex) and print(env). To cancel the execution you should use: ex.cancel.
val exploration = DirectSampling( evaluation = myModel on env, sampling = mySampling ) val ex = exploration start
OpenMOLE proposes several launching options. Execute
openmole -h to list all the available options.