libcellml 0.6.2__cp313-cp313-win_amd64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. libcellml/__init__.py +393 -0
  2. libcellml/_analyser.pyd +0 -0
  3. libcellml/_analyserequation.pyd +0 -0
  4. libcellml/_analyserequationast.pyd +0 -0
  5. libcellml/_analyserexternalvariable.pyd +0 -0
  6. libcellml/_analysermodel.pyd +0 -0
  7. libcellml/_analyservariable.pyd +0 -0
  8. libcellml/_annotator.pyd +0 -0
  9. libcellml/_component.pyd +0 -0
  10. libcellml/_componententity.pyd +0 -0
  11. libcellml/_entity.pyd +0 -0
  12. libcellml/_enums.pyd +0 -0
  13. libcellml/_generator.pyd +0 -0
  14. libcellml/_generatorprofile.pyd +0 -0
  15. libcellml/_importedentity.pyd +0 -0
  16. libcellml/_importer.pyd +0 -0
  17. libcellml/_importsource.pyd +0 -0
  18. libcellml/_issue.pyd +0 -0
  19. libcellml/_logger.pyd +0 -0
  20. libcellml/_model.pyd +0 -0
  21. libcellml/_namedentity.pyd +0 -0
  22. libcellml/_parentedentity.pyd +0 -0
  23. libcellml/_parser.pyd +0 -0
  24. libcellml/_printer.pyd +0 -0
  25. libcellml/_reset.pyd +0 -0
  26. libcellml/_strict.pyd +0 -0
  27. libcellml/_types.pyd +0 -0
  28. libcellml/_units.pyd +0 -0
  29. libcellml/_validator.pyd +0 -0
  30. libcellml/_variable.pyd +0 -0
  31. libcellml/_version.pyd +0 -0
  32. libcellml/analyser.py +119 -0
  33. libcellml/analyserequation.py +311 -0
  34. libcellml/analyserequationast.py +204 -0
  35. libcellml/analyserexternalvariable.py +283 -0
  36. libcellml/analysermodel.py +519 -0
  37. libcellml/analyservariable.py +122 -0
  38. libcellml/annotator.py +188 -0
  39. libcellml/component.py +228 -0
  40. libcellml/componententity.py +180 -0
  41. libcellml/entity.py +95 -0
  42. libcellml/enums.py +93 -0
  43. libcellml/generator.py +113 -0
  44. libcellml/generatorprofile.py +1445 -0
  45. libcellml/importedentity.py +106 -0
  46. libcellml/importer.py +185 -0
  47. libcellml/importsource.py +114 -0
  48. libcellml/issue.py +243 -0
  49. libcellml/libcellml.dll +0 -0
  50. libcellml/logger.py +170 -0
  51. libcellml/model.py +232 -0
  52. libcellml/namedentity.py +91 -0
  53. libcellml/parentedentity.py +88 -0
  54. libcellml/parser.py +83 -0
  55. libcellml/printer.py +82 -0
  56. libcellml/reset.py +171 -0
  57. libcellml/strict.py +85 -0
  58. libcellml/types.py +253 -0
  59. libcellml/units.py +254 -0
  60. libcellml/validator.py +85 -0
  61. libcellml/variable.py +277 -0
  62. libcellml/version.py +78 -0
  63. libcellml-0.6.2.dist-info/METADATA +25 -0
  64. libcellml-0.6.2.dist-info/RECORD +66 -0
  65. libcellml-0.6.2.dist-info/WHEEL +5 -0
  66. libcellml-0.6.2.dist-info/top_level.txt +1 -0
