|
@@ -4,51 +4,7 @@ How to run
|
|
Running the Modelverse is all done through the use of scripts to coordinate the three different projects.
|
|
Running the Modelverse is all done through the use of scripts to coordinate the three different projects.
|
|
|
|
|
|
The following scripts are included by default.
|
|
The following scripts are included by default.
|
|
-
|
|
|
|
-check_objects.py
|
|
|
|
-----------------
|
|
|
|
-
|
|
|
|
-Checks whether all compiled objects can be found, and if their symbol table does not contain undefined references.
|
|
|
|
-This script cannot be executed directly and is only a helper.
|
|
|
|
-
|
|
|
|
-compile.py
|
|
|
|
-----------
|
|
|
|
-
|
|
|
|
-Compiles the provided code with the selected mode.
|
|
|
|
-This should also not be called by end-tasks, though it is possible.
|
|
|
|
-
|
|
|
|
-Invocation::
|
|
|
|
-
|
|
|
|
- python scripts/compile.py address file taskname object mode
|
|
|
|
-
|
|
|
|
-============== ====================================== =====================
|
|
|
|
-Parameter name Description Example
|
|
|
|
-============== ====================================== =====================
|
|
|
|
-address Address of the Modelverse http://localhost:8001
|
|
|
|
-file File to be compiled file.alc
|
|
|
|
-taskname Taskname to use when compiling test_task
|
|
|
|
-object Object name to export to object.o
|
|
|
|
-mode Either CO (constructors) or PO (graph) PO
|
|
|
|
-============== ====================================== =====================
|
|
|
|
-
|
|
|
|
-execute_model.py
|
|
|
|
-----------------
|
|
|
|
-
|
|
|
|
-Compile a model and action language files together, executing the action language.
|
|
|
|
-First, all models are added, and then the action language is executed, starting at function "main".
|
|
|
|
-Models being created are temporary, so they need to be exported before they can be accessed in the action language.
|
|
|
|
-
|
|
|
|
-Invocation::
|
|
|
|
-
|
|
|
|
- python scripts/execute_model.py address taskname file1 file2 ...
|
|
|
|
-
|
|
|
|
-============== ======================================= =====================
|
|
|
|
-Parameter name Description Example
|
|
|
|
-============== ======================================= =====================
|
|
|
|
-address Address of the Modelverse http://localhost:8001
|
|
|
|
-taskname Taskname to use when compiling test
|
|
|
|
-file File to compile (either .mvc or .alc) test.alc
|
|
|
|
-============== ======================================= =====================
|
|
|
|
|
|
+Despite the various files, only *run_local_modelverse.py* is required for most cases.
|
|
|
|
|
|
fix_files.py
|
|
fix_files.py
|
|
------------
|
|
------------
|
|
@@ -84,58 +40,6 @@ Invocation::
|
|
|
|
|
|
python scripts/generate_bootstrap.py
|
|
python scripts/generate_bootstrap.py
|
|
|
|
|
|
-link_and_load.py
|
|
|
|
-----------------
|
|
|
|
-
|
|
|
|
-This takes a set of objects in the Modelverse, links them together in a single "executable" and executes it immediately.
|
|
|
|
-Generally not needed by end-tasks.
|
|
|
|
-
|
|
|
|
-Invocation::
|
|
|
|
-
|
|
|
|
- python scripts/link_and_load.py address taskname object1 object2 ...
|
|
|
|
-
|
|
|
|
-============== ======================================= =====================
|
|
|
|
-Parameter name Description Example
|
|
|
|
-============== ======================================= =====================
|
|
|
|
-address Address of the Modelverse http://localhost:8001
|
|
|
|
-taskname Taskname to use when compiling test
|
|
|
|
-object File to compile (either .mvc or .alc) test.alc
|
|
|
|
-============== ======================================= =====================
|
|
|
|
-
|
|
|
|
-make_all.py
|
|
|
|
------------
|
|
|
|
-
|
|
|
|
-Compile a set of files and executes them immediately.
|
|
|
|
-
|
|
|
|
-Invocation::
|
|
|
|
-
|
|
|
|
- python scripts/make_all.py address taskname file1 file2 ...
|
|
|
|
-
|
|
|
|
-============== ======================================= =====================
|
|
|
|
-Parameter name Description Example
|
|
|
|
-============== ======================================= =====================
|
|
|
|
-address Address of the Modelverse http://localhost:8001
|
|
|
|
-taskname Taskname to use when compiling test
|
|
|
|
-file File to compile (either .mvc or .alc) test.alc
|
|
|
|
-============== ======================================= =====================
|
|
|
|
-
|
|
|
|
-make_parallel.py
|
|
|
|
-----------------
|
|
|
|
-
|
|
|
|
-A parallel version of make_all.py.
|
|
|
|
-
|
|
|
|
-Invocation::
|
|
|
|
-
|
|
|
|
- python scripts/make_parallel.py address taskname file1 file2 ...
|
|
|
|
-
|
|
|
|
-============== ======================================= =====================
|
|
|
|
-Parameter name Description Example
|
|
|
|
-============== ======================================= =====================
|
|
|
|
-address Address of the Modelverse http://localhost:8001
|
|
|
|
-taskname Taskname to use when compiling test
|
|
|
|
-file File to compile (either .mvc or .alc) test.alc
|
|
|
|
-============== ======================================= =====================
|
|
|
|
-
|
|
|
|
prompt.py
|
|
prompt.py
|
|
---------
|
|
---------
|
|
|
|
|
|
@@ -144,6 +48,8 @@ You can log in as a specific task and start sending input messages to the Modelv
|
|
All output sent by the Modelverse will be printed in the console.
|
|
All output sent by the Modelverse will be printed in the console.
|
|
There is no logic in the prompt itself, making it completely generic.
|
|
There is no logic in the prompt itself, making it completely generic.
|
|
|
|
|
|
|
|
+While this is not the most usable way of communicating with the Modelverse, it provides a minimal interface.
|
|
|
|
+
|
|
Invocation::
|
|
Invocation::
|
|
|
|
|
|
python scripts/prompt.py
|
|
python scripts/prompt.py
|
|
@@ -156,16 +62,12 @@ This combines MvK and MvS at the same system, and actually makes a direct link b
|
|
While this is kind of a hack at the moment, it is really necessary for performance.
|
|
While this is kind of a hack at the moment, it is really necessary for performance.
|
|
To split them up, there just needs to be a statechart in between both of them (which is already written and working).
|
|
To split them up, there just needs to be a statechart in between both of them (which is already written and working).
|
|
|
|
|
|
|
|
+The port option is optional, and defaults to 8001.
|
|
|
|
+
|
|
Invocation::
|
|
Invocation::
|
|
|
|
|
|
python scripts/run_local_modelverse.py port
|
|
python scripts/run_local_modelverse.py port
|
|
|
|
|
|
-============== ============================== =======
|
|
|
|
-Parameter name Description Example
|
|
|
|
-============== ============================== =======
|
|
|
|
-port Port to host the Modelverse on 8001
|
|
|
|
-============== ============================== =======
|
|
|
|
-
|
|
|
|
run_tests.py
|
|
run_tests.py
|
|
------------
|
|
------------
|
|
|
|
|
|
@@ -174,14 +76,3 @@ Run the tests for all parts of the Modelverse.
|
|
Invocation::
|
|
Invocation::
|
|
|
|
|
|
python scripts/run_tests.py
|
|
python scripts/run_tests.py
|
|
-
|
|
|
|
-run_MvC_server.py
|
|
|
|
------------------
|
|
|
|
-
|
|
|
|
-Run the Modelverse with a modelling interface pre-loaded and fully operational.
|
|
|
|
-This is probably the only command you will need to start the Modelverse server on your local machine.
|
|
|
|
-You are advised to check the global variables of the script for all configuration parameters, such as the server port and the username and password of the root user.
|
|
|
|
-
|
|
|
|
-Invocation::
|
|
|
|
-
|
|
|
|
- python scripts/run_MvC_server.py
|
|
|