Commit 5a091cad authored by Leo Gordon's avatar Leo Gordon
Browse files

updated schema/scripts/doxygen documentation

parent 3d4850b7

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.
var Process_8py =
[
[ "Job", "classeHive_1_1Process_1_1Job.html", null ],
[ "CompleteEarlyException", "classeHive_1_1Process_1_1CompleteEarlyException.html", null ],
[ "JobFailedException", "classeHive_1_1Process_1_1JobFailedException.html", null ],
[ "HiveJSONMessageException", "classeHive_1_1Process_1_1HiveJSONMessageException.html", null ],
[ "BaseRunnable", "classeHive_1_1Process_1_1BaseRunnable.html", "classeHive_1_1Process_1_1BaseRunnable" ],
[ "__doc__", "Process_8py.html#aad991b4e548ab9e598e363431749cc2d", null ],
[ "__version__", "Process_8py.html#ab7a19c19c7438eadf82e7f8ca22bb6a6", null ]
];
\ No newline at end of file
......@@ -3,24 +3,22 @@
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>ensembl-hive-python3: LongMult/AddTogether.py File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
$(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { init_search(); });
$(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
......@@ -40,7 +38,7 @@
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
......@@ -85,7 +83,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('AddTogether_8py.html','');});
$(document).ready(function(){initNavTree('_add_together_8py.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
......@@ -93,7 +91,7 @@ $(document).ready(function(){initNavTree('AddTogether_8py.html','');});
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a></div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
......@@ -112,33 +110,33 @@ $(document).ready(function(){initNavTree('AddTogether_8py.html','');});
</div><!--header-->
<div class="contents">
<p><a href="AddTogether_8py_source.html">Go to the source code of this file.</a></p>
<p><a href="_add_together_8py_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classLongMult_1_1AddTogether_1_1AddTogether.html">LongMult.AddTogether.AddTogether</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Runnable that adds up all the partial-multiplications from <a class="el" href="namespaceLongMult_1_1PartMultiply.html">PartMultiply</a>. <a href="classLongMult_1_1AddTogether_1_1AddTogether.html#details">More...</a><br /></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_long_mult_1_1_add_together_1_1_add_together.html">LongMult.AddTogether.AddTogether</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Runnable that adds up all the partial-multiplications from <a class="el" href="namespace_long_mult_1_1_part_multiply.html">PartMultiply</a>. <a href="class_long_mult_1_1_add_together_1_1_add_together.html#details">More...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
Namespaces</h2></td></tr>
<tr class="memitem:namespaceLongMult_1_1AddTogether"><td class="memItemLeft" align="right" valign="top"> &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceLongMult_1_1AddTogether.html">LongMult.AddTogether</a></td></tr>
<tr class="memitem:namespace_long_mult_1_1_add_together"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_long_mult_1_1_add_together.html">LongMult.AddTogether</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a2dcf1fbebd840743925757c09304fec0"><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceLongMult_1_1AddTogether.html#a2dcf1fbebd840743925757c09304fec0">LongMult.AddTogether.add_together</a> (b_multiplier, partial_product)</td></tr>
<tr class="separator:a2dcf1fbebd840743925757c09304fec0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a69a223a80f8c87227138d66aa57ed0aa"><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_long_mult_1_1_add_together.html#a69a223a80f8c87227138d66aa57ed0aa">LongMult.AddTogether.add_together</a></td></tr>
<tr class="separator:a69a223a80f8c87227138d66aa57ed0aa"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="dir_2cfca80d888378ed51242bae85fb2949.html">LongMult</a></li><li class="navelem"><a class="el" href="AddTogether_8py.html">AddTogether.py</a></li>
<li class="navelem"><a class="el" href="dir_2cfca80d888378ed51242bae85fb2949.html">LongMult</a></li><li class="navelem"><a class="el" href="_add_together_8py.html">AddTogether.py</a></li>
<li class="footer">Generated by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.9.1 </li>
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
</ul>
</div>
</body>
......
var _add_together_8py =
[
[ "AddTogether", "class_long_mult_1_1_add_together_1_1_add_together.html", "class_long_mult_1_1_add_together_1_1_add_together" ],
[ "add_together", "_add_together_8py.html#a69a223a80f8c87227138d66aa57ed0aa", null ]
];
\ No newline at end of file
......@@ -3,24 +3,22 @@
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>ensembl-hive-python3: LongMult/AddTogether.py Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
$(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { init_search(); });
$(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
......@@ -40,7 +38,7 @@
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
......@@ -85,7 +83,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('AddTogether_8py_source.html','');});
$(document).ready(function(){initNavTree('_add_together_8py_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
......@@ -93,7 +91,7 @@ $(document).ready(function(){initNavTree('AddTogether_8py_source.html','');});
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a></div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
......@@ -107,43 +105,43 @@ $(document).ready(function(){initNavTree('AddTogether_8py_source.html','');});
<div class="title">AddTogether.py</div> </div>
</div><!--header-->
<div class="contents">
<a href="AddTogether_8py.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"><a class="line" href="namespaceLongMult_1_1AddTogether.html"> 1</a></span>&#160;</div>
<a href="_add_together_8py.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"><a class="line" href="namespace_long_mult_1_1_add_together.html"> 1</a></span>&#160;</div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="keyword">import</span> eHive</div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;</div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="keyword">import</span> time</div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;</div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="keyword">class </span><a class="code" href="classLongMult_1_1AddTogether_1_1AddTogether.html">AddTogether</a>(<a class="code" href="classeHive_1_1Process_1_1BaseRunnable.html">eHive.BaseRunnable</a>):</div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="keyword">class </span><a class="code" href="class_long_mult_1_1_add_together_1_1_add_together.html">AddTogether</a>(<a class="code" href="classe_hive_1_1_process_1_1_base_runnable.html">eHive.BaseRunnable</a>):</div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160; <span class="stringliteral">&quot;&quot;&quot;Runnable that adds up all the partial-multiplications from PartMultiply&quot;&quot;&quot;</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"><a class="line" href="classLongMult_1_1AddTogether_1_1AddTogether.html"> 8</a></span>&#160;</div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160; <span class="keyword">def </span><a class="code" href="classLongMult_1_1AddTogether_1_1AddTogether.html#ae5956e41430cad01308bb2177f4e85e9">param_defaults</a>(self):</div>
<div class="line"><a name="l00010"></a><span class="lineno"><a class="line" href="classLongMult_1_1AddTogether_1_1AddTogether.html#ae5956e41430cad01308bb2177f4e85e9"> 10</a></span>&#160; <span class="keywordflow">return</span> {</div>
<div class="line"><a name="l00008"></a><span class="lineno"><a class="line" href="class_long_mult_1_1_add_together_1_1_add_together.html"> 8</a></span>&#160;</div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160; <span class="keyword">def </span><a class="code" href="class_long_mult_1_1_add_together_1_1_add_together.html#aa42d0f75bc0bb66316b8ac166cf0da5c">param_defaults</a>(self):</div>
<div class="line"><a name="l00010"></a><span class="lineno"><a class="line" href="class_long_mult_1_1_add_together_1_1_add_together.html#aa42d0f75bc0bb66316b8ac166cf0da5c"> 10</a></span>&#160; <span class="keywordflow">return</span> {</div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160; <span class="stringliteral">&#39;take_time&#39;</span> : 0,</div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160; <span class="stringliteral">&#39;partial_product&#39;</span> : {}</div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160; }</div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;</div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;</div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160; <span class="keyword">def </span><a class="code" href="classLongMult_1_1AddTogether_1_1AddTogether.html#a5433d744904172ec9cb658536cd558f8">fetch_input</a>(self):</div>
<div class="line"><a name="l00017"></a><span class="lineno"><a class="line" href="classLongMult_1_1AddTogether_1_1AddTogether.html#a5433d744904172ec9cb658536cd558f8"> 17</a></span>&#160; a_multiplier = self.<a class="code" href="classeHive_1_1Process_1_1BaseRunnable.html#acfa8fec0594a6d49f4bfb9b005216579">param_required</a>(<span class="stringliteral">&#39;a_multiplier&#39;</span>)</div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160; partial_product = self.<a class="code" href="classeHive_1_1Process_1_1BaseRunnable.html#a11adb84bc2b95f138346911b3acda14a">param</a>(<span class="stringliteral">&#39;partial_product&#39;</span>)</div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160; <span class="keyword">def </span><a class="code" href="class_long_mult_1_1_add_together_1_1_add_together.html#afe3cd6ec9890ea16d20db16e9efe045c">fetch_input</a>(self):</div>
<div class="line"><a name="l00017"></a><span class="lineno"><a class="line" href="class_long_mult_1_1_add_together_1_1_add_together.html#afe3cd6ec9890ea16d20db16e9efe045c"> 17</a></span>&#160; a_multiplier = self.<a class="code" href="classe_hive_1_1_process_1_1_base_runnable.html#a49c5b1633c7c62d7cd7d893a68390082">param_required</a>(<span class="stringliteral">&#39;a_multiplier&#39;</span>)</div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160; partial_product = self.<a class="code" href="classe_hive_1_1_process_1_1_base_runnable.html#aef94af8ebb478c65e2782c92e5d81d37">param</a>(<span class="stringliteral">&#39;partial_product&#39;</span>)</div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160; print(partial_product)</div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;</div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160; partial_product[<span class="stringliteral">&#39;1&#39;</span>] = str(a_multiplier)</div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160; partial_product[<span class="stringliteral">&#39;0&#39;</span>] = <span class="stringliteral">&#39;0&#39;</span></div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;</div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;</div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160; <span class="keyword">def </span><a class="code" href="classLongMult_1_1AddTogether_1_1AddTogether.html#a1f669d43a2221c5b51f5477bcb17fd27">run</a>(self):</div>
<div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="classLongMult_1_1AddTogether_1_1AddTogether.html#a1f669d43a2221c5b51f5477bcb17fd27"> 26</a></span>&#160; b_multiplier = self.<a class="code" href="classeHive_1_1Process_1_1BaseRunnable.html#acfa8fec0594a6d49f4bfb9b005216579">param_required</a>(<span class="stringliteral">&#39;b_multiplier&#39;</span>)</div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160; partial_product = self.<a class="code" href="classeHive_1_1Process_1_1BaseRunnable.html#a11adb84bc2b95f138346911b3acda14a">param</a>(<span class="stringliteral">&#39;partial_product&#39;</span>)</div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160; self.<a class="code" href="classeHive_1_1Process_1_1BaseRunnable.html#a11adb84bc2b95f138346911b3acda14a">param</a>(<span class="stringliteral">&#39;result&#39;</span>, <a class="code" href="namespaceLongMult_1_1AddTogether.html#a2dcf1fbebd840743925757c09304fec0">add_together</a>(b_multiplier, partial_product))</div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160; time.sleep( self.<a class="code" href="classeHive_1_1Process_1_1BaseRunnable.html#a11adb84bc2b95f138346911b3acda14a">param</a>(<span class="stringliteral">&#39;take_time&#39;</span>) )</div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160; <span class="keyword">def </span><a class="code" href="class_long_mult_1_1_add_together_1_1_add_together.html#a9e011dd3c7530b83d7121e6065a15134">run</a>(self):</div>
<div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="class_long_mult_1_1_add_together_1_1_add_together.html#a9e011dd3c7530b83d7121e6065a15134"> 26</a></span>&#160; b_multiplier = self.<a class="code" href="classe_hive_1_1_process_1_1_base_runnable.html#a49c5b1633c7c62d7cd7d893a68390082">param_required</a>(<span class="stringliteral">&#39;b_multiplier&#39;</span>)</div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160; partial_product = self.<a class="code" href="classe_hive_1_1_process_1_1_base_runnable.html#aef94af8ebb478c65e2782c92e5d81d37">param</a>(<span class="stringliteral">&#39;partial_product&#39;</span>)</div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160; self.<a class="code" href="classe_hive_1_1_process_1_1_base_runnable.html#aef94af8ebb478c65e2782c92e5d81d37">param</a>(<span class="stringliteral">&#39;result&#39;</span>, <a class="code" href="namespace_long_mult_1_1_add_together.html#a69a223a80f8c87227138d66aa57ed0aa">add_together</a>(b_multiplier, partial_product))</div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160; time.sleep( self.<a class="code" href="classe_hive_1_1_process_1_1_base_runnable.html#aef94af8ebb478c65e2782c92e5d81d37">param</a>(<span class="stringliteral">&#39;take_time&#39;</span>) )</div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;</div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160; <span class="keyword">def </span><a class="code" href="classLongMult_1_1AddTogether_1_1AddTogether.html#a06cd25edabff8019d8c84edd8571a4c1">write_output</a>(self):</div>
<div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="classLongMult_1_1AddTogether_1_1AddTogether.html#a06cd25edabff8019d8c84edd8571a4c1"> 32</a></span>&#160; self.<a class="code" href="classeHive_1_1Process_1_1BaseRunnable.html#af8bdfe695b9b9a0bb3c6837f22883057">dataflow</a>( { <span class="stringliteral">&#39;result&#39;</span>: self.<a class="code" href="classeHive_1_1Process_1_1BaseRunnable.html#a11adb84bc2b95f138346911b3acda14a">param</a>(<span class="stringliteral">&#39;result&#39;</span>) }, 1)</div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160; <span class="keyword">def </span><a class="code" href="class_long_mult_1_1_add_together_1_1_add_together.html#a999eef46bd5c73bc47f1067e4995bc46">write_output</a>(self):</div>
<div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="class_long_mult_1_1_add_together_1_1_add_together.html#a999eef46bd5c73bc47f1067e4995bc46"> 32</a></span>&#160; self.<a class="code" href="classe_hive_1_1_process_1_1_base_runnable.html#af8bdfe695b9b9a0bb3c6837f22883057">dataflow</a>( { <span class="stringliteral">&#39;result&#39;</span>: self.<a class="code" href="classe_hive_1_1_process_1_1_base_runnable.html#aef94af8ebb478c65e2782c92e5d81d37">param</a>(<span class="stringliteral">&#39;result&#39;</span>) }, 1)</div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;</div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160;</div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;</div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160;<span class="keyword">def </span><a class="code" href="namespaceLongMult_1_1AddTogether.html#a2dcf1fbebd840743925757c09304fec0">add_together</a>(b_multiplier, partial_product):</div>
<div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="namespaceLongMult_1_1AddTogether.html#a2dcf1fbebd840743925757c09304fec0"> 37</a></span>&#160;</div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160;<span class="keyword">def </span><a class="code" href="namespace_long_mult_1_1_add_together.html#a69a223a80f8c87227138d66aa57ed0aa">add_together</a>(b_multiplier, partial_product):</div>
<div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="namespace_long_mult_1_1_add_together.html#a69a223a80f8c87227138d66aa57ed0aa"> 37</a></span>&#160;</div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160; b_multiplier = str(b_multiplier)</div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160; accu = [0] * (1 + len(b_multiplier) + len(partial_product[<span class="stringliteral">&#39;1&#39;</span>]))</div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160;</div>
......@@ -161,25 +159,25 @@ $(document).ready(function(){initNavTree('AddTogether_8py_source.html','');});
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160; <span class="keywordflow">return</span> <span class="stringliteral">&#39;&#39;</span>.join(str(_) <span class="keywordflow">for</span> _ <span class="keywordflow">in</span> reversed(accu)).lstrip(<span class="stringliteral">&#39;0&#39;</span>)</div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160;</div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160;1;</div>
<div class="ttc" id="classLongMult_1_1AddTogether_1_1AddTogether_html_a06cd25edabff8019d8c84edd8571a4c1"><div class="ttname"><a href="classLongMult_1_1AddTogether_1_1AddTogether.html#a06cd25edabff8019d8c84edd8571a4c1">LongMult.AddTogether.AddTogether.write_output</a></div><div class="ttdeci">def write_output(self)</div><div class="ttdef"><b>Definition:</b> <a href="AddTogether_8py_source.html#l00032">AddTogether.py:32</a></div></div>
<div class="ttc" id="classeHive_1_1Process_1_1BaseRunnable_html_acfa8fec0594a6d49f4bfb9b005216579"><div class="ttname"><a href="classeHive_1_1Process_1_1BaseRunnable.html#acfa8fec0594a6d49f4bfb9b005216579">eHive.Process.BaseRunnable.param_required</a></div><div class="ttdeci">def param_required(self, param_name)</div><div class="ttdoc">Returns the value of the parameter "param_name" or raises an exception if anything wrong happens...</div><div class="ttdef"><b>Definition:</b> <a href="Process_8py_source.html#l00222">Process.py:222</a></div></div>
<div class="ttc" id="classeHive_1_1Process_1_1BaseRunnable_html"><div class="ttname"><a href="classeHive_1_1Process_1_1BaseRunnable.html">eHive.Process.BaseRunnable</a></div><div class="ttdoc">This is the counterpart of GuestProcess. </div><div class="ttdef"><b>Definition:</b> <a href="Process_8py_source.html#l00046">Process.py:46</a></div></div>
<div class="ttc" id="namespaceLongMult_1_1AddTogether_html_a2dcf1fbebd840743925757c09304fec0"><div class="ttname"><a href="namespaceLongMult_1_1AddTogether.html#a2dcf1fbebd840743925757c09304fec0">LongMult.AddTogether.add_together</a></div><div class="ttdeci">def add_together(b_multiplier, partial_product)</div><div class="ttdef"><b>Definition:</b> <a href="AddTogether_8py_source.html#l00037">AddTogether.py:37</a></div></div>
<div class="ttc" id="classLongMult_1_1AddTogether_1_1AddTogether_html_a1f669d43a2221c5b51f5477bcb17fd27"><div class="ttname"><a href="classLongMult_1_1AddTogether_1_1AddTogether.html#a1f669d43a2221c5b51f5477bcb17fd27">LongMult.AddTogether.AddTogether.run</a></div><div class="ttdeci">def run(self)</div><div class="ttdef"><b>Definition:</b> <a href="AddTogether_8py_source.html#l00026">AddTogether.py:26</a></div></div>
<div class="ttc" id="classeHive_1_1Process_1_1BaseRunnable_html_a11adb84bc2b95f138346911b3acda14a"><div class="ttname"><a href="classeHive_1_1Process_1_1BaseRunnable.html#a11adb84bc2b95f138346911b3acda14a">eHive.Process.BaseRunnable.param</a></div><div class="ttdeci">def param(self, param_name, args)</div><div class="ttdoc">When called as a setter: sets the value of the parameter "param_name". </div><div class="ttdef"><b>Definition:</b> <a href="Process_8py_source.html#l00234">Process.py:234</a></div></div>
<div class="ttc" id="classLongMult_1_1AddTogether_1_1AddTogether_html"><div class="ttname"><a href="classLongMult_1_1AddTogether_1_1AddTogether.html">LongMult.AddTogether.AddTogether</a></div><div class="ttdoc">Runnable that adds up all the partial-multiplications from PartMultiply. </div><div class="ttdef"><b>Definition:</b> <a href="AddTogether_8py_source.html#l00008">AddTogether.py:8</a></div></div>
<div class="ttc" id="classLongMult_1_1AddTogether_1_1AddTogether_html_ae5956e41430cad01308bb2177f4e85e9"><div class="ttname"><a href="classLongMult_1_1AddTogether_1_1AddTogether.html#ae5956e41430cad01308bb2177f4e85e9">LongMult.AddTogether.AddTogether.param_defaults</a></div><div class="ttdeci">def param_defaults(self)</div><div class="ttdef"><b>Definition:</b> <a href="AddTogether_8py_source.html#l00010">AddTogether.py:10</a></div></div>
<div class="ttc" id="classeHive_1_1Process_1_1BaseRunnable_html_af8bdfe695b9b9a0bb3c6837f22883057"><div class="ttname"><a href="classeHive_1_1Process_1_1BaseRunnable.html#af8bdfe695b9b9a0bb3c6837f22883057">eHive.Process.BaseRunnable.dataflow</a></div><div class="ttdeci">def dataflow</div><div class="ttdoc">Dataflows the output_id(s) on a given branch (default 1). </div><div class="ttdef"><b>Definition:</b> <a href="Process_8py_source.html#l00193">Process.py:193</a></div></div>
<div class="ttc" id="classLongMult_1_1AddTogether_1_1AddTogether_html_a5433d744904172ec9cb658536cd558f8"><div class="ttname"><a href="classLongMult_1_1AddTogether_1_1AddTogether.html#a5433d744904172ec9cb658536cd558f8">LongMult.AddTogether.AddTogether.fetch_input</a></div><div class="ttdeci">def fetch_input(self)</div><div class="ttdef"><b>Definition:</b> <a href="AddTogether_8py_source.html#l00017">AddTogether.py:17</a></div></div>
<div class="ttc" id="classe_hive_1_1_process_1_1_base_runnable_html_aef94af8ebb478c65e2782c92e5d81d37"><div class="ttname"><a href="classe_hive_1_1_process_1_1_base_runnable.html#aef94af8ebb478c65e2782c92e5d81d37">eHive.Process.BaseRunnable.param</a></div><div class="ttdeci">def param</div><div class="ttdoc">When called as a setter: sets the value of the parameter &quot;param_name&quot;. </div><div class="ttdef"><b>Definition:</b> <a href="_process_8py_source.html#l00254">Process.py:254</a></div></div>
<div class="ttc" id="class_long_mult_1_1_add_together_1_1_add_together_html_afe3cd6ec9890ea16d20db16e9efe045c"><div class="ttname"><a href="class_long_mult_1_1_add_together_1_1_add_together.html#afe3cd6ec9890ea16d20db16e9efe045c">LongMult.AddTogether.AddTogether.fetch_input</a></div><div class="ttdeci">def fetch_input</div><div class="ttdef"><b>Definition:</b> <a href="_add_together_8py_source.html#l00017">AddTogether.py:17</a></div></div>
<div class="ttc" id="class_long_mult_1_1_add_together_1_1_add_together_html"><div class="ttname"><a href="class_long_mult_1_1_add_together_1_1_add_together.html">LongMult.AddTogether.AddTogether</a></div><div class="ttdoc">Runnable that adds up all the partial-multiplications from PartMultiply. </div><div class="ttdef"><b>Definition:</b> <a href="_add_together_8py_source.html#l00008">AddTogether.py:8</a></div></div>
<div class="ttc" id="class_long_mult_1_1_add_together_1_1_add_together_html_aa42d0f75bc0bb66316b8ac166cf0da5c"><div class="ttname"><a href="class_long_mult_1_1_add_together_1_1_add_together.html#aa42d0f75bc0bb66316b8ac166cf0da5c">LongMult.AddTogether.AddTogether.param_defaults</a></div><div class="ttdeci">def param_defaults</div><div class="ttdef"><b>Definition:</b> <a href="_add_together_8py_source.html#l00010">AddTogether.py:10</a></div></div>
<div class="ttc" id="class_long_mult_1_1_add_together_1_1_add_together_html_a9e011dd3c7530b83d7121e6065a15134"><div class="ttname"><a href="class_long_mult_1_1_add_together_1_1_add_together.html#a9e011dd3c7530b83d7121e6065a15134">LongMult.AddTogether.AddTogether.run</a></div><div class="ttdeci">def run</div><div class="ttdef"><b>Definition:</b> <a href="_add_together_8py_source.html#l00026">AddTogether.py:26</a></div></div>
<div class="ttc" id="namespace_long_mult_1_1_add_together_html_a69a223a80f8c87227138d66aa57ed0aa"><div class="ttname"><a href="namespace_long_mult_1_1_add_together.html#a69a223a80f8c87227138d66aa57ed0aa">LongMult.AddTogether.add_together</a></div><div class="ttdeci">def add_together</div><div class="ttdef"><b>Definition:</b> <a href="_add_together_8py_source.html#l00037">AddTogether.py:37</a></div></div>
<div class="ttc" id="classe_hive_1_1_process_1_1_base_runnable_html_a49c5b1633c7c62d7cd7d893a68390082"><div class="ttname"><a href="classe_hive_1_1_process_1_1_base_runnable.html#a49c5b1633c7c62d7cd7d893a68390082">eHive.Process.BaseRunnable.param_required</a></div><div class="ttdeci">def param_required</div><div class="ttdoc">Returns the value of the parameter &quot;param_name&quot; or raises an exception if anything wrong happens...</div><div class="ttdef"><b>Definition:</b> <a href="_process_8py_source.html#l00242">Process.py:242</a></div></div>
<div class="ttc" id="class_long_mult_1_1_add_together_1_1_add_together_html_a999eef46bd5c73bc47f1067e4995bc46"><div class="ttname"><a href="class_long_mult_1_1_add_together_1_1_add_together.html#a999eef46bd5c73bc47f1067e4995bc46">LongMult.AddTogether.AddTogether.write_output</a></div><div class="ttdeci">def write_output</div><div class="ttdef"><b>Definition:</b> <a href="_add_together_8py_source.html#l00032">AddTogether.py:32</a></div></div>
<div class="ttc" id="classe_hive_1_1_process_1_1_base_runnable_html_af8bdfe695b9b9a0bb3c6837f22883057"><div class="ttname"><a href="classe_hive_1_1_process_1_1_base_runnable.html#af8bdfe695b9b9a0bb3c6837f22883057">eHive.Process.BaseRunnable.dataflow</a></div><div class="ttdeci">def dataflow</div><div class="ttdoc">Dataflows the output_id(s) on a given branch (default 1). </div><div class="ttdef"><b>Definition:</b> <a href="_process_8py_source.html#l00213">Process.py:213</a></div></div>
<div class="ttc" id="classe_hive_1_1_process_1_1_base_runnable_html"><div class="ttname"><a href="classe_hive_1_1_process_1_1_base_runnable.html">eHive.Process.BaseRunnable</a></div><div class="ttdoc">This is the counterpart of GuestProcess. </div><div class="ttdef"><b>Definition:</b> <a href="_process_8py_source.html#l00050">Process.py:50</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="dir_2cfca80d888378ed51242bae85fb2949.html">LongMult</a></li><li class="navelem"><a class="el" href="AddTogether_8py.html">AddTogether.py</a></li>
<li class="navelem"><a class="el" href="dir_2cfca80d888378ed51242bae85fb2949.html">LongMult</a></li><li class="navelem"><a class="el" href="_add_together_8py.html">AddTogether.py</a></li>
<li class="footer">Generated by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.9.1 </li>
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
</ul>
</div>
</body>
......
......@@ -3,24 +3,22 @@
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>ensembl-hive-python3: LongMult/DigitFactory.py File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
$(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { init_search(); });
$(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
......@@ -40,7 +38,7 @@
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
......@@ -85,7 +83,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('DigitFactory_8py.html','');});
$(document).ready(function(){initNavTree('_digit_factory_8py.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
......@@ -93,7 +91,7 @@ $(document).ready(function(){initNavTree('DigitFactory_8py.html','');});
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a></div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
......@@ -111,17 +109,17 @@ $(document).ready(function(){initNavTree('DigitFactory_8py.html','');});
</div><!--header-->
<div class="contents">
<p><a href="DigitFactory_8py_source.html">Go to the source code of this file.</a></p>
<p><a href="_digit_factory_8py_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classLongMult_1_1DigitFactory_1_1DigitFactory.html">LongMult.DigitFactory.DigitFactory</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Factory that creates 1 job per digit found in the decimal representation of 'b_multiplier'. <a href="classLongMult_1_1DigitFactory_1_1DigitFactory.html#details">More...</a><br /></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_long_mult_1_1_digit_factory_1_1_digit_factory.html">LongMult.DigitFactory.DigitFactory</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Factory that creates 1 job per digit found in the decimal representation of 'b_multiplier'. <a href="class_long_mult_1_1_digit_factory_1_1_digit_factory.html#details">More...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
Namespaces</h2></td></tr>
<tr class="memitem:namespaceLongMult_1_1DigitFactory"><td class="memItemLeft" align="right" valign="top"> &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceLongMult_1_1DigitFactory.html">LongMult.DigitFactory</a></td></tr>
<tr class="memitem:namespace_long_mult_1_1_digit_factory"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_long_mult_1_1_digit_factory.html">LongMult.DigitFactory</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
</div><!-- contents -->
......@@ -129,10 +127,10 @@ Namespaces</h2></td></tr>
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="dir_2cfca80d888378ed51242bae85fb2949.html">LongMult</a></li><li class="navelem"><a class="el" href="DigitFactory_8py.html">DigitFactory.py</a></li>
<li class="navelem"><a class="el" href="dir_2cfca80d888378ed51242bae85fb2949.html">LongMult</a></li><li class="navelem"><a class="el" href="_digit_factory_8py.html">DigitFactory.py</a></li>
<li class="footer">Generated by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.9.1 </li>
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
</ul>
</div>
</body>
......
......@@ -3,24 +3,22 @@
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>ensembl-hive-python3: LongMult/DigitFactory.py Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
$(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { init_search(); });
$(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
......@@ -40,7 +38,7 @@
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
......@@ -85,7 +83,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('DigitFactory_8py_source.html','');});
$(document).ready(function(){initNavTree('_digit_factory_8py_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
......@@ -93,7 +91,7 @@ $(document).ready(function(){initNavTree('DigitFactory_8py_source.html','');});
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a></div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
......@@ -107,55 +105,55 @@ $(document).ready(function(){initNavTree('DigitFactory_8py_source.html','');});
<div class="title">DigitFactory.py</div> </div>
</div><!--header-->
<div class="contents">
<a href="DigitFactory_8py.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"><a class="line" href="namespaceLongMult_1_1DigitFactory.html"> 1</a></span>&#160;</div>
<a href="_digit_factory_8py.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"><a class="line" href="namespace_long_mult_1_1_digit_factory.html"> 1</a></span>&#160;</div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="keyword">import</span> eHive</div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;</div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="keyword">import</span> time</div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;</div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="keyword">class </span><a class="code" href="classLongMult_1_1DigitFactory_1_1DigitFactory.html">DigitFactory</a>(<a class="code" href="classeHive_1_1Process_1_1BaseRunnable.html">eHive.BaseRunnable</a>):</div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="keyword">class </span><a class="code" href="class_long_mult_1_1_digit_factory_1_1_digit_factory.html">DigitFactory</a>(<a class="code" href="classe_hive_1_1_process_1_1_base_runnable.html">eHive.BaseRunnable</a>):</div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160; <span class="stringliteral">&quot;&quot;&quot;Factory that creates 1 job per digit found in the decimal representation of &#39;b_multiplier&#39;&quot;&quot;&quot;</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"><a class="line" href="classLongMult_1_1DigitFactory_1_1DigitFactory.html"> 8</a></span>&#160;</div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160; <span class="keyword">def </span><a class="code" href="classLongMult_1_1DigitFactory_1_1DigitFactory.html#a06ba71483a9f507148ac334a871ef8fb">param_defaults</a>(self):</div>
<div class="line"><a name="l00010"></a><span class="lineno"><a class="line" href="classLongMult_1_1DigitFactory_1_1DigitFactory.html#a06ba71483a9f507148ac334a871ef8fb"> 10</a></span>&#160; <span class="keywordflow">return</span> {</div>
<div class="line"><a name="l00008"></a><span class="lineno"><a class="line" href="class_long_mult_1_1_digit_factory_1_1_digit_factory.html"> 8</a></span>&#160;</div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160; <span class="keyword">def </span><a class="code" href="class_long_mult_1_1_digit_factory_1_1_digit_factory.html#a20d68de7d741f6d93279fea8db8f25ca">param_defaults</a>(self):</div>
<div class="line"><a name="l00010"></a><span class="lineno"><a class="line" href="class_long_mult_1_1_digit_factory_1_1_digit_factory.html#a20d68de7d741f6d93279fea8db8f25ca"> 10</a></span>&#160; <span class="keywordflow">return</span> {</div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160; <span class="stringliteral">&#39;take_time&#39;</span> : 0</div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160; }</div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;</div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;</div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160; <span class="keyword">def </span><a class="code" href="classLongMult_1_1DigitFactory_1_1DigitFactory.html#a61bdf2f9b4f9ad993bc51349c00e57e1">fetch_input</a>(self):</div>
<div class="line"><a name="l00016"></a><span class="lineno"><a class="line" href="classLongMult_1_1DigitFactory_1_1DigitFactory.html#a61bdf2f9b4f9ad993bc51349c00e57e1"> 16</a></span>&#160; b_multiplier = self.<a class="code" href="classeHive_1_1Process_1_1BaseRunnable.html#acfa8fec0594a6d49f4bfb9b005216579">param_required</a>(<span class="stringliteral">&#39;b_multiplier&#39;</span>)</div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160; <span class="keyword">def </span><a class="code" href="class_long_mult_1_1_digit_factory_1_1_digit_factory.html#a54ae307978a6283824a3f989da19d100">fetch_input</a>(self):</div>
<div class="line"><a name="l00016"></a><span class="lineno"><a class="line" href="class_long_mult_1_1_digit_factory_1_1_digit_factory.html#a54ae307978a6283824a3f989da19d100"> 16</a></span>&#160; b_multiplier = self.<a class="code" href="classe_hive_1_1_process_1_1_base_runnable.html#a49c5b1633c7c62d7cd7d893a68390082">param_required</a>(<span class="stringliteral">&#39;b_multiplier&#39;</span>)</div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160; sub_tasks = [ { <span class="stringliteral">&#39;digit&#39;</span>: _ } <span class="keywordflow">for</span> _ <span class="keywordflow">in</span> set(str(b_multiplier)).difference(<span class="stringliteral">&#39;01&#39;</span>) ]</div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160; self.<a class="code" href="classeHive_1_1Process_1_1BaseRunnable.html#a11adb84bc2b95f138346911b3acda14a">param</a>(<span class="stringliteral">&#39;sub_tasks&#39;</span>, sub_tasks)</div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160; self.<a class="code" href="classe_hive_1_1_process_1_1_base_runnable.html#aef94af8ebb478c65e2782c92e5d81d37">param</a>(<span class="stringliteral">&#39;sub_tasks&#39;</span>, sub_tasks)</div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;</div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;</div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160; <span class="keyword">def </span><a class="code" href="classLongMult_1_1DigitFactory_1_1DigitFactory.html#a2c3f5df817106f84a3aed2425ad0702d">run</a>(self):</div>
<div class="line"><a name="l00022"></a><span class="lineno"><a class="line" href="classLongMult_1_1DigitFactory_1_1DigitFactory.html#a2c3f5df817106f84a3aed2425ad0702d"> 22</a></span>&#160; time.sleep( self.<a class="code" href="classeHive_1_1Process_1_1BaseRunnable.html#a11adb84bc2b95f138346911b3acda14a">param</a>(<span class="stringliteral">&#39;take_time&#39;</span>) )</div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160; <span class="keyword">def </span><a class="code" href="class_long_mult_1_1_digit_factory_1_1_digit_factory.html#a464e5ac722d7f87a341b8cb13e80bcb9">run</a>(self):</div>
<div class="line"><a name="l00022"></a><span class="lineno"><a class="line" href="class_long_mult_1_1_digit_factory_1_1_digit_factory.html#a464e5ac722d7f87a341b8cb13e80bcb9"> 22</a></span>&#160; time.sleep( self.<a class="code" href="classe_hive_1_1_process_1_1_base_runnable.html#aef94af8ebb478c65e2782c92e5d81d37">param</a>(<span class="stringliteral">&#39;take_time&#39;</span>) )</div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;</div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;</div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160; <span class="keyword">def </span><a class="code" href="classLongMult_1_1DigitFactory_1_1DigitFactory.html#a842699f1822eaf70ba92d7356c0451d1">write_output</a>(self):</div>
<div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="classLongMult_1_1DigitFactory_1_1DigitFactory.html#a842699f1822eaf70ba92d7356c0451d1"> 26</a></span>&#160; sub_tasks = self.<a class="code" href="classeHive_1_1Process_1_1BaseRunnable.html#a11adb84bc2b95f138346911b3acda14a">param</a>(<span class="stringliteral">&#39;sub_tasks&#39;</span>)</div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160; self.<a class="code" href="classeHive_1_1Process_1_1BaseRunnable.html#af8bdfe695b9b9a0bb3c6837f22883057">dataflow</a>(sub_tasks, 2)</div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160; self.<a class="code" href="classeHive_1_1Process_1_1BaseRunnable.html#af3c999502afdc346070e50c4fc42905b">warning</a>(<span class="stringliteral">&#39;{0} multiplication jobs have been created&#39;</span>.format(len(sub_tasks)))</div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160; <span class="keyword">def </span><a class="code" href="class_long_mult_1_1_digit_factory_1_1_digit_factory.html#a019e049fb5a45e6be23f2878eaa2b4e2">write_output</a>(self):</div>
<div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="class_long_mult_1_1_digit_factory_1_1_digit_factory.html#a019e049fb5a45e6be23f2878eaa2b4e2"> 26</a></span>&#160; sub_tasks = self.<a class="code" href="classe_hive_1_1_process_1_1_base_runnable.html#aef94af8ebb478c65e2782c92e5d81d37">param</a>(<span class="stringliteral">&#39;sub_tasks&#39;</span>)</div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160; self.<a class="code" href="classe_hive_1_1_process_1_1_base_runnable.html#af8bdfe695b9b9a0bb3c6837f22883057">dataflow</a>(sub_tasks, 2)</div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160; self.<a class="code" href="classe_hive_1_1_process_1_1_base_runnable.html#af3c999502afdc346070e50c4fc42905b">warning</a>(<span class="stringliteral">&#39;{0} multiplication jobs have been created&#39;</span>.format(len(sub_tasks)))</div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;</div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;</div>
<div class="ttc" id="classeHive_1_1Process_1_1BaseRunnable_html_acfa8fec0594a6d49f4bfb9b005216579"><div class="ttname"><a href="classeHive_1_1Process_1_1BaseRunnable.html#acfa8fec0594a6d49f4bfb9b005216579">eHive.Process.BaseRunnable.param_required</a></div><div class="ttdeci">def param_required(self, param_name)</div><div class="ttdoc">Returns the value of the parameter "param_name" or raises an exception if anything wrong happens...</div><div class="ttdef"><b>Definition:</b> <a href="Process_8py_source.html#l00222">Process.py:222</a></div></div>
<div class="ttc" id="classLongMult_1_1DigitFactory_1_1DigitFactory_html_a61bdf2f9b4f9ad993bc51349c00e57e1"><div class="ttname"><a href="classLongMult_1_1DigitFactory_1_1DigitFactory.html#a61bdf2f9b4f9ad993bc51349c00e57e1">LongMult.DigitFactory.DigitFactory.fetch_input</a></div><div class="ttdeci">def fetch_input(self)</div><div class="ttdef"><b>Definition:</b> <a href="DigitFactory_8py_source.html#l00016">DigitFactory.py:16</a></div></div>
<div class="ttc" id="classLongMult_1_1DigitFactory_1_1DigitFactory_html"><div class="ttname"><a href="classLongMult_1_1DigitFactory_1_1DigitFactory.html">LongMult.DigitFactory.DigitFactory</a></div><div class="ttdoc">Factory that creates 1 job per digit found in the decimal representation of &#39;b_multiplier&#39;. </div><div class="ttdef"><b>Definition:</b> <a href="DigitFactory_8py_source.html#l00008">DigitFactory.py:8</a></div></div>
<div class="ttc" id="classeHive_1_1Process_1_1BaseRunnable_html"><div class="ttname"><a href="classeHive_1_1Process_1_1BaseRunnable.html">eHive.Process.BaseRunnable</a></div><div class="ttdoc">This is the counterpart of GuestProcess. </div><div class="ttdef"><b>Definition:</b> <a href="Process_8py_source.html#l00046">Process.py:46</a></div></div>
<div class="ttc" id="classLongMult_1_1DigitFactory_1_1DigitFactory_html_a2c3f5df817106f84a3aed2425ad0702d"><div class="ttname"><a href="classLongMult_1_1DigitFactory_1_1DigitFactory.html#a2c3f5df817106f84a3aed2425ad0702d">LongMult.DigitFactory.DigitFactory.run</a></div><div class="ttdeci">def run(self)</div><div class="ttdef"><b>Definition:</b> <a href="DigitFactory_8py_source.html#l00022">DigitFactory.py:22</a></div></div>
<div class="ttc" id="classeHive_1_1Process_1_1BaseRunnable_html_a11adb84bc2b95f138346911b3acda14a"><div class="ttname"><a href="classeHive_1_1Process_1_1BaseRunnable.html#a11adb84bc2b95f138346911b3acda14a">eHive.Process.BaseRunnable.param</a></div><div class="ttdeci">def param(self, param_name, args)</div><div class="ttdoc">When called as a setter: sets the value of the parameter "param_name". </div><div class="ttdef"><b>Definition:</b> <a href="Process_8py_source.html#l00234">Process.py:234</a></div></div>
<div class="ttc" id="classLongMult_1_1DigitFactory_1_1DigitFactory_html_a06ba71483a9f507148ac334a871ef8fb"><div class="ttname"><a href="classLongMult_1_1DigitFactory_1_1DigitFactory.html#a06ba71483a9f507148ac334a871ef8fb">LongMult.DigitFactory.DigitFactory.param_defaults</a></div><div class="ttdeci">def param_defaults(self)</div><div class="ttdef"><b>Definition:</b> <a href="DigitFactory_8py_source.html#l00010">DigitFactory.py:10</a></div></div>
<div class="ttc" id="classeHive_1_1Process_1_1BaseRunnable_html_af8bdfe695b9b9a0bb3c6837f22883057"><div class="ttname"><a href="classeHive_1_1Process_1_1BaseRunnable.html#af8bdfe695b9b9a0bb3c6837f22883057">eHive.Process.BaseRunnable.dataflow</a></div><div class="ttdeci">def dataflow</div><div class="ttdoc">Dataflows the output_id(s) on a given branch (default 1). </div><div class="ttdef"><b>Definition:</b> <a href="Process_8py_source.html#l00193">Process.py:193</a></div></div>
<div class="ttc" id="classLongMult_1_1DigitFactory_1_1DigitFactory_html_a842699f1822eaf70ba92d7356c0451d1"><div class="ttname"><a href="classLongMult_1_1DigitFactory_1_1DigitFactory.html#a842699f1822eaf70ba92d7356c0451d1">LongMult.DigitFactory.DigitFactory.write_output</a></div><div class="ttdeci">def write_output(self)</div><div class="ttdef"><b>Definition:</b> <a href="DigitFactory_8py_source.html#l00026">DigitFactory.py:26</a></div></div>
<div class="ttc" id="classeHive_1_1Process_1_1BaseRunnable_html_af3c999502afdc346070e50c4fc42905b"><div class="ttname"><a href="classeHive_1_1Process_1_1BaseRunnable.html#af3c999502afdc346070e50c4fc42905b">eHive.Process.BaseRunnable.warning</a></div><div class="ttdeci">def warning</div><div class="ttdoc">Store a message in the log_message table with is_error indicating whether the warning is actually an ...</div><div class="ttdef"><b>Definition:</b> <a href="Process_8py_source.html#l00188">Process.py:188</a></div></div>
<div class="ttc" id="classe_hive_1_1_process_1_1_base_runnable_html_aef94af8ebb478c65e2782c92e5d81d37"><div class="ttname"><a href="classe_hive_1_1_process_1_1_base_runnable.html#aef94af8ebb478c65e2782c92e5d81d37">eHive.Process.BaseRunnable.param</a></div><div class="ttdeci">def param</div><div class="ttdoc">When called as a setter: sets the value of the parameter &quot;param_name&quot;. </div><div class="ttdef"><b>Definition:</b> <a href="_process_8py_source.html#l00254">Process.py:254</a></div></div>
<div class="ttc" id="class_long_mult_1_1_digit_factory_1_1_digit_factory_html"><div class="ttname"><a href="class_long_mult_1_1_digit_factory_1_1_digit_factory.html">LongMult.DigitFactory.DigitFactory</a></div><div class="ttdoc">Factory that creates 1 job per digit found in the decimal representation of &#39;b_multiplier&#39;. </div><div class="ttdef"><b>Definition:</b> <a href="_digit_factory_8py_source.html#l00008">DigitFactory.py:8</a></div></div>
<div class="ttc" id="class_long_mult_1_1_digit_factory_1_1_digit_factory_html_a019e049fb5a45e6be23f2878eaa2b4e2"><div class="ttname"><a href="class_long_mult_1_1_digit_factory_1_1_digit_factory.html#a019e049fb5a45e6be23f2878eaa2b4e2">LongMult.DigitFactory.DigitFactory.write_output</a></div><div class="ttdeci">def write_output</div><div class="ttdef"><b>Definition:</b> <a href="_digit_factory_8py_source.html#l00026">DigitFactory.py:26</a></div></div>
<div class="ttc" id="class_long_mult_1_1_digit_factory_1_1_digit_factory_html_a464e5ac722d7f87a341b8cb13e80bcb9"><div class="ttname"><a href="class_long_mult_1_1_digit_factory_1_1_digit_factory.html#a464e5ac722d7f87a341b8cb13e80bcb9">LongMult.DigitFactory.DigitFactory.run</a></div><div class="ttdeci">def run</div><div class="ttdef"><b>Definition:</b> <a href="_digit_factory_8py_source.html#l00022">DigitFactory.py:22</a></div></div>
<div class="ttc" id="classe_hive_1_1_process_1_1_base_runnable_html_a49c5b1633c7c62d7cd7d893a68390082"><div class="ttname"><a href="classe_hive_1_1_process_1_1_base_runnable.html#a49c5b1633c7c62d7cd7d893a68390082">eHive.Process.BaseRunnable.param_required</a></div><div class="ttdeci">def param_required</div><div class="ttdoc">Returns the value of the parameter &quot;param_name&quot; or raises an exception if anything wrong happens...</div><div class="ttdef"><b>Definition:</b> <a href="_process_8py_source.html#l00242">Process.py:242</a></div></div>
<div class="ttc" id="class_long_mult_1_1_digit_factory_1_1_digit_factory_html_a54ae307978a6283824a3f989da19d100"><div class="ttname"><a href="class_long_mult_1_1_digit_factory_1_1_digit_factory.html#a54ae307978a6283824a3f989da19d100">LongMult.DigitFactory.DigitFactory.fetch_input</a></div><div class="ttdeci">def fetch_input</div><div class="ttdef"><b>Definition:</b> <a href="_digit_factory_8py_source.html#l00016">DigitFactory.py:16</a></div></div>
<div class="ttc" id="classe_hive_1_1_process_1_1_base_runnable_html_af8bdfe695b9b9a0bb3c6837f22883057"><div class="ttname"><a href="classe_hive_1_1_process_1_1_base_runnable.html#af8bdfe695b9b9a0bb3c6837f22883057">eHive.Process.BaseRunnable.dataflow</a></div><div class="ttdeci">def dataflow</div><div class="ttdoc">Dataflows the output_id(s) on a given branch (default 1). </div><div class="ttdef"><b>Definition:</b> <a href="_process_8py_source.html#l00213">Process.py:213</a></div></div>
<div class="ttc" id="classe_hive_1_1_process_1_1_base_runnable_html_af3c999502afdc346070e50c4fc42905b"><div class="ttname"><a href="classe_hive_1_1_process_1_1_base_runnable.html#af3c999502afdc346070e50c4fc42905b">eHive.Process.BaseRunnable.warning</a></div><div class="ttdeci">def warning</div><div class="ttdoc">Store a message in the log_message table with is_error indicating whether the warning is actually an ...</div><div class="ttdef"><b>Definition:</b> <a href="_process_8py_source.html#l00208">Process.py:208</a></div></div>
<div class="ttc" id="classe_hive_1_1_process_1_1_base_runnable_html"><div class="ttname"><a href="classe_hive_1_1_process_1_1_base_runnable.html">eHive.Process.BaseRunnable</a></div><div class="ttdoc">This is the counterpart of GuestProcess. </div><div class="ttdef"><b>Definition:</b> <a href="_process_8py_source.html#l00050">Process.py:50</a></div></div>
<div class="ttc" id="class_long_mult_1_1_digit_factory_1_1_digit_factory_html_a20d68de7d741f6d93279fea8db8f25ca"><div