interaction.rst 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. Basic Interaction
  2. =================
  3. As previously mentioned during the installation phase, the Modelverse is merely a collection of scripts.
  4. We briefly present how the Modelverse is structured, and introduce the most important scripts for general use.
  5. A more elaborate view on the architecture and the different scripts is only required for developers of the Modelverse.
  6. Simplified Architecture
  7. -----------------------
  8. The Modelverse architecture consists of three core concepts, which will be referred to throughout the documentation.
  9. Modelverse State (MvS)
  10. ^^^^^^^^^^^^^^^^^^^^^^
  11. The Modelverse State (MvS) is the memory of the Modelverse, and contains all data pertaining to it.
  12. This includes not only the different models created by the users, but also all metamodels, transformations, operations, but also all bootstrap files.
  13. Furthermore, it includes all execution state of operations being executed in the Modelverse.
  14. As such, the Modelverse State is the database of the Modelverse, which is the only component containing data.
  15. Only developers will ever have to directly interface with the Modelverse State.
  16. Modelverse Kernel (MvK)
  17. ^^^^^^^^^^^^^^^^^^^^^^^
  18. The Modelverse Kernel (MvK) is the execution core of the Modelverse, and connects to the Modelverse State to fetch the instructions to execute.
  19. All its execution information is stored in the MvS as well, and therefore it has to (theoretically) query the MvS for each and every instruction.
  20. It merely consists of a set of model transformation rules which take the current state of the MvS, and do a set of modifications on it.
  21. Only developers will ever have to directly interface with the Modelverse Kernel.
  22. Modelverse Interface (MvI)
  23. ^^^^^^^^^^^^^^^^^^^^^^^^^^
  24. The Modelverse Interface (MvI) ...
  25. Necessary scripts
  26. -----------------
  27. Explain the different scripts and how they can be used
  28. Briefly show the *run_tests.py* and *run_local_modelverse.py*
  29. Also *prompt.py*
  30. Wrapper
  31. -------
  32. We explain the simple Python wrapper
  33. Other wrappers can be defined quite easily due to the Modelverse architecture
  34. Later is a full overview of the wrapper, we now introduce it piece by piece in Python