execute.html 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  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="X-UA-Compatible" content="IE=Edge" />
  6. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  7. <title>How to Execute DrawioConvert? &#8212; DrawioConvert 0.2 documentation</title>
  8. <link rel="stylesheet" href="_static/haiku.css" type="text/css" />
  9. <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
  10. <link rel="stylesheet" type="text/css" href="_static/styles.css" />
  11. <script type="text/javascript" id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script>
  12. <script type="text/javascript" src="_static/jquery.js"></script>
  13. <script type="text/javascript" src="_static/underscore.js"></script>
  14. <script type="text/javascript" src="_static/doctools.js"></script>
  15. <script type="text/javascript" src="_static/language_data.js"></script>
  16. <link rel="index" title="Index" href="genindex.html" />
  17. <link rel="search" title="Search" href="search.html" />
  18. <link rel="next" title="How To Create Custom Formalisms?" href="formalisms/create.html" />
  19. <link rel="prev" title="Welcome to DrawioConvert’s documentation!" href="index.html" />
  20. </head><body>
  21. <div class="header" role="banner"><h1 class="heading"><a href="index.html">
  22. <span>DrawioConvert 0.2 documentation</span></a></h1>
  23. <h2 class="heading"><span>How to Execute DrawioConvert?</span></h2>
  24. </div>
  25. <div class="topnav" role="navigation" aria-label="top navigation">
  26. <p>
  27. «&#160;&#160;<a href="index.html">Welcome to DrawioConvert’s documentation!</a>
  28. &#160;&#160;::&#160;&#160;
  29. <a class="uplink" href="index.html">Contents</a>
  30. &#160;&#160;::&#160;&#160;
  31. <a href="formalisms/create.html">How To Create Custom Formalisms?</a>&#160;&#160;»
  32. </p>
  33. </div>
  34. <div class="content">
  35. <div class="section" id="how-to-execute-drawioconvert">
  36. <h1>How to Execute <code class="code docutils literal notranslate"><span class="pre">DrawioConvert</span></code>?<a class="headerlink" href="#how-to-execute-drawioconvert" title="Permalink to this headline">¶</a></h1>
  37. <p>The execution for <code class="code docutils literal notranslate"><span class="pre">DrawioConvert</span></code> is simple:</p>
  38. <div class="code highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">python3</span> <span class="n">__main__</span><span class="o">.</span><span class="n">py</span> <span class="o">&lt;</span><span class="n">INPUT</span><span class="o">&gt;</span> <span class="p">[</span><span class="n">ARGS</span><span class="p">]</span>
  39. </pre></div>
  40. </div>
  41. <p>Where <code class="code docutils literal notranslate"><span class="pre">&lt;INPUT&gt;</span></code> represents the drawio file to parse and <code class="code docutils literal notranslate"><span class="pre">[ARGS]</span></code>
  42. any combination of the commandline arguments that can be used with this tool.</p>
  43. <div class="section" id="commandline-arguments">
  44. <h2>Commandline Arguments<a class="headerlink" href="#commandline-arguments" title="Permalink to this headline">¶</a></h2>
  45. <table border="1" class="colwidths-given docutils">
  46. <colgroup>
  47. <col width="18%" />
  48. <col width="27%" />
  49. <col width="55%" />
  50. </colgroup>
  51. <thead valign="bottom">
  52. <tr class="row-odd"><th class="head">Short Flag</th>
  53. <th class="head">Long Flag</th>
  54. <th class="head">Description</th>
  55. </tr>
  56. </thead>
  57. <tbody valign="top">
  58. <tr class="row-even"><td><code class="code docutils literal notranslate"><span class="pre">-F</span></code></td>
  59. <td><code class="code docutils literal notranslate"><span class="pre">--formalism</span></code></td>
  60. <td>The formalism for which files must be generated. This argument is
  61. required.</td>
  62. </tr>
  63. <tr class="row-odd"><td><code class="code docutils literal notranslate"><span class="pre">-e</span></code></td>
  64. <td><code class="code docutils literal notranslate"><span class="pre">--entry</span></code></td>
  65. <td>The topmost class to use in the simulation. May be required for some
  66. formalisms, where simulation is top-level dependent.</td>
  67. </tr>
  68. <tr class="row-even"><td><code class="code docutils literal notranslate"><span class="pre">t</span></code></td>
  69. <td><code class="code docutils literal notranslate"><span class="pre">--time</span></code></td>
  70. <td>Total simulation time to use. Should only be set for experiment
  71. files. Defaults to <code class="code docutils literal notranslate"><span class="pre">10</span></code> (time-units). While this flag is meant
  72. to indicate the total time, some formalisms may use this as the
  73. allowed amount of simulation steps.</td>
  74. </tr>
  75. <tr class="row-odd"><td><code class="code docutils literal notranslate"><span class="pre">-L</span></code></td>
  76. <td><code class="code docutils literal notranslate"><span class="pre">--list</span></code></td>
  77. <td>Lists the available formalisms that can be used.</td>
  78. </tr>
  79. <tr class="row-even"><td><code class="code docutils literal notranslate"><span class="pre">-s</span></code></td>
  80. <td><code class="code docutils literal notranslate"><span class="pre">--skip</span></code></td>
  81. <td>Sometimes a visual model has some “placeholders” for future classes.
  82. By default, these are generated as well, even if no contents are given.
  83. The <code class="code docutils literal notranslate"><span class="pre">--skip</span></code> flag changes this behaviour by skipping empty blocks
  84. in the generation.</td>
  85. </tr>
  86. <tr class="row-odd"><td><code class="code docutils literal notranslate"><span class="pre">-d</span></code></td>
  87. <td><code class="code docutils literal notranslate"><span class="pre">--directory</span></code></td>
  88. <td>The location where the files should be generated. Defaults to <code class="code docutils literal notranslate"><span class="pre">./</span></code>
  89. (the current directory).</td>
  90. </tr>
  91. <tr class="row-even"><td><code class="code docutils literal notranslate"><span class="pre">-f</span></code></td>
  92. <td><code class="code docutils literal notranslate"><span class="pre">--force</span></code></td>
  93. <td>Some formalisms may mark certain files as “protected”. This is usually
  94. done to prevent accidental removal of user code when programming
  95. experiments. Hence, these files cannot be overwritten by the tool, unless
  96. this flag is set.</td>
  97. </tr>
  98. <tr class="row-odd"><td><code class="code docutils literal notranslate"><span class="pre">-a</span></code></td>
  99. <td><code class="code docutils literal notranslate"><span class="pre">--all</span></code></td>
  100. <td>Each formalism has their default set of files to be generated. However,
  101. there may be some experimental or additional files that not all users
  102. need. This flag allows the generation of <strong>all</strong> files of the formalism.</td>
  103. </tr>
  104. <tr class="row-even"><td><code class="code docutils literal notranslate"><span class="pre">-v</span></code></td>
  105. <td><code class="code docutils literal notranslate"><span class="pre">--verbose</span></code></td>
  106. <td>Prints additional debugging information.</td>
  107. </tr>
  108. <tr class="row-odd"><td><code class="code docutils literal notranslate"><span class="pre">-E</span></code></td>
  109. <td><code class="code docutils literal notranslate"><span class="pre">--enviroment</span></code></td>
  110. <td>Occasionally, formalisms need other properties that can be set by the
  111. user. This flag takes a comma-separated list of <code class="code docutils literal notranslate"><span class="pre">key=value</span></code> pairs
  112. and applies them to the formalism specifics.</td>
  113. </tr>
  114. </tbody>
  115. </table>
  116. </div>
  117. </div>
  118. </div>
  119. <div class="bottomnav" role="navigation" aria-label="bottom navigation">
  120. <p>
  121. «&#160;&#160;<a href="index.html">Welcome to DrawioConvert’s documentation!</a>
  122. &#160;&#160;::&#160;&#160;
  123. <a class="uplink" href="index.html">Contents</a>
  124. &#160;&#160;::&#160;&#160;
  125. <a href="formalisms/create.html">How To Create Custom Formalisms?</a>&#160;&#160;»
  126. </p>
  127. </div>
  128. <div class="footer" role="contentinfo">
  129. &#169; Copyright 2020, Randy Paredis.
  130. Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.8.5.
  131. </div>
  132. </body>
  133. </html>