libcellml/__init__.py ADDED
@@ -0,0 +1,393 @@
1
+ """
2
+ Python bindings for libCellML
3
+
4
+ The purpose of libCellML is to create, manipulate, serialise, deserialise,
5
+ validate and instantiate CellML models. In the first instance, all serialising
6
+ and deserialising will be to and from standard strings and using the CellML
7
+ XML format.
8
+ """
9
+
10
+ import libcellml
11
+
12
+ from libcellml.analyser import Analyser
13
+ from libcellml.analyserequation import AnalyserEquation
14
+ from libcellml.analyserequationast import AnalyserEquationAst
15
+ from libcellml.analyserexternalvariable import AnalyserExternalVariable
16
+ from libcellml.analysermodel import AnalyserModel
17
+ from libcellml.analyservariable import AnalyserVariable
18
+ from libcellml.annotator import Annotator
19
+ from libcellml.component import Component
20
+ from libcellml.enums import CellmlElementType, cellmlElementTypeAsString
21
+ from libcellml.generator import Generator
22
+ from libcellml.generatorprofile import GeneratorProfile
23
+ from libcellml.importer import Importer
24
+ from libcellml.importsource import ImportSource
25
+ from libcellml.issue import Issue
26
+ from libcellml.model import Model
27
+ from libcellml.parser import Parser
28
+ from libcellml.printer import Printer
29
+ from libcellml.reset import Reset
30
+ from libcellml.types import UnitsItem, VariablePair, AnyCellmlElement
31
+ from libcellml.units import Units
32
+ from libcellml.validator import Validator
33
+ from libcellml.variable import Variable
34
+ from libcellml.version import version, versionString
35
+
36
+
37
+ # Convert enumerations generated by SWIG
38
+
39
+ def convert(base, enum, variables, new_base=None):
40
+ converting = False
41
+
42
+ class Object:
43
+ pass
44
+
45
+ obj = Object()
46
+ for var in variables:
47
+ if hasattr(base, enum + '_' + var):
48
+ # Swig 3.0.3 and higher
49
+ setattr(obj, var, getattr(base, enum + '_' + var))
50
+ delattr(base, enum + '_' + var)
51
+ converting = True
52
+
53
+ if converting:
54
+ setattr(base if new_base is None else new_base, enum, obj)
55
+
56
+
57
+ convert(AnalyserEquation, 'Type', [
58
+ 'TRUE_CONSTANT',
59
+ 'VARIABLE_BASED_CONSTANT',
60
+ 'ODE',
61
+ 'NLA',
62
+ 'ALGEBRAIC',
63
+ 'EXTERNAL',
64
+ ])
65
+ convert(AnalyserEquationAst, 'Type', [
66
+ 'EQUALITY',
67
+
68
+ # Relational and logical operators.
69
+
70
+ 'EQ',
71
+ 'NEQ',
72
+ 'LT',
73
+ 'LEQ',
74
+ 'GT',
75
+ 'GEQ',
76
+ 'AND',
77
+ 'OR',
78
+ 'XOR',
79
+ 'NOT',
80
+
81
+ # Arithmetic operators.
82
+
83
+ 'PLUS',
84
+ 'MINUS',
85
+ 'TIMES',
86
+ 'DIVIDE',
87
+ 'POWER',
88
+ 'ROOT',
89
+ 'ABS',
90
+ 'EXP',
91
+ 'LN',
92
+ 'LOG',
93
+ 'CEILING',
94
+ 'FLOOR',
95
+ 'MIN',
96
+ 'MAX',
97
+ 'REM',
98
+
99
+ # Calculus elements.
100
+
101
+ 'DIFF',
102
+
103
+ # Trigonometric operators.
104
+
105
+ 'SIN',
106
+ 'COS',
107
+ 'TAN',
108
+ 'SEC',
109
+ 'CSC',
110
+ 'COT',
111
+ 'SINH',
112
+ 'COSH',
113
+ 'TANH',
114
+ 'SECH',
115
+ 'CSCH',
116
+ 'COTH',
117
+ 'ASIN',
118
+ 'ACOS',
119
+ 'ATAN',
120
+ 'ASEC',
121
+ 'ACSC',
122
+ 'ACOT',
123
+ 'ASINH',
124
+ 'ACOSH',
125
+ 'ATANH',
126
+ 'ASECH',
127
+ 'ACSCH',
128
+ 'ACOTH',
129
+
130
+ # Piecewise statement.
131
+
132
+ 'PIECEWISE',
133
+ 'PIECE',
134
+ 'OTHERWISE',
135
+
136
+ # Token elements.
137
+
138
+ 'CI',
139
+ 'CN',
140
+
141
+ # Qualifier elements.
142
+
143
+ 'DEGREE',
144
+ 'LOGBASE',
145
+ 'BVAR',
146
+
147
+ # Constants.
148
+
149
+ 'TRUE',
150
+ 'FALSE',
151
+ 'E',
152
+ 'PI',
153
+ 'INF',
154
+ 'NAN',
155
+ ])
156
+ convert(AnalyserModel, 'Type', [
157
+ 'UNKNOWN',
158
+ 'ODE',
159
+ 'DAE',
160
+ 'NLA',
161
+ 'ALGEBRAIC',
162
+ 'INVALID',
163
+ 'UNDERCONSTRAINED',
164
+ 'OVERCONSTRAINED',
165
+ 'UNSUITABLY_CONSTRAINED',
166
+ ])
167
+ convert(AnalyserVariable, 'Type', [
168
+ 'VARIABLE_OF_INTEGRATION',
169
+ 'STATE',
170
+ 'CONSTANT',
171
+ 'COMPUTED_CONSTANT',
172
+ 'ALGEBRAIC',
173
+ 'EXTERNAL',
174
+ ])
175
+ convert(GeneratorProfile, 'Profile', [
176
+ 'C',
177
+ 'PYTHON',
178
+ ])
179
+ convert(Issue, 'Cause', [
180
+ 'COMPONENT',
181
+ 'CONNECTION',
182
+ 'ENCAPSULATION',
183
+ 'IMPORT',
184
+ 'MATHML',
185
+ 'MODEL',
186
+ 'RESET',
187
+ 'UNDEFINED',
188
+ 'UNITS',
189
+ 'VARIABLE',
190
+ 'XML',
191
+ ])
192
+ convert(Issue, 'Level', [
193
+ 'ERROR',
194
+ 'WARNING',
195
+ 'HINT',
196
+ 'MESSAGE',
197
+ ])
198
+ convert(Issue, 'ReferenceRule', [
199
+ 'UNDEFINED',
200
+ 'XML_UNEXPECTED_ELEMENT',
201
+ 'XML_UNEXPECTED_CHARACTER',
202
+ 'XML_UNEXPECTED_NAMESPACE',
203
+ 'XML_ATTRIBUTE_HAS_NAMESPACE',
204
+ 'XML_ID_ATTRIBUTE',
205
+ 'MODEL_ELEMENT',
206
+ 'MODEL_NAME',
207
+ 'MODEL_NAME_VALUE',
208
+ 'MODEL_CHILD',
209
+ 'MODEL_MORE_THAN_ONE_ENCAPSULATION',
210
+ 'IMPORT_ELEMENT',
211
+ 'IMPORT_HREF',
212
+ 'IMPORT_HREF_LOCATOR',
213
+ 'IMPORT_CHILD',
214
+ 'IMPORT_EQUIVALENT_INFOSET',
215
+ 'IMPORT_UNITS_ELEMENT',
216
+ 'IMPORT_UNITS_NAME',
217
+ 'IMPORT_UNITS_NAME_VALUE',
218
+ 'IMPORT_UNITS_NAME_UNIQUE',
219
+ 'IMPORT_UNITS_UNITS_REFERENCE',
220
+ 'IMPORT_UNITS_UNITS_REFERENCE_VALUE',
221
+ 'IMPORT_UNITS_UNITS_REFERENCE_VALUE_TARGET',
222
+ 'IMPORT_COMPONENT_ELEMENT',
223
+ 'IMPORT_COMPONENT_NAME',
224
+ 'IMPORT_COMPONENT_NAME_VALUE',
225
+ 'IMPORT_COMPONENT_NAME_UNIQUE',
226
+ 'IMPORT_COMPONENT_COMPONENT_REFERENCE',
227
+ 'IMPORT_COMPONENT_COMPONENT_REFERENCE_VALUE',
228
+ 'IMPORT_COMPONENT_COMPONENT_REFERENCE_TARGET',
229
+ 'UNITS_ELEMENT',
230
+ 'UNITS_NAME',
231
+ 'UNITS_NAME_VALUE',
232
+ 'UNITS_NAME_UNIQUE',
233
+ 'UNITS_STANDARD',
234
+ 'UNITS_CHILD',
235
+ 'UNIT_ELEMENT',
236
+ 'UNIT_UNITS',
237
+ 'UNIT_UNITS_REFERENCE',
238
+ 'UNIT_UNITS_CIRCULAR_REFERENCE',
239
+ 'UNIT_ATTRIBUTE_OPTIONAL',
240
+ 'UNIT_ATTRIBUTE_PREFIX_VALUE',
241
+ 'UNIT_ATTRIBUTE_MULTIPLIER_VALUE',
242
+ 'UNIT_ATTRIBUTE_EXPONENT_VALUE',
243
+ 'COMPONENT_ELEMENT',
244
+ 'COMPONENT_NAME',
245
+ 'COMPONENT_NAME_VALUE',
246
+ 'COMPONENT_NAME_UNIQUE',
247
+ 'COMPONENT_CHILD',
248
+ 'VARIABLE_ELEMENT',
249
+ 'VARIABLE_ATTRIBUTE_REQUIRED',
250
+ 'VARIABLE_NAME_VALUE',
251
+ 'VARIABLE_NAME_UNIQUE',
252
+ 'VARIABLE_UNITS_VALUE',
253
+ 'VARIABLE_ATTRIBUTE_OPTIONAL',
254
+ 'VARIABLE_INTERFACE_VALUE',
255
+ 'VARIABLE_INITIAL_VALUE_VALUE',
256
+ 'RESET_ELEMENT',
257
+ 'RESET_ATTRIBUTE_REQUIRED',
258
+ 'RESET_VARIABLE_REFERENCE',
259
+ 'RESET_TEST_VARIABLE_REFERENCE',
260
+ 'RESET_ORDER_VALUE',
261
+ 'RESET_ORDER_UNIQUE',
262
+ 'RESET_CHILD',
263
+ 'RESET_RESET_VALUE_CHILD',
264
+ 'RESET_TEST_VALUE_CHILD',
265
+ 'TEST_VALUE_ELEMENT',
266
+ 'TEST_VALUE_CHILD',
267
+ 'RESET_VALUE_ELEMENT',
268
+ 'RESET_VALUE_CHILD',
269
+ 'MATH_ELEMENT',
270
+ 'MATH_MATHML',
271
+ 'MATH_CHILD',
272
+ 'MATH_CI_VARIABLE_REFERENCE',
273
+ 'MATH_CN_UNITS_ATTRIBUTE',
274
+ 'MATH_CN_UNITS_ATTRIBUTE_REFERENCE',
275
+ 'MATH_CN_BASE10',
276
+ 'MATH_CN_FORMAT',
277
+ 'ENCAPSULATION_ELEMENT',
278
+ 'ENCAPSULATION_CHILD',
279
+ 'COMPONENT_REF_ELEMENT',
280
+ 'COMPONENT_REF_COMPONENT_ATTRIBUTE',
281
+ 'COMPONENT_REF_COMPONENT_ATTRIBUTE_REFERENCE',
282
+ 'COMPONENT_REF_COMPONENT_ATTRIBUTE_UNIQUE',
283
+ 'COMPONENT_REF_CHILD',
284
+ 'CONNECTION_ELEMENT',
285
+ 'CONNECTION_COMPONENT1_ATTRIBUTE',
286
+ 'CONNECTION_COMPONENT1_ATTRIBUTE_REFERENCE',
287
+ 'CONNECTION_COMPONENT2_ATTRIBUTE',
288
+ 'CONNECTION_COMPONENT2_ATTRIBUTE_REFERENCE',
289
+ 'CONNECTION_EXCLUDE_SELF',
290
+ 'CONNECTION_UNIQUE',
291
+ 'CONNECTION_CHILD',
292
+ 'MAP_VARIABLES_ELEMENT',
293
+ 'MAP_VARIABLES_VARIABLE1_ATTRIBUTE',
294
+ 'MAP_VARIABLES_VARIABLE1_ATTRIBUTE_REFERENCE',
295
+ 'MAP_VARIABLES_VARIABLE2_ATTRIBUTE',
296
+ 'MAP_VARIABLES_VARIABLE2_ATTRIBUTE_REFERENCE',
297
+ 'MAP_VARIABLES_UNIQUE',
298
+ 'DATA_REPR_IDENTIFIER_AT_LEAST_ONE_ALPHANUM',
299
+ 'DATA_REPR_IDENTIFIER_BEGIN_EURO_NUM',
300
+ 'DATA_REPR_IDENTIFIER_LATIN_ALPHANUM',
301
+ 'INVALID_ARGUMENT',
302
+ 'IMPORTER_ERROR_IMPORTING_UNITS',
303
+ 'IMPORTER_MISSING_FILE',
304
+ 'IMPORTER_MISSING_COMPONENT',
305
+ 'IMPORTER_MISSING_UNITS',
306
+ 'IMPORTER_NULL_MODEL',
307
+ 'IMPORTER_UNDEFINED_MODEL',
308
+ 'IMPORTER_UNRESOLVED_IMPORTS',
309
+ 'ANALYSER_EQUATION_NOT_EQUALITY_STATEMENT',
310
+ 'ANALYSER_UNITS',
311
+ 'ANALYSER_UNLINKED_UNITS',
312
+ 'ANALYSER_VARIABLE_INITIALISED_MORE_THAN_ONCE',
313
+ 'ANALYSER_VARIABLE_NON_CONSTANT_INITIALISATION',
314
+ 'ANALYSER_VOI_INITIALISED',
315
+ 'ANALYSER_VOI_SEVERAL',
316
+ 'ANALYSER_ODE_NOT_FIRST_ORDER',
317
+ 'ANALYSER_VARIABLE_UNUSED',
318
+ 'ANALYSER_STATE_NOT_INITIALISED',
319
+ 'ANALYSER_STATE_RATE_AS_ALGEBRAIC',
320
+ 'ANALYSER_VARIABLE_COMPUTED_MORE_THAN_ONCE',
321
+ 'ANALYSER_EXTERNAL_VARIABLE_DIFFERENT_MODEL',
322
+ 'ANALYSER_EXTERNAL_VARIABLE_VOI',
323
+ 'ANALYSER_EXTERNAL_VARIABLE_USE_PRIMARY_VARIABLE',
324
+ 'ANNOTATOR_ID_NOT_FOUND',
325
+ 'ANNOTATOR_ID_NOT_UNIQUE',
326
+ 'ANNOTATOR_NO_MODEL',
327
+ 'ANNOTATOR_INCONSISTENT_TYPE',
328
+ 'ANNOTATOR_NULL_MODEL',
329
+ 'UNSPECIFIED'
330
+ ])
331
+ convert(Units, 'Prefix', [
332
+ 'YOTTA',
333
+ 'ZETTA',
334
+ 'EXA',
335
+ 'PETA',
336
+ 'TERA',
337
+ 'GIGA',
338
+ 'MEGA',
339
+ 'KILO',
340
+ 'HECTO',
341
+ 'DECA',
342
+ 'DECI',
343
+ 'CENTI',
344
+ 'MILLI',
345
+ 'MICRO',
346
+ 'NANO',
347
+ 'PICO',
348
+ 'FEMTO',
349
+ 'ATTO',
350
+ 'ZEPTO',
351
+ 'YOCTO',
352
+ ], new_base=Units)
353
+ convert(Units, 'StandardUnit', [
354
+ 'AMPERE',
355
+ 'BECQUEREL',
356
+ 'CANDELA',
357
+ 'COULOMB',
358
+ 'DIMENSIONLESS',
359
+ 'FARAD',
360
+ 'GRAM',
361
+ 'GRAY',
362
+ 'HENRY',
363
+ 'HERTZ',
364
+ 'JOULE',
365
+ 'KATAL',
366
+ 'KELVIN',
367
+ 'KILOGRAM',
368
+ 'LITRE',
369
+ 'LUMEN',
370
+ 'LUX',
371
+ 'METRE',
372
+ 'MOLE',
373
+ 'NEWTON',
374
+ 'OHM',
375
+ 'PASCAL',
376
+ 'RADIAN',
377
+ 'SECOND',
378
+ 'SIEMENS',
379
+ 'SIEVERT',
380
+ 'STERADIAN',
381
+ 'TESLA',
382
+ 'VOLT',
383
+ 'WATT',
384
+ 'WEBER',
385
+ ])
386
+ convert(Variable, 'InterfaceType', [
387
+ 'NONE',
388
+ 'PRIVATE',
389
+ 'PUBLIC',
390
+ 'PUBLIC_AND_PRIVATE',
391
+ ])
392
+
393
+ del [convert, libcellml]
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
libcellml/_entity.pyd ADDED
Binary file
libcellml/_enums.pyd ADDED
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
libcellml/_issue.pyd ADDED
Binary file
libcellml/_logger.pyd ADDED
Binary file
libcellml/_model.pyd ADDED
Binary file
Binary file
Binary file
libcellml/_parser.pyd ADDED
Binary file
libcellml/_printer.pyd ADDED
Binary file
libcellml/_reset.pyd ADDED
Binary file
libcellml/_strict.pyd ADDED
Binary file
libcellml/_types.pyd ADDED
Binary file
libcellml/_units.pyd ADDED
Binary file
Binary file
Binary file
libcellml/_version.pyd ADDED
Binary file
libcellml/analyser.py ADDED
@@ -0,0 +1,119 @@
1
+ # This file was automatically generated by SWIG (https://www.swig.org).
2
+ # Version 4.1.1
3
+ #
4
+ # Do not make changes to this file unless you know what you are doing - modify
5
+ # the SWIG interface file instead.
6
+
7
+ from sys import version_info as _swig_python_version_info
8
+ # Import the low-level C/C++ module
9
+ if __package__ or "." in __name__:
10
+ from . import _analyser
11
+ else:
12
+ import _analyser
13
+
14
+ try:
15
+ import builtins as __builtin__
16
+ except ImportError:
17
+ import __builtin__
18
+
19
+ def _swig_repr(self):
20
+ try:
21
+ strthis = "proxy of " + self.this.__repr__()
22
+ except __builtin__.Exception:
23
+ strthis = ""
24
+ return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
25
+
26
+
27
+ def _swig_setattr_nondynamic_instance_variable(set):
28
+ def set_instance_attr(self, name, value):
29
+ if name == "this":
30
+ set(self, name, value)
31
+ elif name == "thisown":
32
+ self.this.own(value)
33
+ elif hasattr(self, name) and isinstance(getattr(type(self), name), property):
34
+ set(self, name, value)
35
+ else:
36
+ raise AttributeError("You cannot add instance attributes to %s" % self)
37
+ return set_instance_attr
38
+
39
+
40
+ def _swig_setattr_nondynamic_class_variable(set):
41
+ def set_class_attr(cls, name, value):
42
+ if hasattr(cls, name) and not isinstance(getattr(cls, name), property):
43
+ set(cls, name, value)
44
+ else:
45
+ raise AttributeError("You cannot add class attributes to %s" % cls)
46
+ return set_class_attr
47
+
48
+
49
+ def _swig_add_metaclass(metaclass):
50
+ """Class decorator for adding a metaclass to a SWIG wrapped class - a slimmed down version of six.add_metaclass"""
51
+ def wrapper(cls):
52
+ return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy())
53
+ return wrapper
54
+
55
+
56
+ class _SwigNonDynamicMeta(type):
57
+ """Meta class to enforce nondynamic attributes (no new attributes) for a class"""
58
+ __setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__)
59
+
60
+
61
+ import libcellml.logger
62
+ import libcellml.types
63
+
64
+ # libCellML generated wrapper code starts here.
65
+
66
+ class Analyser(libcellml.logger.Logger):
67
+ r"""Creates an :class:`Analyser` object."""
68
+
69
+ thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
70
+ __repr__ = _swig_repr
71
+ __swig_destroy__ = _analyser.delete_Analyser
72
+
73
+ def analyseModel(self, model):
74
+ r"""Analyses the model to determine whether it can be used for simulation purposes."""
75
+ return _analyser.Analyser_analyseModel(self, model)
76
+
77
+ def addExternalVariable(self, externalVariable):
78
+ r"""Adds a variable as an external variable to this analyser."""
79
+ return _analyser.Analyser_addExternalVariable(self, externalVariable)
80
+
81
+ def removeExternalVariable(self, *args):
82
+ r"""
83
+ Removes an external variable specified by 1) an index, 2) a :class:`Model` object, component name and variable
84
+ name, or 3) a :class:`Variable` object. Returns `True` on success.
85
+ """
86
+ return _analyser.Analyser_removeExternalVariable(self, *args)
87
+
88
+ def removeAllExternalVariables(self):
89
+ r"""Removes all external variables from this analyser."""
90
+ return _analyser.Analyser_removeAllExternalVariables(self)
91
+
92
+ def containsExternalVariable(self, *args):
93
+ r"""
94
+ Tests if an external variable, specified by 1) a :class:`Model` object, component name and variable name, or 2)
95
+ an :class:`AnalyserExternalVariable` object, is contained within this analyser.
96
+ """
97
+ return _analyser.Analyser_containsExternalVariable(self, *args)
98
+
99
+ def externalVariable(self, *args):
100
+ r"""
101
+ Returns the external variable, specified by 1) an index, or 2) a :class:`Model` object, component name and
102
+ variable name.
103
+ """
104
+ return _analyser.Analyser_externalVariable(self, *args)
105
+
106
+ def externalVariableCount(self):
107
+ r"""Returns the number of external variables this analyser contains."""
108
+ return _analyser.Analyser_externalVariableCount(self)
109
+
110
+ def model(self):
111
+ r"""Returns the :class:`AnalysedModel` object which results from the analysis of a model."""
112
+ return _analyser.Analyser_model(self)
113
+
114
+ def __init__(self):
115
+ _analyser.Analyser_swiginit(self, _analyser.new_Analyser())
116
+
117
+ # Register Analyser in _analyser:
118
+ _analyser.Analyser_swigregister(Analyser)
119
+