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"><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>Returns a list of all available models |
---|
73 | @return: python list object</dd></dl> |
---|
74 | |
---|
75 | <dl class="method"> |
---|
76 | <dt id="sans.models.ModelFactory.ModelFactory.getModel"> |
---|
77 | <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> |
---|
78 | <dd>Returns the model if found |
---|
79 | @param name: name of the model to look for |
---|
80 | @return: the model object</dd></dl> |
---|
81 | |
---|
82 | </dd></dl> |
---|
83 | |
---|
84 | </div> |
---|
85 | </div> |
---|
86 | |
---|
87 | |
---|
88 | </div> |
---|
89 | </div> |
---|
90 | </div> |
---|
91 | <div class="sphinxsidebar"> |
---|
92 | <div class="sphinxsidebarwrapper"> |
---|
93 | <h3><a href="../index.html">Table Of Contents</a></h3> |
---|
94 | <ul> |
---|
95 | <li><a class="reference internal" href="#">ModelFactory</a><ul> |
---|
96 | <li><a class="reference internal" href="#module-sans.models.ModelFactory"><tt class="docutils literal"><span class="pre">sans.models.ModelFactory</span></tt></a></li> |
---|
97 | </ul> |
---|
98 | </li> |
---|
99 | </ul> |
---|
100 | |
---|
101 | <h4>Previous topic</h4> |
---|
102 | <p class="topless"><a href="ModelAdaptor.html" |
---|
103 | title="previous chapter">ModelAdaptor</a></p> |
---|
104 | <h4>Next topic</h4> |
---|
105 | <p class="topless"><a href="ModelIO.html" |
---|
106 | title="next chapter">ModelIO</a></p> |
---|
107 | <h3>This Page</h3> |
---|
108 | <ul class="this-page-menu"> |
---|
109 | <li><a href="../_sources/api/ModelFactory.txt" |
---|
110 | rel="nofollow">Show Source</a></li> |
---|
111 | </ul> |
---|
112 | <div id="searchbox" style="display: none"> |
---|
113 | <h3>Quick search</h3> |
---|
114 | <form class="search" action="../search.html" method="get"> |
---|
115 | <input type="text" name="q" size="18" /> |
---|
116 | <input type="submit" value="Go" /> |
---|
117 | <input type="hidden" name="check_keywords" value="yes" /> |
---|
118 | <input type="hidden" name="area" value="default" /> |
---|
119 | </form> |
---|
120 | <p class="searchtip" style="font-size: 90%"> |
---|
121 | Enter search terms or a module, class or function name. |
---|
122 | </p> |
---|
123 | </div> |
---|
124 | <script type="text/javascript">$('#searchbox').show(0);</script> |
---|
125 | </div> |
---|
126 | </div> |
---|
127 | <div class="clearer"></div> |
---|
128 | </div> |
---|
129 | <div class="related"> |
---|
130 | <h3>Navigation</h3> |
---|
131 | <ul> |
---|
132 | <li class="right" style="margin-right: 10px"> |
---|
133 | <a href="../genindex.html" title="General Index" |
---|
134 | >index</a></li> |
---|
135 | <li class="right" > |
---|
136 | <a href="../py-modindex.html" title="Python Module Index" |
---|
137 | >modules</a> |</li> |
---|
138 | <li class="right" > |
---|
139 | <a href="ModelIO.html" title="ModelIO" |
---|
140 | >next</a> |</li> |
---|
141 | <li class="right" > |
---|
142 | <a href="ModelAdaptor.html" title="ModelAdaptor" |
---|
143 | >previous</a> |</li> |
---|
144 | <li><a href="../index.html">sansmodels v0.1.0 documentation</a> »</li> |
---|
145 | <li><a href="index.html" >Reference</a> »</li> |
---|
146 | </ul> |
---|
147 | </div> |
---|
148 | <div class="footer"> |
---|
149 | © Copyright 2010, sans group. |
---|
150 | Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.0b1. |
---|
151 | </div> |
---|
152 | </body> |
---|
153 | </html> |
---|