using_language.html 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <title>Using a Modelling Language &mdash; AToMPM 0.6 documentation</title>
  7. <link rel="stylesheet" href="_static/classic.css" type="text/css" />
  8. <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
  9. <link rel="stylesheet" href="_static/mystyle.css" type="text/css" />
  10. <script type="text/javascript">
  11. var DOCUMENTATION_OPTIONS = {
  12. URL_ROOT: './',
  13. VERSION: '0.6',
  14. COLLAPSE_INDEX: false,
  15. FILE_SUFFIX: '.html',
  16. HAS_SOURCE: true
  17. };
  18. </script>
  19. <script type="text/javascript" src="_static/jquery.js"></script>
  20. <script type="text/javascript" src="_static/underscore.js"></script>
  21. <script type="text/javascript" src="_static/doctools.js"></script>
  22. <link rel="top" title="AToMPM 0.6 documentation" href="index.html" />
  23. <link rel="next" title="Modelling a Model Transformation" href="modelling_transformation.html" />
  24. <link rel="prev" title="Creating a Modelling Language" href="new_language.html" />
  25. </head>
  26. <body role="document">
  27. <div class="related" role="navigation" aria-label="related navigation">
  28. <h3>Navigation</h3>
  29. <ul>
  30. <li class="right" style="margin-right: 10px">
  31. <a href="genindex.html" title="General Index"
  32. accesskey="I">index</a></li>
  33. <li class="right" >
  34. <a href="modelling_transformation.html" title="Modelling a Model Transformation"
  35. accesskey="N">next</a> |</li>
  36. <li class="right" >
  37. <a href="new_language.html" title="Creating a Modelling Language"
  38. accesskey="P">previous</a> |</li>
  39. <li class="nav-item nav-item-0"><a href="index.html">AToMPM 0.6 documentation</a> &raquo;</li>
  40. </ul>
  41. </div>
  42. <div class="document">
  43. <div class="documentwrapper">
  44. <div class="bodywrapper">
  45. <div class="body" role="main">
  46. <div class="section" id="using-a-modelling-language">
  47. <span id="id1"></span><h1>Using a Modelling Language<a class="headerlink" href="#using-a-modelling-language" title="Permalink to this headline">¶</a></h1>
  48. <p>Using a modelling language is relatively easy, and requires you to make use of the <em>MainMenu</em> toolbar:</p>
  49. <img alt="_images/main_toolbar.png" src="_images/main_toolbar.png" />
  50. <div class="section" id="loading-a-formalism-toolbar">
  51. <h2>Loading a Formalism Toolbar<a class="headerlink" href="#loading-a-formalism-toolbar" title="Permalink to this headline">¶</a></h2>
  52. <p>The first step when using a language is to load its associated formalism toolbar by pressing the second button on the <em>MainMenu</em> toolbar. You are presented with a file browser. To load the <em>TrafficLights</em> example, for example:</p>
  53. <img alt="_images/load_trafficlights.png" src="_images/load_trafficlights.png" />
  54. <p>The toolbar allows you to place instances of classes on the canvas and connect them. For more information, see <a class="reference internal" href="overview.html#formalism-toolbars"><span class="std std-ref">Formalism Toolbars</span></a>.</p>
  55. </div>
  56. <div class="section" id="opening-a-model">
  57. <h2>Opening a Model<a class="headerlink" href="#opening-a-model" title="Permalink to this headline">¶</a></h2>
  58. <p>To open a model, press the fifth button of the <em>MainMenu</em> toolbar. Opening a model replaces the currently opened model, if any. If there are any unsaved changes in the currently opened model, you will receive a warning.</p>
  59. </div>
  60. <div class="section" id="saving-a-model">
  61. <h2>Saving a Model<a class="headerlink" href="#saving-a-model" title="Permalink to this headline">¶</a></h2>
  62. <p>When you are done editing, you can save your model by pressing the seventh button on the <em>MainMenu</em> toolbar. If this is the first time you save a model, you will be presented with a file browser that allows you to choose a name for your model.</p>
  63. <div class="admonition note">
  64. <p class="first admonition-title">Note</p>
  65. <p class="last">Model names need to end with the .model file extension.</p>
  66. </div>
  67. </div>
  68. <div class="section" id="validating-a-model">
  69. <h2>Validating a Model<a class="headerlink" href="#validating-a-model" title="Permalink to this headline">¶</a></h2>
  70. <p>To validate whether the structure of your model adheres to all constraints defined by the language, press the third-last button. If no message appears, it means all constraints are satisfied. Otherwise, a message appears detailing the constraint that failed. For example:</p>
  71. <img alt="_images/validation_failed.png" src="_images/validation_failed.png" />
  72. </div>
  73. </div>
  74. </div>
  75. </div>
  76. </div>
  77. <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
  78. <div class="sphinxsidebarwrapper">
  79. <h3><a href="index.html">Table Of Contents</a></h3>
  80. <ul>
  81. <li><a class="reference internal" href="#">Using a Modelling Language</a><ul>
  82. <li><a class="reference internal" href="#loading-a-formalism-toolbar">Loading a Formalism Toolbar</a></li>
  83. <li><a class="reference internal" href="#opening-a-model">Opening a Model</a></li>
  84. <li><a class="reference internal" href="#saving-a-model">Saving a Model</a></li>
  85. <li><a class="reference internal" href="#validating-a-model">Validating a Model</a></li>
  86. </ul>
  87. </li>
  88. </ul>
  89. <h4>Previous topic</h4>
  90. <p class="topless"><a href="new_language.html"
  91. title="previous chapter">Creating a Modelling Language</a></p>
  92. <h4>Next topic</h4>
  93. <p class="topless"><a href="modelling_transformation.html"
  94. title="next chapter">Modelling a Model Transformation</a></p>
  95. <div role="note" aria-label="source link">
  96. <h3>This Page</h3>
  97. <ul class="this-page-menu">
  98. <li><a href="_sources/using_language.txt"
  99. rel="nofollow">Show Source</a></li>
  100. </ul>
  101. </div>
  102. <div id="searchbox" style="display: none" role="search">
  103. <h3>Quick search</h3>
  104. <form class="search" action="search.html" method="get">
  105. <div><input type="text" name="q" /></div>
  106. <div><input type="submit" value="Go" /></div>
  107. <input type="hidden" name="check_keywords" value="yes" />
  108. <input type="hidden" name="area" value="default" />
  109. </form>
  110. </div>
  111. <script type="text/javascript">$('#searchbox').show(0);</script>
  112. </div>
  113. </div>
  114. <div class="clearer"></div>
  115. </div>
  116. <div class="related" role="navigation" aria-label="related navigation">
  117. <h3>Navigation</h3>
  118. <ul>
  119. <li class="right" style="margin-right: 10px">
  120. <a href="genindex.html" title="General Index"
  121. >index</a></li>
  122. <li class="right" >
  123. <a href="modelling_transformation.html" title="Modelling a Model Transformation"
  124. >next</a> |</li>
  125. <li class="right" >
  126. <a href="new_language.html" title="Creating a Modelling Language"
  127. >previous</a> |</li>
  128. <li class="nav-item nav-item-0"><a href="index.html">AToMPM 0.6 documentation</a> &raquo;</li>
  129. </ul>
  130. </div>
  131. <div class="footer" role="contentinfo">
  132. &copy; Copyright 2016, Eugene Syriani, Hans Vangheluwe, Raphael Mannadiar, Conner Hansen, Simon Van Mierlo, Huseyin Ergin, Jonathan Corley.
  133. Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.4.5.
  134. </div>
  135. </body>
  136. </html>