overview.html 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408
  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>Overview &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="Creating a Modelling Language" href="new_language.html" />
  24. <link rel="prev" title="Installation" href="installation.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="new_language.html" title="Creating a Modelling Language"
  35. accesskey="N">next</a> |</li>
  36. <li class="right" >
  37. <a href="installation.html" title="Installation"
  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="overview">
  47. <span id="id1"></span><h1>Overview<a class="headerlink" href="#overview" title="Permalink to this headline">¶</a></h1>
  48. <p>This section presents an overview of AToMPM&#8217;s user interface: how to create an account, and the different parts of the user interface (toolbars, canvas, and console).</p>
  49. <div class="section" id="first-usage">
  50. <h2>First Usage<a class="headerlink" href="#first-usage" title="Permalink to this headline">¶</a></h2>
  51. <p>When first opening the user interface at <cite>localhost:8124/atompm</cite>, the user is presented with a login screen.</p>
  52. <a class="reference internal image-reference" href="_images/first_login_screen.png"><img alt="_images/first_login_screen.png" src="_images/first_login_screen.png" style="width: 960.5px; height: 518.5px;" /></a>
  53. <p>Click the <em>create one now</em> link, which will allow you to create a new account with a user name and password. Fill out the form and click <em>Create new account</em>.</p>
  54. <a class="reference internal image-reference" href="_images/create_new_account.png"><img alt="_images/create_new_account.png" src="_images/create_new_account.png" style="width: 165.0px; height: 151.5px;" /></a>
  55. <p>AToMPM will initialize the account (by creating a user folder under the <cite>users/</cite> folder) and switch to the main user interface view. When you revisit the AToMPM webpage or create a new AToMPM instance, the tool will remember your username and password and automatically log you in. You can log out by clicking the <em>logout</em> link at the top right of the user interface.</p>
  56. </div>
  57. <div class="section" id="the-atompm-user-interface">
  58. <h2>The AToMPM User Interface<a class="headerlink" href="#the-atompm-user-interface" title="Permalink to this headline">¶</a></h2>
  59. <p>When logged in, the AToMPM user interface is initialized with four button toolbars: <em>MainMenu</em>, <em>CompileMenu</em>, <em>TransformationController</em>, and <em>TransformationEditor</em>. They allow a langugage developer and a language user to perform most activities and are heavily used in the next sections of the documentation.</p>
  60. <a class="reference internal image-reference" href="_images/user_interface.png"><img alt="_images/user_interface.png" src="_images/user_interface.png" style="width: 959.5px; height: 519.5px;" /></a>
  61. <p>The user interface of AToMPM consists of three areas: the <em>toolbar area</em>, contained in the <em>canvas area</em>, and the <em>console</em>. To bring up the console, in Google Chrome press the F12 key. These areas are explained in more details in the next sections.</p>
  62. <div class="section" id="toolbars">
  63. <h3>Toolbars<a class="headerlink" href="#toolbars" title="Permalink to this headline">¶</a></h3>
  64. <p>There are two types of toolbars that can be loaded: button toolbars consist of a number of buttons that each perform a certain action, while formalism toolbars allow to instantiate language elements. A new toolbar can be loaded using the <strong>(re)load a toolbar</strong> button of the <em>MainMenu</em> toolbar. Toolbar models that can be loaded either have the <em>.buttons.model</em> extension (for button toolbars) or the <em>.metamodel</em> extension (for formalism toolbars).</p>
  65. <div class="section" id="button-toolbars">
  66. <h4>Button Toolbars<a class="headerlink" href="#button-toolbars" title="Permalink to this headline">¶</a></h4>
  67. <p>All button toolbar models can be found under the <em>/Toolbars/</em> user folder. A button toolbar consists of a number of buttons that, when clicked, execute a particular action. Four button toolbar are loaded by default, explained below.</p>
  68. <img alt="_images/main_toolbar.png" src="_images/main_toolbar.png" />
  69. <ol class="arabic simple">
  70. <li>Launch a new AToMPM user interface in a new tab.</li>
  71. <li>(Re-)open a button or formalism toolbar.</li>
  72. <li>Close an opened toolbar. If this is a formalism toolbar, the model elements conforming to that formalism are removed from the model.</li>
  73. <li>Create a new formalism under the <em>/Formalisms/</em> user folder with the given name.</li>
  74. <li>Open a model.</li>
  75. <li>Insert the elements of a model into the currently opened model.</li>
  76. <li>Save current model.</li>
  77. <li>Save current model as...</li>
  78. <li>Undo the last performed action.</li>
  79. <li>Redo the last undone action.</li>
  80. <li>Copy the selected elements on canvas.</li>
  81. <li>Paste the copied elements on the canvas (copy/paste also works across AToMPM tabs).</li>
  82. <li>Verify whether the constraints of the current model are satisfied.</li>
  83. <li>Show or hide entities of a particular formalism (but do not remove them from the model).</li>
  84. <li>Open the manual.</li>
  85. </ol>
  86. <p>Most of these actions are intuitive. Others are explained in more detail in the next sections.</p>
  87. <img alt="_images/compilation_toolbar.png" src="_images/compilation_toolbar.png" />
  88. <ol class="arabic simple">
  89. <li>Compile the current model (conforming to the <em>ConcreteSyntax</em> formalism) to a formalism toolbar.</li>
  90. <li>Compile the current model (conforming to the <em>SimpleClassDiagram</em> formalism) to a metamodel.</li>
  91. <li>Compile a metamodel to a pattern metamodel (and associated formalism toolbar(s)), used in model transformation rules.</li>
  92. </ol>
  93. <p>More information on these buttons can be found in <a class="reference internal" href="new_language.html#creating-a-modelling-language"><span class="std std-ref">Creating a Modelling Language</span></a> and <a class="reference internal" href="modelling_transformation.html#modelling-a-model-transformation"><span class="std std-ref">Modelling a Model Transformation</span></a>.</p>
  94. <img alt="_images/transformation_controller.png" src="_images/transformation_controller.png" />
  95. <ol class="arabic simple">
  96. <li>Load a transformation.</li>
  97. <li>Run the currently loaded transformation until the end.</li>
  98. <li>Execute one step of the currently loaded transformation.</li>
  99. <li>Pause the running transformation.</li>
  100. <li>Stop the running transformation.</li>
  101. <li>Enable debugging, which opens a debug window when the transformation is executed that shows the transformation schedule and highlights the currently executing step.</li>
  102. </ol>
  103. <p>More information on these buttons can be found in <a class="reference internal" href="executing_transformation.html#executing-a-model-transformation"><span class="std std-ref">Executing a Model Transformation</span></a>.</p>
  104. <img alt="_images/transformation_editor.png" src="_images/transformation_editor.png" />
  105. <ol class="arabic simple">
  106. <li>Open a rule model.</li>
  107. <li>Open a transformation model.</li>
  108. <li>Open a formalism toolbar of a pattern metamodel.</li>
  109. <li>Create a new transformation model, and open it in a new tab.</li>
  110. <li>Create a new rule model, and open it in a new tab.</li>
  111. </ol>
  112. <p>More information on these buttons can be found in <a class="reference internal" href="modelling_transformation.html#modelling-a-model-transformation"><span class="std std-ref">Modelling a Model Transformation</span></a>.</p>
  113. </div>
  114. <div class="section" id="formalism-toolbars">
  115. <span id="id2"></span><h4>Formalism Toolbars<a class="headerlink" href="#formalism-toolbars" title="Permalink to this headline">¶</a></h4>
  116. <p>Loading a formalism toolbar allows you to create elements on the canvas conforming to that formalism. Multiple formalism toolbars can be loaded, which allows a model to contain elements conforming to multiple formalisms.</p>
  117. <p>As an example, we show the formalism toolbar of the <em>TrafficLight</em> language, which is used throughout the readme as an example.</p>
  118. <img alt="_images/trafficlight_toolbar.png" src="_images/trafficlight_toolbar.png" />
  119. <p>Each button of a formalism toolbar corresponds to an icon in the concrete syntax definition of the formalism. Links are not shown. Clicking a button will select that particular type to be instantiated. Right-clicking on the canvas instantiates the icon on the canvas. More information on how to use a formalism toolbar to model can be found in <a class="reference internal" href="using_language.html#using-a-modelling-language"><span class="std std-ref">Using a Modelling Language</span></a>.</p>
  120. </div>
  121. </div>
  122. <div class="section" id="canvas">
  123. <h3>Canvas<a class="headerlink" href="#canvas" title="Permalink to this headline">¶</a></h3>
  124. <p>Below is a list of various states the Canvas can be in along with lists of actions available in each state and their corresponding shortcut(s).</p>
  125. <p>When in the <strong>DEFAULT</strong> state,</p>
  126. <table border="1" class="table-with-borders docutils">
  127. <colgroup>
  128. <col width="30%" />
  129. <col width="70%" />
  130. </colgroup>
  131. <thead valign="bottom">
  132. <tr class="row-odd"><th class="head">Action</th>
  133. <th class="head">Shortcut(s)</th>
  134. </tr>
  135. </thead>
  136. <tbody valign="top">
  137. <tr class="row-even"><td>Choose an entity type to create</td>
  138. <td>Left-click on desired type from a loaded formalism toolbar.</td>
  139. </tr>
  140. <tr class="row-odd"><td>Create an entity</td>
  141. <td>Right-click anywhere on the canvas.</td>
  142. </tr>
  143. <tr class="row-even"><td>Select an entity</td>
  144. <td>Left-click any entity. This will also select the entity&#8217;s contents, if
  145. any. To select a container without selecting its contents, SHIFT-Left-click
  146. it.</td>
  147. </tr>
  148. <tr class="row-odd"><td>Select one or more entity</td>
  149. <td>Left-press anywhere on Canvas, drag selection box around desired
  150. entity or entities and release.</td>
  151. </tr>
  152. <tr class="row-even"><td>Connect entities</td>
  153. <td>Right-press an entity, drag to-be edge to target entity and release.</td>
  154. </tr>
  155. <tr class="row-odd"><td>Edit icon text</td>
  156. <td>SHIFT-Middle-click any text from any icon on the Canvas (this
  157. will display a very simple text editor).</td>
  158. </tr>
  159. <tr class="row-even"><td>Edit entity</td>
  160. <td>Middle-click or SHIFT-Left-click any entity on the Canvas (this will
  161. display the abstract attribute editor).</td>
  162. </tr>
  163. </tbody>
  164. </table>
  165. <p>When in the <strong>SOMETHING SELECTED</strong> state (<em>i.e.</em>, when one or more entity is selected), <img alt="something_selected" class="inline-image" src="_images/something_selected.png" /></p>
  166. <table border="1" class="table-with-borders docutils">
  167. <colgroup>
  168. <col width="33%" />
  169. <col width="67%" />
  170. </colgroup>
  171. <thead valign="bottom">
  172. <tr class="row-odd"><th class="head">Action</th>
  173. <th class="head">Shortcut(s)</th>
  174. </tr>
  175. </thead>
  176. <tbody valign="top">
  177. <tr class="row-even"><td>Unselect selection</td>
  178. <td>Right-/Left-/Middle-click anywhere on the Canvas, or click ESC.</td>
  179. </tr>
  180. <tr class="row-odd"><td>Move selection</td>
  181. <td>Left-press selection, drag preview overlay to desired position and
  182. release.</td>
  183. </tr>
  184. <tr class="row-even"><td>Delete selection</td>
  185. <td>Press DELETE.</td>
  186. </tr>
  187. <tr class="row-odd"><td>Edit first entity in selection</td>
  188. <td>Click INSERT, or click COMMAND (this will display the abstract attribute
  189. editor).</td>
  190. </tr>
  191. <tr class="row-even"><td>Enter geometry editing mode</td>
  192. <td>Click CTRL (this will display geometry controls).</td>
  193. </tr>
  194. <tr class="row-odd"><td>Enter edge editing mode</td>
  195. <td>Click SHIFT (this will display editable edge control points).</td>
  196. </tr>
  197. <tr class="row-even"><td>Snap selection to nearest grid point</td>
  198. <td>Click TAB.</td>
  199. </tr>
  200. </tbody>
  201. </table>
  202. <p>When in the <strong>DRAGGING SELECTION</strong> state (<em>i.e.</em>, when left-dragging one or more selected entity), <img alt="dragging_selection" class="inline-image" src="_images/dragging_selection.png" /></p>
  203. <table border="1" class="table-with-borders docutils">
  204. <colgroup>
  205. <col width="33%" />
  206. <col width="67%" />
  207. </colgroup>
  208. <thead valign="bottom">
  209. <tr class="row-odd"><th class="head">Action</th>
  210. <th class="head">Shortcut(s)</th>
  211. </tr>
  212. </thead>
  213. <tbody valign="top">
  214. <tr class="row-even"><td>Insert selection into container</td>
  215. <td>Left-release on top of the target entity.</td>
  216. </tr>
  217. <tr class="row-odd"><td>Remove selection from container</td>
  218. <td>Left-release outside of current container. Containment relationships can
  219. also be deleted manually if visible.</td>
  220. </tr>
  221. <tr class="row-even"><td>Confirm motion</td>
  222. <td>Left-release on the Canvas.</td>
  223. </tr>
  224. <tr class="row-odd"><td>Cancel motion</td>
  225. <td>Click ESC.</td>
  226. </tr>
  227. </tbody>
  228. </table>
  229. <p>When in the <strong>DRAWING EDGE</strong> state (<em>i.e.</em>, when dragging to-be edge from source to target entities), <img alt="drawing_edge" class="inline-image" src="_images/drawing_edge.png" /></p>
  230. <table border="1" class="table-with-borders docutils">
  231. <colgroup>
  232. <col width="34%" />
  233. <col width="66%" />
  234. </colgroup>
  235. <thead valign="bottom">
  236. <tr class="row-odd"><th class="head">Action</th>
  237. <th class="head">Shortcut(s)</th>
  238. </tr>
  239. </thead>
  240. <tbody valign="top">
  241. <tr class="row-even"><td>Make current line horizontal/vertical</td>
  242. <td>Click TAB.</td>
  243. </tr>
  244. <tr class="row-odd"><td>Create control point</td>
  245. <td>Left-click anywhere, or click CTRL.</td>
  246. </tr>
  247. <tr class="row-even"><td>Delete last control point</td>
  248. <td>Middle-click anywhere, or click ALT.</td>
  249. </tr>
  250. <tr class="row-odd"><td>Cancel current edge</td>
  251. <td>Left-release anywhere on the Canvas.</td>
  252. </tr>
  253. </tbody>
  254. </table>
  255. <p>When in the <strong>EDGE EDITING</strong> state, <img alt="edge_editing" class="inline-image" src="_images/edge_editing.png" /></p>
  256. <table border="1" class="table-with-borders docutils">
  257. <colgroup>
  258. <col width="34%" />
  259. <col width="66%" />
  260. </colgroup>
  261. <thead valign="bottom">
  262. <tr class="row-odd"><th class="head">Action</th>
  263. <th class="head">Shortcut(s)</th>
  264. </tr>
  265. </thead>
  266. <tbody valign="top">
  267. <tr class="row-even"><td>Move control point</td>
  268. <td>Left-press any control point, drag it to desired position and release.</td>
  269. </tr>
  270. <tr class="row-odd"><td>Vertically/Horizontally align control
  271. point to previous control point</td>
  272. <td>Left-click any control point and click TAB.</td>
  273. </tr>
  274. <tr class="row-even"><td>Clone control point</td>
  275. <td>Right-click any control point.</td>
  276. </tr>
  277. <tr class="row-odd"><td>Delete control point</td>
  278. <td>Middle-click any control point (extremities and the central control
  279. point cannot be removed).</td>
  280. </tr>
  281. </tbody>
  282. </table>
  283. <p>When in the <strong>GEOMETRY EDITING</strong> state, <img alt="geometry_editing" class="inline-image" src="_images/geometry_editing.png" /></p>
  284. <table border="1" class="table-with-borders docutils">
  285. <colgroup>
  286. <col width="34%" />
  287. <col width="66%" />
  288. </colgroup>
  289. <thead valign="bottom">
  290. <tr class="row-odd"><th class="head">Action</th>
  291. <th class="head">Shortcut(s)</th>
  292. </tr>
  293. </thead>
  294. <tbody valign="top">
  295. <tr class="row-even"><td>Scale</td>
  296. <td>Mouse-wheel up/down on scale icon until preview overlay reaches desired
  297. shape.</td>
  298. </tr>
  299. <tr class="row-odd"><td>Scale vertically only</td>
  300. <td>Mouse-wheel up/down on vertical scale icon until preview overlay reaches
  301. desired shape.</td>
  302. </tr>
  303. <tr class="row-even"><td>Scale horizontally only</td>
  304. <td>Mouse-wheel up/down on horizontal scale icon until preview overlay reaches
  305. desired shape.</td>
  306. </tr>
  307. <tr class="row-odd"><td>Rotate</td>
  308. <td>Mouse-wheel up/down on rotation icon until preview overlay reaches desired
  309. shape.</td>
  310. </tr>
  311. <tr class="row-even"><td>Cancel changes</td>
  312. <td>Right-/Left-/Middle-click anywhere on the Canvas, or click ESC.</td>
  313. </tr>
  314. <tr class="row-odd"><td>Confirm changes</td>
  315. <td>Left-click confirmation icon.</td>
  316. </tr>
  317. </tbody>
  318. </table>
  319. </div>
  320. <div class="section" id="console">
  321. <h3>Console<a class="headerlink" href="#console" title="Permalink to this headline">¶</a></h3>
  322. <p>The developer console (press F12 in Chrome/Firefox) contains many useful debugging messages. Especially when <a class="reference internal" href="executing_transformation.html#executing-a-model-transformation"><span class="std std-ref">Executing a Model Transformation</span></a>, the console contains useful information on which rules were executed and whether they failed or succeeded.</p>
  323. <img alt="_images/console.png" src="_images/console.png" />
  324. </div>
  325. </div>
  326. </div>
  327. </div>
  328. </div>
  329. </div>
  330. <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
  331. <div class="sphinxsidebarwrapper">
  332. <h3><a href="index.html">Table Of Contents</a></h3>
  333. <ul>
  334. <li><a class="reference internal" href="#">Overview</a><ul>
  335. <li><a class="reference internal" href="#first-usage">First Usage</a></li>
  336. <li><a class="reference internal" href="#the-atompm-user-interface">The AToMPM User Interface</a><ul>
  337. <li><a class="reference internal" href="#toolbars">Toolbars</a><ul>
  338. <li><a class="reference internal" href="#button-toolbars">Button Toolbars</a></li>
  339. <li><a class="reference internal" href="#formalism-toolbars">Formalism Toolbars</a></li>
  340. </ul>
  341. </li>
  342. <li><a class="reference internal" href="#canvas">Canvas</a></li>
  343. <li><a class="reference internal" href="#console">Console</a></li>
  344. </ul>
  345. </li>
  346. </ul>
  347. </li>
  348. </ul>
  349. <h4>Previous topic</h4>
  350. <p class="topless"><a href="installation.html"
  351. title="previous chapter">Installation</a></p>
  352. <h4>Next topic</h4>
  353. <p class="topless"><a href="new_language.html"
  354. title="next chapter">Creating a Modelling Language</a></p>
  355. <div role="note" aria-label="source link">
  356. <h3>This Page</h3>
  357. <ul class="this-page-menu">
  358. <li><a href="_sources/overview.txt"
  359. rel="nofollow">Show Source</a></li>
  360. </ul>
  361. </div>
  362. <div id="searchbox" style="display: none" role="search">
  363. <h3>Quick search</h3>
  364. <form class="search" action="search.html" method="get">
  365. <div><input type="text" name="q" /></div>
  366. <div><input type="submit" value="Go" /></div>
  367. <input type="hidden" name="check_keywords" value="yes" />
  368. <input type="hidden" name="area" value="default" />
  369. </form>
  370. </div>
  371. <script type="text/javascript">$('#searchbox').show(0);</script>
  372. </div>
  373. </div>
  374. <div class="clearer"></div>
  375. </div>
  376. <div class="related" role="navigation" aria-label="related navigation">
  377. <h3>Navigation</h3>
  378. <ul>
  379. <li class="right" style="margin-right: 10px">
  380. <a href="genindex.html" title="General Index"
  381. >index</a></li>
  382. <li class="right" >
  383. <a href="new_language.html" title="Creating a Modelling Language"
  384. >next</a> |</li>
  385. <li class="right" >
  386. <a href="installation.html" title="Installation"
  387. >previous</a> |</li>
  388. <li class="nav-item nav-item-0"><a href="index.html">AToMPM 0.6 documentation</a> &raquo;</li>
  389. </ul>
  390. </div>
  391. <div class="footer" role="contentinfo">
  392. &copy; Copyright 2016, Raphael Mannadiar, Simon Van Mierlo, Huseyin Ergin, Conner Hansen, Eugene Syriani, Jonathan Corley.
  393. Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.4.5.
  394. </div>
  395. </body>
  396. </html>