pypdevsbbl.extra.html 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  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>pypdevsbbl.extra package &#8212; Python(P)DEVS-BBL documentation</title>
  8. <link rel="stylesheet" href="_static/nature.css" type="text/css" />
  9. <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
  10. <link rel="stylesheet" type="text/css" href="_static/custom.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. <script async="async" type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/latest.js?config=TeX-AMS-MML_HTMLorMML"></script>
  17. <link rel="index" title="Index" href="genindex.html" />
  18. <link rel="search" title="Search" href="search.html" />
  19. <link rel="next" title="pypdevsbbl.extra.rngstreams package" href="pypdevsbbl.extra.rngstreams.html" />
  20. <link rel="prev" title="pypdevsbbl.domain.industry module" href="pypdevsbbl.domain.industry.html" />
  21. </head><body>
  22. <div class="related" role="navigation" aria-label="related navigation">
  23. <h3>Navigation</h3>
  24. <ul>
  25. <li class="right" style="margin-right: 10px">
  26. <a href="genindex.html" title="General Index"
  27. accesskey="I">index</a></li>
  28. <li class="right" >
  29. <a href="py-modindex.html" title="Python Module Index"
  30. >modules</a> |</li>
  31. <li class="right" >
  32. <a href="pypdevsbbl.extra.rngstreams.html" title="pypdevsbbl.extra.rngstreams package"
  33. accesskey="N">next</a> |</li>
  34. <li class="right" >
  35. <a href="pypdevsbbl.domain.industry.html" title="pypdevsbbl.domain.industry module"
  36. accesskey="P">previous</a> |</li>
  37. <li class="nav-item nav-item-0"><a href="index.html">Python(P)DEVS-BBL documentation</a> &#187;</li>
  38. <li class="nav-item nav-item-1"><a href="pypdevsbbl.html" accesskey="U">pypdevsbbl package</a> &#187;</li>
  39. </ul>
  40. </div>
  41. <div class="document">
  42. <div class="documentwrapper">
  43. <div class="bodywrapper">
  44. <div class="body" role="main">
  45. <div class="section" id="module-pypdevsbbl.extra">
  46. <span id="pypdevsbbl-extra-package"></span><h1>pypdevsbbl.extra package<a class="headerlink" href="#module-pypdevsbbl.extra" title="Permalink to this headline">¶</a></h1>
  47. <p>Within this package, you will be able to find a set of classes and functions
  48. that allow for additional functionality that can be used in the building blocks.</p>
  49. <p>This goes about file handing, mathematical helper functions, an implementation
  50. for a <cite>heap</cite>, a set of packaging classes as required for the
  51. <a class="reference internal" href="pypdevsbbl.generic.transformers.html#pypdevsbbl.generic.transformers.Pack" title="pypdevsbbl.generic.transformers.Pack"><code class="xref py py-class docutils literal notranslate"><span class="pre">pypdevsbbl.generic.transformers.Pack</span></code></a> and <a class="reference internal" href="pypdevsbbl.generic.transformers.html#pypdevsbbl.generic.transformers.Unpack" title="pypdevsbbl.generic.transformers.Unpack"><code class="xref py py-class docutils literal notranslate"><span class="pre">pypdevsbbl.generic.transformers.Unpack</span></code></a>
  52. blocks and a set of inverse cumulative distribution functions that can
  53. be used in the <a class="reference internal" href="pypdevsbbl.generic.generators.html#pypdevsbbl.generic.generators.RandomNumberGenerator" title="pypdevsbbl.generic.generators.RandomNumberGenerator"><code class="xref py py-class docutils literal notranslate"><span class="pre">pypdevsbbl.generic.generators.RandomNumberGenerator</span></code></a>.</p>
  54. <dl class="function">
  55. <dt id="pypdevsbbl.extra.toDot">
  56. <code class="descclassname">pypdevsbbl.extra.</code><code class="descname">toDot</code><span class="sig-paren">(</span><em>model: pypdevs.DEVS.CoupledDEVS</em>, <em>filename: str</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pypdevsbbl/extra.html#toDot"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pypdevsbbl.extra.toDot" title="Permalink to this definition">¶</a></dt>
  57. <dd><p>Simple function for creating a Graphviz file for a Coupled DEVS.</p>
  58. <p>The submodels become the nodes and the connections become the directed
  59. edges.</p>
  60. <div class="admonition note">
  61. <p class="first admonition-title">Note</p>
  62. <p class="last">The graphical representation that will be created is not a valid
  63. visual concrete syntax and should therefore only be used as confirmation
  64. on the validity of models.</p>
  65. </div>
  66. <table class="docutils field-list" frame="void" rules="none">
  67. <col class="field-name" />
  68. <col class="field-body" />
  69. <tbody valign="top">
  70. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
  71. <li><strong>model</strong> (<em>CoupledDEVS</em>) – A <code class="xref py py-class docutils literal notranslate"><span class="pre">CoupledDEVS</span></code> model.</li>
  72. <li><strong>filename</strong> (<em>str</em>) – The filename to write the graph to.</li>
  73. </ul>
  74. </td>
  75. </tr>
  76. </tbody>
  77. </table>
  78. </dd></dl>
  79. <div class="section" id="subpackages">
  80. <h2>Subpackages<a class="headerlink" href="#subpackages" title="Permalink to this headline">¶</a></h2>
  81. <div class="toctree-wrapper compound">
  82. <ul>
  83. <li class="toctree-l1"><a class="reference internal" href="pypdevsbbl.extra.rngstreams.html">pypdevsbbl.extra.rngstreams package</a><ul>
  84. <li class="toctree-l2"><a class="reference internal" href="pypdevsbbl.extra.rngstreams.html#submodules">Submodules</a><ul>
  85. <li class="toctree-l3"><a class="reference internal" href="pypdevsbbl.extra.rngstreams.distributions.html">pypdevsbbl.extra.rngstreams.distributions module</a></li>
  86. </ul>
  87. </li>
  88. </ul>
  89. </li>
  90. </ul>
  91. </div>
  92. </div>
  93. <div class="section" id="submodules">
  94. <h2>Submodules<a class="headerlink" href="#submodules" title="Permalink to this headline">¶</a></h2>
  95. <div class="toctree-wrapper compound">
  96. <ul>
  97. <li class="toctree-l1"><a class="reference internal" href="pypdevsbbl.extra.equations.html">pypdevsbbl.extra.equations module</a></li>
  98. <li class="toctree-l1"><a class="reference internal" href="pypdevsbbl.extra.fileutils.html">pypdevsbbl.extra.fileutils module</a></li>
  99. <li class="toctree-l1"><a class="reference internal" href="pypdevsbbl.extra.heap.html">pypdevsbbl.extra.heap module</a></li>
  100. <li class="toctree-l1"><a class="reference internal" href="pypdevsbbl.extra.mathutils.html">pypdevsbbl.extra.mathutils module</a></li>
  101. <li class="toctree-l1"><a class="reference internal" href="pypdevsbbl.extra.packaging.html">pypdevsbbl.extra.packaging module</a></li>
  102. <li class="toctree-l1"><a class="reference internal" href="pypdevsbbl.extra.queues.html">pypdevsbbl.extra.queues module</a></li>
  103. <li class="toctree-l1"><a class="reference internal" href="pypdevsbbl.extra.spatial.html">pypdevsbbl.extra.spatial module</a></li>
  104. </ul>
  105. </div>
  106. </div>
  107. </div>
  108. </div>
  109. </div>
  110. </div>
  111. <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
  112. <div class="sphinxsidebarwrapper">
  113. <h4>Previous topic</h4>
  114. <p class="topless"><a href="pypdevsbbl.domain.industry.html"
  115. title="previous chapter">pypdevsbbl.domain.industry module</a></p>
  116. <h4>Next topic</h4>
  117. <p class="topless"><a href="pypdevsbbl.extra.rngstreams.html"
  118. title="next chapter">pypdevsbbl.extra.rngstreams package</a></p>
  119. <div id="searchbox" style="display: none" role="search">
  120. <h3>Quick search</h3>
  121. <div class="searchformwrapper">
  122. <form class="search" action="search.html" method="get">
  123. <input type="text" name="q" />
  124. <input type="submit" value="Go" />
  125. <input type="hidden" name="check_keywords" value="yes" />
  126. <input type="hidden" name="area" value="default" />
  127. </form>
  128. </div>
  129. </div>
  130. <script type="text/javascript">$('#searchbox').show(0);</script>
  131. </div>
  132. </div>
  133. <div class="clearer"></div>
  134. </div>
  135. <div class="related" role="navigation" aria-label="related navigation">
  136. <h3>Navigation</h3>
  137. <ul>
  138. <li class="right" style="margin-right: 10px">
  139. <a href="genindex.html" title="General Index"
  140. >index</a></li>
  141. <li class="right" >
  142. <a href="py-modindex.html" title="Python Module Index"
  143. >modules</a> |</li>
  144. <li class="right" >
  145. <a href="pypdevsbbl.extra.rngstreams.html" title="pypdevsbbl.extra.rngstreams package"
  146. >next</a> |</li>
  147. <li class="right" >
  148. <a href="pypdevsbbl.domain.industry.html" title="pypdevsbbl.domain.industry module"
  149. >previous</a> |</li>
  150. <li class="nav-item nav-item-0"><a href="index.html">Python(P)DEVS-BBL documentation</a> &#187;</li>
  151. <li class="nav-item nav-item-1"><a href="pypdevsbbl.html" >pypdevsbbl package</a> &#187;</li>
  152. </ul>
  153. </div>
  154. <div class="footer" role="contentinfo">
  155. &#169; Copyright 2020, Randy Paredis.
  156. Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.8.5.
  157. </div>
  158. </body>
  159. </html>