[512573a] | 1 | |
---|
| 2 | |
---|
| 3 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
---|
| 4 | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
---|
| 5 | |
---|
| 6 | <html xmlns="http://www.w3.org/1999/xhtml"> |
---|
| 7 | <head> |
---|
| 8 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
---|
| 9 | |
---|
| 10 | <title>ModelFactory — sansmodels v0.1.0 documentation</title> |
---|
| 11 | <link rel="stylesheet" href="../_static/default.css" type="text/css" /> |
---|
| 12 | <link rel="stylesheet" href="../_static/pygments.css" type="text/css" /> |
---|
| 13 | <script type="text/javascript"> |
---|
| 14 | var DOCUMENTATION_OPTIONS = { |
---|
| 15 | URL_ROOT: '../', |
---|
| 16 | VERSION: '0.1.0', |
---|
| 17 | COLLAPSE_INDEX: false, |
---|
| 18 | FILE_SUFFIX: '.html', |
---|
| 19 | HAS_SOURCE: true |
---|
| 20 | }; |
---|
| 21 | </script> |
---|
| 22 | <script type="text/javascript" src="../_static/jquery.js"></script> |
---|
| 23 | <script type="text/javascript" src="../_static/underscore.js"></script> |
---|
| 24 | <script type="text/javascript" src="../_static/doctools.js"></script> |
---|
| 25 | <link rel="top" title="sansmodels v0.1.0 documentation" href="../index.html" /> |
---|
| 26 | <link rel="up" title="Reference" href="index.html" /> |
---|
| 27 | <link rel="next" title="ModelIO" href="ModelIO.html" /> |
---|
| 28 | <link rel="prev" title="ModelAdaptor" href="ModelAdaptor.html" /> |
---|
| 29 | </head> |
---|
| 30 | <body> |
---|
| 31 | <div class="related"> |
---|
| 32 | <h3>Navigation</h3> |
---|
| 33 | <ul> |
---|
| 34 | <li class="right" style="margin-right: 10px"> |
---|
| 35 | <a href="../genindex.html" title="General Index" |
---|
| 36 | accesskey="I">index</a></li> |
---|
| 37 | <li class="right" > |
---|
| 38 | <a href="../py-modindex.html" title="Python Module Index" |
---|
| 39 | >modules</a> |</li> |
---|
| 40 | <li class="right" > |
---|
| 41 | <a href="ModelIO.html" title="ModelIO" |
---|
| 42 | accesskey="N">next</a> |</li> |
---|
| 43 | <li class="right" > |
---|
| 44 | <a href="ModelAdaptor.html" title="ModelAdaptor" |
---|
| 45 | accesskey="P">previous</a> |</li> |
---|
| 46 | <li><a href="../index.html">sansmodels v0.1.0 documentation</a> »</li> |
---|
| 47 | <li><a href="index.html" accesskey="U">Reference</a> »</li> |
---|
| 48 | </ul> |
---|
| 49 | </div> |
---|
| 50 | |
---|
| 51 | <div class="document"> |
---|
| 52 | <div class="documentwrapper"> |
---|
| 53 | <div class="bodywrapper"> |
---|
| 54 | <div class="body"> |
---|
| 55 | |
---|
| 56 | <div class="section" id="modelfactory"> |
---|
| 57 | <h1>ModelFactory<a class="headerlink" href="#modelfactory" title="Permalink to this headline">¶</a></h1> |
---|
| 58 | <div class="section" id="module-sans.models.ModelFactory"> |
---|
| 59 | <span id="sans-models-modelfactory"></span><h2><a class="reference internal" href="#module-sans.models.ModelFactory" title="sans.models.ModelFactory"><tt class="xref py py-mod docutils literal"><span class="pre">sans.models.ModelFactory</span></tt></a><a class="headerlink" href="#module-sans.models.ModelFactory" title="Permalink to this headline">¶</a></h2> |
---|
| 60 | <p>Model factory |
---|
| 61 | Class that creates models by looking up the name of a model |
---|
| 62 | in the models directory</p> |
---|
| 63 | <p>@author: Mathieu Doucet / UTK |
---|
| 64 | @contact: <a class="reference external" href="mailto:mathieu.doucet%40nist.gov">mathieu<span>.</span>doucet<span>@</span>nist<span>.</span>gov</a></p> |
---|
| 65 | <dl class="class"> |
---|
| 66 | <dt id="sans.models.ModelFactory.ModelFactory"> |
---|
| 67 | <em class="property">class </em><tt class="descclassname">sans.models.ModelFactory.</tt><tt class="descname">ModelFactory</tt><a class="headerlink" href="#sans.models.ModelFactory.ModelFactory" title="Permalink to this definition">¶</a></dt> |
---|
| 68 | <dd><p>Class to create available models</p> |
---|
| 69 | <dl class="method"> |
---|
| 70 | <dt id="sans.models.ModelFactory.ModelFactory.getAllModels"> |
---|
| 71 | <tt class="descname">getAllModels</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.ModelFactory.ModelFactory.getAllModels" title="Permalink to this definition">¶</a></dt> |
---|
| 72 | <dd><p>Returns a list of all available models |
---|
| 73 | @return: python list object</p> |
---|
| 74 | </dd></dl> |
---|
| 75 | |
---|
| 76 | <dl class="method"> |
---|
| 77 | <dt id="sans.models.ModelFactory.ModelFactory.getModel"> |
---|
| 78 | <tt class="descname">getModel</tt><big>(</big><em>name='BaseComponent'</em><big>)</big><a class="headerlink" href="#sans.models.ModelFactory.ModelFactory.getModel" title="Permalink to this definition">¶</a></dt> |
---|
| 79 | <dd><p>Returns the model if found |
---|
| 80 | @param name: name of the model to look for |
---|
| 81 | @return: the model object</p> |
---|
| 82 | </dd></dl> |
---|
| 83 | |
---|
| 84 | </dd></dl> |
---|
| 85 | |
---|
| 86 | </div> |
---|
| 87 | </div> |
---|
| 88 | |
---|
| 89 | |
---|
| 90 | </div> |
---|
| 91 | </div> |
---|
| 92 | </div> |
---|
| 93 | <div class="sphinxsidebar"> |
---|
| 94 | <div class="sphinxsidebarwrapper"> |
---|
| 95 | <h3><a href="../index.html">Table Of Contents</a></h3> |
---|
| 96 | <ul> |
---|
| 97 | <li><a class="reference internal" href="#">ModelFactory</a><ul> |
---|
| 98 | <li><a class="reference internal" href="#module-sans.models.ModelFactory"><tt class="docutils literal"><span class="pre">sans.models.ModelFactory</span></tt></a></li> |
---|
| 99 | </ul> |
---|
| 100 | </li> |
---|
| 101 | </ul> |
---|
| 102 | |
---|
| 103 | <h4>Previous topic</h4> |
---|
| 104 | <p class="topless"><a href="ModelAdaptor.html" |
---|
| 105 | title="previous chapter">ModelAdaptor</a></p> |
---|
| 106 | <h4>Next topic</h4> |
---|
| 107 | <p class="topless"><a href="ModelIO.html" |
---|
| 108 | title="next chapter">ModelIO</a></p> |
---|
| 109 | <h3>This Page</h3> |
---|
| 110 | <ul class="this-page-menu"> |
---|
| 111 | <li><a href="../_sources/api/ModelFactory.txt" |
---|
| 112 | rel="nofollow">Show Source</a></li> |
---|
| 113 | </ul> |
---|
| 114 | <div id="searchbox" style="display: none"> |
---|
| 115 | <h3>Quick search</h3> |
---|
| 116 | <form class="search" action="../search.html" method="get"> |
---|
| 117 | <input type="text" name="q" size="18" /> |
---|
| 118 | <input type="submit" value="Go" /> |
---|
| 119 | <input type="hidden" name="check_keywords" value="yes" /> |
---|
| 120 | <input type="hidden" name="area" value="default" /> |
---|
| 121 | </form> |
---|
| 122 | <p class="searchtip" style="font-size: 90%"> |
---|
| 123 | Enter search terms or a module, class or function name. |
---|
| 124 | </p> |
---|
| 125 | </div> |
---|
| 126 | <script type="text/javascript">$('#searchbox').show(0);</script> |
---|
| 127 | </div> |
---|
| 128 | </div> |
---|
| 129 | <div class="clearer"></div> |
---|
| 130 | </div> |
---|
| 131 | <div class="related"> |
---|
| 132 | <h3>Navigation</h3> |
---|
| 133 | <ul> |
---|
| 134 | <li class="right" style="margin-right: 10px"> |
---|
| 135 | <a href="../genindex.html" title="General Index" |
---|
| 136 | >index</a></li> |
---|
| 137 | <li class="right" > |
---|
| 138 | <a href="../py-modindex.html" title="Python Module Index" |
---|
| 139 | >modules</a> |</li> |
---|
| 140 | <li class="right" > |
---|
| 141 | <a href="ModelIO.html" title="ModelIO" |
---|
| 142 | >next</a> |</li> |
---|
| 143 | <li class="right" > |
---|
| 144 | <a href="ModelAdaptor.html" title="ModelAdaptor" |
---|
| 145 | >previous</a> |</li> |
---|
| 146 | <li><a href="../index.html">sansmodels v0.1.0 documentation</a> »</li> |
---|
| 147 | <li><a href="index.html" >Reference</a> »</li> |
---|
| 148 | </ul> |
---|
| 149 | </div> |
---|
| 150 | <div class="footer"> |
---|
| 151 | © Copyright 2010, sans group. |
---|
| 152 | Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.0.7. |
---|
| 153 | </div> |
---|
| 154 | </body> |
---|
| 155 | </html> |
---|