|
1
|
|
|
# ore/models/xml_backend.py |
|
2
|
|
|
# -*- coding: utf-8 -*- |
|
3
|
|
|
# PyXB bindings for NM:05ee920a1d4f1202361106450bf13e4b20aed253 |
|
4
|
|
|
# Generated 2019-01-09 14:06:28.496310 by PyXB version 1.2.6 using Python 2.7.15.candidate.1 |
|
5
|
|
|
# Namespace http://www.fuzzed.org/backendResults |
|
6
|
|
|
|
|
7
|
|
|
from __future__ import unicode_literals |
|
8
|
|
|
import pyxb |
|
9
|
|
|
import pyxb.binding |
|
10
|
|
|
import pyxb.binding.saxer |
|
11
|
|
|
import io |
|
12
|
|
|
import pyxb.utils.utility |
|
13
|
|
|
import pyxb.utils.domutils |
|
14
|
|
|
import sys |
|
15
|
|
|
import pyxb.utils.six as _six |
|
16
|
|
|
# Unique identifier for bindings created at the same time |
|
17
|
|
|
_GenerationUID = pyxb.utils.utility.UniqueIdentifier('urn:uuid:c1f84e9a-1417-11e9-9981-0242c0a83004') |
|
18
|
|
|
|
|
19
|
|
|
# Version of PyXB used to generate the bindings |
|
20
|
|
|
_PyXBVersion = '1.2.6' |
|
21
|
|
|
# Generated bindings are not compatible across PyXB versions |
|
22
|
|
|
if pyxb.__version__ != _PyXBVersion: |
|
23
|
|
|
raise pyxb.PyXBVersionError(_PyXBVersion) |
|
24
|
|
|
|
|
25
|
|
|
# A holder for module-level binding classes so we can access them from |
|
26
|
|
|
# inside class definitions where property names may conflict. |
|
27
|
|
|
_module_typeBindings = pyxb.utils.utility.Object() |
|
28
|
|
|
|
|
29
|
|
|
# Import bindings for namespaces imported into schema |
|
30
|
|
|
import pyxb.binding.datatypes |
|
31
|
|
|
import xml_configurations as _ImportedBinding_xml_configurations |
|
32
|
|
|
import xml_common as _ImportedBinding_xml_common |
|
33
|
|
|
|
|
34
|
|
|
# NOTE: All namespace declarations are reserved within the binding |
|
35
|
|
|
Namespace = pyxb.namespace.NamespaceForURI('http://www.fuzzed.org/backendResults', create_if_missing=True) |
|
36
|
|
|
Namespace.configureCategories(['typeBinding', 'elementBinding']) |
|
37
|
|
|
|
|
38
|
|
|
def CreateFromDocument (xml_text, default_namespace=None, location_base=None): |
|
39
|
|
|
"""Parse the given XML and use the document element to create a |
|
40
|
|
|
Python instance. |
|
41
|
|
|
|
|
42
|
|
|
@param xml_text An XML document. This should be data (Python 2 |
|
43
|
|
|
str or Python 3 bytes), or a text (Python 2 unicode or Python 3 |
|
44
|
|
|
str) in the L{pyxb._InputEncoding} encoding. |
|
45
|
|
|
|
|
46
|
|
|
@keyword default_namespace The L{pyxb.Namespace} instance to use as the |
|
47
|
|
|
default namespace where there is no default namespace in scope. |
|
48
|
|
|
If unspecified or C{None}, the namespace of the module containing |
|
49
|
|
|
this function will be used. |
|
50
|
|
|
|
|
51
|
|
|
@keyword location_base: An object to be recorded as the base of all |
|
52
|
|
|
L{pyxb.utils.utility.Location} instances associated with events and |
|
53
|
|
|
objects handled by the parser. You might pass the URI from which |
|
54
|
|
|
the document was obtained. |
|
55
|
|
|
""" |
|
56
|
|
|
|
|
57
|
|
|
if pyxb.XMLStyle_saxer != pyxb._XMLStyle: |
|
58
|
|
|
dom = pyxb.utils.domutils.StringToDOM(xml_text) |
|
59
|
|
|
return CreateFromDOM(dom.documentElement, default_namespace=default_namespace) |
|
60
|
|
|
if default_namespace is None: |
|
61
|
|
|
default_namespace = Namespace.fallbackNamespace() |
|
62
|
|
|
saxer = pyxb.binding.saxer.make_parser(fallback_namespace=default_namespace, location_base=location_base) |
|
63
|
|
|
handler = saxer.getContentHandler() |
|
64
|
|
|
xmld = xml_text |
|
65
|
|
|
if isinstance(xmld, _six.text_type): |
|
66
|
|
|
xmld = xmld.encode(pyxb._InputEncoding) |
|
67
|
|
|
saxer.parse(io.BytesIO(xmld)) |
|
68
|
|
|
instance = handler.rootObject() |
|
69
|
|
|
return instance |
|
70
|
|
|
|
|
71
|
|
|
def CreateFromDOM (node, default_namespace=None): |
|
72
|
|
|
"""Create a Python instance from the given DOM node. |
|
73
|
|
|
The node tag must correspond to an element declaration in this module. |
|
74
|
|
|
|
|
75
|
|
|
@deprecated: Forcing use of DOM interface is unnecessary; use L{CreateFromDocument}.""" |
|
76
|
|
|
if default_namespace is None: |
|
77
|
|
|
default_namespace = Namespace.fallbackNamespace() |
|
78
|
|
|
return pyxb.binding.basis.element.AnyCreateFromDOM(node, default_namespace) |
|
79
|
|
|
|
|
80
|
|
|
|
|
81
|
|
|
# Complex type {http://www.fuzzed.org/backendResults}Result with content type ELEMENT_ONLY |
|
82
|
|
|
class Result (pyxb.binding.basis.complexTypeDefinition): |
|
83
|
|
|
"""Complex type {http://www.fuzzed.org/backendResults}Result with content type ELEMENT_ONLY""" |
|
84
|
|
|
_TypeDefinition = None |
|
85
|
|
|
_ContentTypeTag = pyxb.binding.basis.complexTypeDefinition._CT_ELEMENT_ONLY |
|
86
|
|
|
_Abstract = True |
|
87
|
|
|
_ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'Result') |
|
88
|
|
|
_XSDLocation = pyxb.utils.utility.Location('/ore-common/xsd/backendResult.xsd', 15, 2) |
|
89
|
|
|
_ElementMap = {} |
|
90
|
|
|
_AttributeMap = {} |
|
91
|
|
|
# Base type is pyxb.binding.datatypes.anyType |
|
92
|
|
|
|
|
93
|
|
|
# Element issue uses Python identifier issue |
|
94
|
|
|
__issue = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(None, 'issue'), 'issue', '__httpwww_fuzzed_orgbackendResults_Result_issue', True, pyxb.utils.utility.Location('/ore-common/xsd/backendResult.xsd', 17, 6), ) |
|
95
|
|
|
|
|
96
|
|
|
|
|
97
|
|
|
issue = property(__issue.value, __issue.set, None, None) |
|
98
|
|
|
|
|
99
|
|
|
|
|
100
|
|
|
# Attribute id uses Python identifier id |
|
101
|
|
|
__id = pyxb.binding.content.AttributeUse(pyxb.namespace.ExpandedName(None, 'id'), 'id', '__httpwww_fuzzed_orgbackendResults_Result_id', pyxb.binding.datatypes.string) |
|
102
|
|
|
__id._DeclarationLocation = pyxb.utils.utility.Location('/ore-common/xsd/backendResult.xsd', 19, 4) |
|
103
|
|
|
__id._UseLocation = pyxb.utils.utility.Location('/ore-common/xsd/backendResult.xsd', 19, 4) |
|
104
|
|
|
|
|
105
|
|
|
id = property(__id.value, __id.set, None, None) |
|
106
|
|
|
|
|
107
|
|
|
|
|
108
|
|
|
# Attribute modelId uses Python identifier modelId |
|
109
|
|
|
__modelId = pyxb.binding.content.AttributeUse(pyxb.namespace.ExpandedName(None, 'modelId'), 'modelId', '__httpwww_fuzzed_orgbackendResults_Result_modelId', pyxb.binding.datatypes.string, required=True) |
|
110
|
|
|
__modelId._DeclarationLocation = pyxb.utils.utility.Location('/ore-common/xsd/backendResult.xsd', 20, 4) |
|
111
|
|
|
__modelId._UseLocation = pyxb.utils.utility.Location('/ore-common/xsd/backendResult.xsd', 20, 4) |
|
112
|
|
|
|
|
113
|
|
|
modelId = property(__modelId.value, __modelId.set, None, None) |
|
114
|
|
|
|
|
115
|
|
|
|
|
116
|
|
|
# Attribute configId uses Python identifier configId |
|
117
|
|
|
__configId = pyxb.binding.content.AttributeUse(pyxb.namespace.ExpandedName(None, 'configId'), 'configId', '__httpwww_fuzzed_orgbackendResults_Result_configId', pyxb.binding.datatypes.string, required=True) |
|
118
|
|
|
__configId._DeclarationLocation = pyxb.utils.utility.Location('/ore-common/xsd/backendResult.xsd', 21, 4) |
|
119
|
|
|
__configId._UseLocation = pyxb.utils.utility.Location('/ore-common/xsd/backendResult.xsd', 21, 4) |
|
120
|
|
|
|
|
121
|
|
|
configId = property(__configId.value, __configId.set, None, None) |
|
122
|
|
|
|
|
123
|
|
|
|
|
124
|
|
|
# Attribute timestamp uses Python identifier timestamp |
|
125
|
|
|
__timestamp = pyxb.binding.content.AttributeUse(pyxb.namespace.ExpandedName(None, 'timestamp'), 'timestamp', '__httpwww_fuzzed_orgbackendResults_Result_timestamp', pyxb.binding.datatypes.string, required=True) |
|
126
|
|
|
__timestamp._DeclarationLocation = pyxb.utils.utility.Location('/ore-common/xsd/backendResult.xsd', 22, 4) |
|
127
|
|
|
__timestamp._UseLocation = pyxb.utils.utility.Location('/ore-common/xsd/backendResult.xsd', 22, 4) |
|
128
|
|
|
|
|
129
|
|
|
timestamp = property(__timestamp.value, __timestamp.set, None, None) |
|
130
|
|
|
|
|
131
|
|
|
|
|
132
|
|
|
# Attribute validResult uses Python identifier validResult |
|
133
|
|
|
__validResult = pyxb.binding.content.AttributeUse(pyxb.namespace.ExpandedName(None, 'validResult'), 'validResult', '__httpwww_fuzzed_orgbackendResults_Result_validResult', pyxb.binding.datatypes.boolean, required=True) |
|
134
|
|
|
__validResult._DeclarationLocation = pyxb.utils.utility.Location('/ore-common/xsd/backendResult.xsd', 23, 4) |
|
135
|
|
|
__validResult._UseLocation = pyxb.utils.utility.Location('/ore-common/xsd/backendResult.xsd', 23, 4) |
|
136
|
|
|
|
|
137
|
|
|
validResult = property(__validResult.value, __validResult.set, None, None) |
|
138
|
|
|
|
|
139
|
|
|
_ElementMap.update({ |
|
140
|
|
|
__issue.name() : __issue |
|
141
|
|
|
}) |
|
142
|
|
|
_AttributeMap.update({ |
|
143
|
|
|
__id.name() : __id, |
|
144
|
|
|
__modelId.name() : __modelId, |
|
145
|
|
|
__configId.name() : __configId, |
|
146
|
|
|
__timestamp.name() : __timestamp, |
|
147
|
|
|
__validResult.name() : __validResult |
|
148
|
|
|
}) |
|
149
|
|
|
_module_typeBindings.Result = Result |
|
150
|
|
|
Namespace.addCategoryObject('typeBinding', 'Result', Result) |
|
151
|
|
|
|
|
152
|
|
|
|
|
153
|
|
|
# Complex type [anonymous] with content type ELEMENT_ONLY |
|
154
|
|
|
class CTD_ANON (pyxb.binding.basis.complexTypeDefinition): |
|
155
|
|
|
"""Complex type [anonymous] with content type ELEMENT_ONLY""" |
|
156
|
|
|
_TypeDefinition = None |
|
157
|
|
|
_ContentTypeTag = pyxb.binding.basis.complexTypeDefinition._CT_ELEMENT_ONLY |
|
158
|
|
|
_Abstract = False |
|
159
|
|
|
_ExpandedName = None |
|
160
|
|
|
_XSDLocation = pyxb.utils.utility.Location('/ore-common/xsd/backendResult.xsd', 61, 4) |
|
161
|
|
|
_ElementMap = {} |
|
162
|
|
|
_AttributeMap = {} |
|
163
|
|
|
# Base type is pyxb.binding.datatypes.anyType |
|
164
|
|
|
|
|
165
|
|
|
# Element configuration uses Python identifier configuration |
|
166
|
|
|
__configuration = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(None, 'configuration'), 'configuration', '__httpwww_fuzzed_orgbackendResults_CTD_ANON_configuration', True, pyxb.utils.utility.Location('/ore-common/xsd/backendResult.xsd', 63, 10), ) |
|
167
|
|
|
|
|
168
|
|
|
|
|
169
|
|
|
configuration = property(__configuration.value, __configuration.set, None, None) |
|
170
|
|
|
|
|
171
|
|
|
|
|
172
|
|
|
# Element result uses Python identifier result |
|
173
|
|
|
__result = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(None, 'result'), 'result', '__httpwww_fuzzed_orgbackendResults_CTD_ANON_result', True, pyxb.utils.utility.Location('/ore-common/xsd/backendResult.xsd', 64, 10), ) |
|
174
|
|
|
|
|
175
|
|
|
|
|
176
|
|
|
result = property(__result.value, __result.set, None, None) |
|
177
|
|
|
|
|
178
|
|
|
|
|
179
|
|
|
# Element issue uses Python identifier issue |
|
180
|
|
|
__issue = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(None, 'issue'), 'issue', '__httpwww_fuzzed_orgbackendResults_CTD_ANON_issue', True, pyxb.utils.utility.Location('/ore-common/xsd/backendResult.xsd', 65, 10), ) |
|
181
|
|
|
|
|
182
|
|
|
|
|
183
|
|
|
issue = property(__issue.value, __issue.set, None, None) |
|
184
|
|
|
|
|
185
|
|
|
_ElementMap.update({ |
|
186
|
|
|
__configuration.name() : __configuration, |
|
187
|
|
|
__result.name() : __result, |
|
188
|
|
|
__issue.name() : __issue |
|
189
|
|
|
}) |
|
190
|
|
|
_AttributeMap.update({ |
|
191
|
|
|
|
|
192
|
|
|
}) |
|
193
|
|
|
_module_typeBindings.CTD_ANON = CTD_ANON |
|
194
|
|
|
|
|
195
|
|
|
|
|
196
|
|
|
# Complex type {http://www.fuzzed.org/backendResults}MincutResult with content type ELEMENT_ONLY |
|
197
|
|
|
class MincutResult (Result): |
|
198
|
|
|
"""Complex type {http://www.fuzzed.org/backendResults}MincutResult with content type ELEMENT_ONLY""" |
|
199
|
|
|
_TypeDefinition = None |
|
200
|
|
|
_ContentTypeTag = pyxb.binding.basis.complexTypeDefinition._CT_ELEMENT_ONLY |
|
201
|
|
|
_Abstract = False |
|
202
|
|
|
_ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'MincutResult') |
|
203
|
|
|
_XSDLocation = pyxb.utils.utility.Location('/ore-common/xsd/backendResult.xsd', 26, 2) |
|
204
|
|
|
_ElementMap = Result._ElementMap.copy() |
|
205
|
|
|
_AttributeMap = Result._AttributeMap.copy() |
|
206
|
|
|
# Base type is Result |
|
207
|
|
|
|
|
208
|
|
|
# Element issue (issue) inherited from {http://www.fuzzed.org/backendResults}Result |
|
209
|
|
|
|
|
210
|
|
|
# Element nodeid uses Python identifier nodeid |
|
211
|
|
|
__nodeid = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(None, 'nodeid'), 'nodeid', '__httpwww_fuzzed_orgbackendResults_MincutResult_nodeid', True, pyxb.utils.utility.Location('/ore-common/xsd/backendResult.xsd', 30, 10), ) |
|
212
|
|
|
|
|
213
|
|
|
|
|
214
|
|
|
nodeid = property(__nodeid.value, __nodeid.set, None, None) |
|
215
|
|
|
|
|
216
|
|
|
|
|
217
|
|
|
# Attribute id inherited from {http://www.fuzzed.org/backendResults}Result |
|
218
|
|
|
|
|
219
|
|
|
# Attribute modelId inherited from {http://www.fuzzed.org/backendResults}Result |
|
220
|
|
|
|
|
221
|
|
|
# Attribute configId inherited from {http://www.fuzzed.org/backendResults}Result |
|
222
|
|
|
|
|
223
|
|
|
# Attribute timestamp inherited from {http://www.fuzzed.org/backendResults}Result |
|
224
|
|
|
|
|
225
|
|
|
# Attribute validResult inherited from {http://www.fuzzed.org/backendResults}Result |
|
226
|
|
|
_ElementMap.update({ |
|
227
|
|
|
__nodeid.name() : __nodeid |
|
228
|
|
|
}) |
|
229
|
|
|
_AttributeMap.update({ |
|
230
|
|
|
|
|
231
|
|
|
}) |
|
232
|
|
|
_module_typeBindings.MincutResult = MincutResult |
|
233
|
|
|
Namespace.addCategoryObject('typeBinding', 'MincutResult', MincutResult) |
|
234
|
|
|
|
|
235
|
|
|
|
|
236
|
|
|
# Complex type {http://www.fuzzed.org/backendResults}SimulationResult with content type ELEMENT_ONLY |
|
237
|
|
|
class SimulationResult (Result): |
|
238
|
|
|
"""Complex type {http://www.fuzzed.org/backendResults}SimulationResult with content type ELEMENT_ONLY""" |
|
239
|
|
|
_TypeDefinition = None |
|
240
|
|
|
_ContentTypeTag = pyxb.binding.basis.complexTypeDefinition._CT_ELEMENT_ONLY |
|
241
|
|
|
_Abstract = False |
|
242
|
|
|
_ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'SimulationResult') |
|
243
|
|
|
_XSDLocation = pyxb.utils.utility.Location('/ore-common/xsd/backendResult.xsd', 36, 2) |
|
244
|
|
|
_ElementMap = Result._ElementMap.copy() |
|
245
|
|
|
_AttributeMap = Result._AttributeMap.copy() |
|
246
|
|
|
# Base type is Result |
|
247
|
|
|
|
|
248
|
|
|
# Element issue (issue) inherited from {http://www.fuzzed.org/backendResults}Result |
|
249
|
|
|
|
|
250
|
|
|
# Attribute id inherited from {http://www.fuzzed.org/backendResults}Result |
|
251
|
|
|
|
|
252
|
|
|
# Attribute modelId inherited from {http://www.fuzzed.org/backendResults}Result |
|
253
|
|
|
|
|
254
|
|
|
# Attribute configId inherited from {http://www.fuzzed.org/backendResults}Result |
|
255
|
|
|
|
|
256
|
|
|
# Attribute timestamp inherited from {http://www.fuzzed.org/backendResults}Result |
|
257
|
|
|
|
|
258
|
|
|
# Attribute validResult inherited from {http://www.fuzzed.org/backendResults}Result |
|
259
|
|
|
|
|
260
|
|
|
# Attribute reliability uses Python identifier reliability |
|
261
|
|
|
__reliability = pyxb.binding.content.AttributeUse(pyxb.namespace.ExpandedName(None, 'reliability'), 'reliability', '__httpwww_fuzzed_orgbackendResults_SimulationResult_reliability', pyxb.binding.datatypes.double, required=True) |
|
262
|
|
|
__reliability._DeclarationLocation = pyxb.utils.utility.Location('/ore-common/xsd/backendResult.xsd', 39, 8) |
|
263
|
|
|
__reliability._UseLocation = pyxb.utils.utility.Location('/ore-common/xsd/backendResult.xsd', 39, 8) |
|
264
|
|
|
|
|
265
|
|
|
reliability = property(__reliability.value, __reliability.set, None, None) |
|
266
|
|
|
|
|
267
|
|
|
|
|
268
|
|
|
# Attribute nFailures uses Python identifier nFailures |
|
269
|
|
|
__nFailures = pyxb.binding.content.AttributeUse(pyxb.namespace.ExpandedName(None, 'nFailures'), 'nFailures', '__httpwww_fuzzed_orgbackendResults_SimulationResult_nFailures', pyxb.binding.datatypes.int, required=True) |
|
270
|
|
|
__nFailures._DeclarationLocation = pyxb.utils.utility.Location('/ore-common/xsd/backendResult.xsd', 40, 8) |
|
271
|
|
|
__nFailures._UseLocation = pyxb.utils.utility.Location('/ore-common/xsd/backendResult.xsd', 40, 8) |
|
272
|
|
|
|
|
273
|
|
|
nFailures = property(__nFailures.value, __nFailures.set, None, None) |
|
274
|
|
|
|
|
275
|
|
|
|
|
276
|
|
|
# Attribute nSimulatedRounds uses Python identifier nSimulatedRounds |
|
277
|
|
|
__nSimulatedRounds = pyxb.binding.content.AttributeUse(pyxb.namespace.ExpandedName(None, 'nSimulatedRounds'), 'nSimulatedRounds', '__httpwww_fuzzed_orgbackendResults_SimulationResult_nSimulatedRounds', pyxb.binding.datatypes.int, required=True) |
|
278
|
|
|
__nSimulatedRounds._DeclarationLocation = pyxb.utils.utility.Location('/ore-common/xsd/backendResult.xsd', 41, 8) |
|
279
|
|
|
__nSimulatedRounds._UseLocation = pyxb.utils.utility.Location('/ore-common/xsd/backendResult.xsd', 41, 8) |
|
280
|
|
|
|
|
281
|
|
|
nSimulatedRounds = property(__nSimulatedRounds.value, __nSimulatedRounds.set, None, None) |
|
282
|
|
|
|
|
283
|
|
|
|
|
284
|
|
|
# Attribute availability uses Python identifier availability |
|
285
|
|
|
__availability = pyxb.binding.content.AttributeUse(pyxb.namespace.ExpandedName(None, 'availability'), 'availability', '__httpwww_fuzzed_orgbackendResults_SimulationResult_availability', pyxb.binding.datatypes.double) |
|
286
|
|
|
__availability._DeclarationLocation = pyxb.utils.utility.Location('/ore-common/xsd/backendResult.xsd', 42, 8) |
|
287
|
|
|
__availability._UseLocation = pyxb.utils.utility.Location('/ore-common/xsd/backendResult.xsd', 42, 8) |
|
288
|
|
|
|
|
289
|
|
|
availability = property(__availability.value, __availability.set, None, None) |
|
290
|
|
|
|
|
291
|
|
|
|
|
292
|
|
|
# Attribute duration uses Python identifier duration |
|
293
|
|
|
__duration = pyxb.binding.content.AttributeUse(pyxb.namespace.ExpandedName(None, 'duration'), 'duration', '__httpwww_fuzzed_orgbackendResults_SimulationResult_duration', pyxb.binding.datatypes.double) |
|
294
|
|
|
__duration._DeclarationLocation = pyxb.utils.utility.Location('/ore-common/xsd/backendResult.xsd', 43, 8) |
|
295
|
|
|
__duration._UseLocation = pyxb.utils.utility.Location('/ore-common/xsd/backendResult.xsd', 43, 8) |
|
296
|
|
|
|
|
297
|
|
|
duration = property(__duration.value, __duration.set, None, None) |
|
298
|
|
|
|
|
299
|
|
|
|
|
300
|
|
|
# Attribute mttf uses Python identifier mttf |
|
301
|
|
|
__mttf = pyxb.binding.content.AttributeUse(pyxb.namespace.ExpandedName(None, 'mttf'), 'mttf', '__httpwww_fuzzed_orgbackendResults_SimulationResult_mttf', pyxb.binding.datatypes.double) |
|
302
|
|
|
__mttf._DeclarationLocation = pyxb.utils.utility.Location('/ore-common/xsd/backendResult.xsd', 44, 8) |
|
303
|
|
|
__mttf._UseLocation = pyxb.utils.utility.Location('/ore-common/xsd/backendResult.xsd', 44, 8) |
|
304
|
|
|
|
|
305
|
|
|
mttf = property(__mttf.value, __mttf.set, None, None) |
|
306
|
|
|
|
|
307
|
|
|
_ElementMap.update({ |
|
308
|
|
|
|
|
309
|
|
|
}) |
|
310
|
|
|
_AttributeMap.update({ |
|
311
|
|
|
__reliability.name() : __reliability, |
|
312
|
|
|
__nFailures.name() : __nFailures, |
|
313
|
|
|
__nSimulatedRounds.name() : __nSimulatedRounds, |
|
314
|
|
|
__availability.name() : __availability, |
|
315
|
|
|
__duration.name() : __duration, |
|
316
|
|
|
__mttf.name() : __mttf |
|
317
|
|
|
}) |
|
318
|
|
|
_module_typeBindings.SimulationResult = SimulationResult |
|
319
|
|
|
Namespace.addCategoryObject('typeBinding', 'SimulationResult', SimulationResult) |
|
320
|
|
|
|
|
321
|
|
|
|
|
322
|
|
|
# Complex type {http://www.fuzzed.org/backendResults}AnalysisResult with content type ELEMENT_ONLY |
|
323
|
|
|
class AnalysisResult (Result): |
|
324
|
|
|
"""Complex type {http://www.fuzzed.org/backendResults}AnalysisResult with content type ELEMENT_ONLY""" |
|
325
|
|
|
_TypeDefinition = None |
|
326
|
|
|
_ContentTypeTag = pyxb.binding.basis.complexTypeDefinition._CT_ELEMENT_ONLY |
|
327
|
|
|
_Abstract = False |
|
328
|
|
|
_ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'AnalysisResult') |
|
329
|
|
|
_XSDLocation = pyxb.utils.utility.Location('/ore-common/xsd/backendResult.xsd', 49, 2) |
|
330
|
|
|
_ElementMap = Result._ElementMap.copy() |
|
331
|
|
|
_AttributeMap = Result._AttributeMap.copy() |
|
332
|
|
|
# Base type is Result |
|
333
|
|
|
|
|
334
|
|
|
# Element issue (issue) inherited from {http://www.fuzzed.org/backendResults}Result |
|
335
|
|
|
|
|
336
|
|
|
# Element probability uses Python identifier probability |
|
337
|
|
|
__probability = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(None, 'probability'), 'probability', '__httpwww_fuzzed_orgbackendResults_AnalysisResult_probability', False, pyxb.utils.utility.Location('/ore-common/xsd/backendResult.xsd', 53, 10), ) |
|
338
|
|
|
|
|
339
|
|
|
|
|
340
|
|
|
probability = property(__probability.value, __probability.set, None, None) |
|
341
|
|
|
|
|
342
|
|
|
|
|
343
|
|
|
# Attribute id inherited from {http://www.fuzzed.org/backendResults}Result |
|
344
|
|
|
|
|
345
|
|
|
# Attribute modelId inherited from {http://www.fuzzed.org/backendResults}Result |
|
346
|
|
|
|
|
347
|
|
|
# Attribute configId inherited from {http://www.fuzzed.org/backendResults}Result |
|
348
|
|
|
|
|
349
|
|
|
# Attribute timestamp inherited from {http://www.fuzzed.org/backendResults}Result |
|
350
|
|
|
|
|
351
|
|
|
# Attribute validResult inherited from {http://www.fuzzed.org/backendResults}Result |
|
352
|
|
|
|
|
353
|
|
|
# Attribute decompositionNumber uses Python identifier decompositionNumber |
|
354
|
|
|
__decompositionNumber = pyxb.binding.content.AttributeUse(pyxb.namespace.ExpandedName(None, 'decompositionNumber'), 'decompositionNumber', '__httpwww_fuzzed_orgbackendResults_AnalysisResult_decompositionNumber', pyxb.binding.datatypes.int, required=True) |
|
355
|
|
|
__decompositionNumber._DeclarationLocation = pyxb.utils.utility.Location('/ore-common/xsd/backendResult.xsd', 55, 8) |
|
356
|
|
|
__decompositionNumber._UseLocation = pyxb.utils.utility.Location('/ore-common/xsd/backendResult.xsd', 55, 8) |
|
357
|
|
|
|
|
358
|
|
|
decompositionNumber = property(__decompositionNumber.value, __decompositionNumber.set, None, None) |
|
359
|
|
|
|
|
360
|
|
|
_ElementMap.update({ |
|
361
|
|
|
__probability.name() : __probability |
|
362
|
|
|
}) |
|
363
|
|
|
_AttributeMap.update({ |
|
364
|
|
|
__decompositionNumber.name() : __decompositionNumber |
|
365
|
|
|
}) |
|
366
|
|
|
_module_typeBindings.AnalysisResult = AnalysisResult |
|
367
|
|
|
Namespace.addCategoryObject('typeBinding', 'AnalysisResult', AnalysisResult) |
|
368
|
|
|
|
|
369
|
|
|
|
|
370
|
|
|
backendResults = pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'backendResults'), CTD_ANON, location=pyxb.utils.utility.Location('/ore-common/xsd/backendResult.xsd', 60, 2)) |
|
371
|
|
|
Namespace.addCategoryObject('elementBinding', backendResults.name().localName(), backendResults) |
|
372
|
|
|
|
|
373
|
|
|
|
|
374
|
|
|
|
|
375
|
|
|
Result._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(None, 'issue'), _ImportedBinding_xml_common.Issue, scope=Result, location=pyxb.utils.utility.Location('/ore-common/xsd/backendResult.xsd', 17, 6))) |
|
376
|
|
|
|
|
377
|
|
|
def _BuildAutomaton (): |
|
378
|
|
|
# Remove this helper function from the namespace after it is invoked |
|
379
|
|
|
global _BuildAutomaton |
|
380
|
|
|
del _BuildAutomaton |
|
381
|
|
|
import pyxb.utils.fac as fac |
|
382
|
|
|
|
|
383
|
|
|
counters = set() |
|
384
|
|
|
cc_0 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/ore-common/xsd/backendResult.xsd', 17, 6)) |
|
385
|
|
|
counters.add(cc_0) |
|
386
|
|
|
states = [] |
|
387
|
|
|
final_update = set() |
|
388
|
|
|
final_update.add(fac.UpdateInstruction(cc_0, False)) |
|
389
|
|
|
symbol = pyxb.binding.content.ElementUse(Result._UseForTag(pyxb.namespace.ExpandedName(None, 'issue')), pyxb.utils.utility.Location('/ore-common/xsd/backendResult.xsd', 17, 6)) |
|
390
|
|
|
st_0 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) |
|
391
|
|
|
states.append(st_0) |
|
392
|
|
|
transitions = [] |
|
393
|
|
|
transitions.append(fac.Transition(st_0, [ |
|
394
|
|
|
fac.UpdateInstruction(cc_0, True) ])) |
|
395
|
|
|
st_0._set_transitionSet(transitions) |
|
396
|
|
|
return fac.Automaton(states, counters, True, containing_state=None) |
|
397
|
|
|
Result._Automaton = _BuildAutomaton() |
|
398
|
|
|
|
|
399
|
|
|
|
|
400
|
|
|
|
|
401
|
|
|
|
|
402
|
|
|
CTD_ANON._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(None, 'configuration'), _ImportedBinding_xml_configurations.Configuration, scope=CTD_ANON, location=pyxb.utils.utility.Location('/ore-common/xsd/backendResult.xsd', 63, 10))) |
|
403
|
|
|
|
|
404
|
|
|
CTD_ANON._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(None, 'result'), Result, scope=CTD_ANON, location=pyxb.utils.utility.Location('/ore-common/xsd/backendResult.xsd', 64, 10))) |
|
405
|
|
|
|
|
406
|
|
|
CTD_ANON._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(None, 'issue'), _ImportedBinding_xml_common.Issue, scope=CTD_ANON, location=pyxb.utils.utility.Location('/ore-common/xsd/backendResult.xsd', 65, 10))) |
|
407
|
|
|
|
|
408
|
|
|
def _BuildAutomaton_ (): |
|
409
|
|
|
# Remove this helper function from the namespace after it is invoked |
|
410
|
|
|
global _BuildAutomaton_ |
|
411
|
|
|
del _BuildAutomaton_ |
|
412
|
|
|
import pyxb.utils.fac as fac |
|
413
|
|
|
|
|
414
|
|
|
counters = set() |
|
415
|
|
|
cc_0 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/ore-common/xsd/backendResult.xsd', 63, 10)) |
|
416
|
|
|
counters.add(cc_0) |
|
417
|
|
|
cc_1 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/ore-common/xsd/backendResult.xsd', 64, 10)) |
|
418
|
|
|
counters.add(cc_1) |
|
419
|
|
|
cc_2 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/ore-common/xsd/backendResult.xsd', 65, 10)) |
|
420
|
|
|
counters.add(cc_2) |
|
421
|
|
|
states = [] |
|
422
|
|
|
final_update = set() |
|
423
|
|
|
final_update.add(fac.UpdateInstruction(cc_0, False)) |
|
424
|
|
|
symbol = pyxb.binding.content.ElementUse(CTD_ANON._UseForTag(pyxb.namespace.ExpandedName(None, 'configuration')), pyxb.utils.utility.Location('/ore-common/xsd/backendResult.xsd', 63, 10)) |
|
425
|
|
|
st_0 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) |
|
426
|
|
|
states.append(st_0) |
|
427
|
|
|
final_update = set() |
|
428
|
|
|
final_update.add(fac.UpdateInstruction(cc_1, False)) |
|
429
|
|
|
symbol = pyxb.binding.content.ElementUse(CTD_ANON._UseForTag(pyxb.namespace.ExpandedName(None, 'result')), pyxb.utils.utility.Location('/ore-common/xsd/backendResult.xsd', 64, 10)) |
|
430
|
|
|
st_1 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) |
|
431
|
|
|
states.append(st_1) |
|
432
|
|
|
final_update = set() |
|
433
|
|
|
final_update.add(fac.UpdateInstruction(cc_2, False)) |
|
434
|
|
|
symbol = pyxb.binding.content.ElementUse(CTD_ANON._UseForTag(pyxb.namespace.ExpandedName(None, 'issue')), pyxb.utils.utility.Location('/ore-common/xsd/backendResult.xsd', 65, 10)) |
|
435
|
|
|
st_2 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) |
|
436
|
|
|
states.append(st_2) |
|
437
|
|
|
transitions = [] |
|
438
|
|
|
transitions.append(fac.Transition(st_0, [ |
|
439
|
|
|
fac.UpdateInstruction(cc_0, True) ])) |
|
440
|
|
|
transitions.append(fac.Transition(st_1, [ |
|
441
|
|
|
fac.UpdateInstruction(cc_0, False) ])) |
|
442
|
|
|
transitions.append(fac.Transition(st_2, [ |
|
443
|
|
|
fac.UpdateInstruction(cc_0, False) ])) |
|
444
|
|
|
st_0._set_transitionSet(transitions) |
|
445
|
|
|
transitions = [] |
|
446
|
|
|
transitions.append(fac.Transition(st_1, [ |
|
447
|
|
|
fac.UpdateInstruction(cc_1, True) ])) |
|
448
|
|
|
transitions.append(fac.Transition(st_2, [ |
|
449
|
|
|
fac.UpdateInstruction(cc_1, False) ])) |
|
450
|
|
|
st_1._set_transitionSet(transitions) |
|
451
|
|
|
transitions = [] |
|
452
|
|
|
transitions.append(fac.Transition(st_2, [ |
|
453
|
|
|
fac.UpdateInstruction(cc_2, True) ])) |
|
454
|
|
|
st_2._set_transitionSet(transitions) |
|
455
|
|
|
return fac.Automaton(states, counters, True, containing_state=None) |
|
456
|
|
|
CTD_ANON._Automaton = _BuildAutomaton_() |
|
457
|
|
|
|
|
458
|
|
|
|
|
459
|
|
|
|
|
460
|
|
|
|
|
461
|
|
|
MincutResult._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(None, 'nodeid'), pyxb.binding.datatypes.string, scope=MincutResult, location=pyxb.utils.utility.Location('/ore-common/xsd/backendResult.xsd', 30, 10))) |
|
462
|
|
|
|
|
463
|
|
|
def _BuildAutomaton_2 (): |
|
464
|
|
|
# Remove this helper function from the namespace after it is invoked |
|
465
|
|
|
global _BuildAutomaton_2 |
|
466
|
|
|
del _BuildAutomaton_2 |
|
467
|
|
|
import pyxb.utils.fac as fac |
|
468
|
|
|
|
|
469
|
|
|
counters = set() |
|
470
|
|
|
cc_0 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/ore-common/xsd/backendResult.xsd', 17, 6)) |
|
471
|
|
|
counters.add(cc_0) |
|
472
|
|
|
cc_1 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/ore-common/xsd/backendResult.xsd', 30, 10)) |
|
473
|
|
|
counters.add(cc_1) |
|
474
|
|
|
states = [] |
|
475
|
|
|
final_update = set() |
|
476
|
|
|
final_update.add(fac.UpdateInstruction(cc_0, False)) |
|
477
|
|
|
symbol = pyxb.binding.content.ElementUse(MincutResult._UseForTag(pyxb.namespace.ExpandedName(None, 'issue')), pyxb.utils.utility.Location('/ore-common/xsd/backendResult.xsd', 17, 6)) |
|
478
|
|
|
st_0 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) |
|
479
|
|
|
states.append(st_0) |
|
480
|
|
|
final_update = set() |
|
481
|
|
|
final_update.add(fac.UpdateInstruction(cc_1, False)) |
|
482
|
|
|
symbol = pyxb.binding.content.ElementUse(MincutResult._UseForTag(pyxb.namespace.ExpandedName(None, 'nodeid')), pyxb.utils.utility.Location('/ore-common/xsd/backendResult.xsd', 30, 10)) |
|
483
|
|
|
st_1 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) |
|
484
|
|
|
states.append(st_1) |
|
485
|
|
|
transitions = [] |
|
486
|
|
|
transitions.append(fac.Transition(st_0, [ |
|
487
|
|
|
fac.UpdateInstruction(cc_0, True) ])) |
|
488
|
|
|
transitions.append(fac.Transition(st_1, [ |
|
489
|
|
|
fac.UpdateInstruction(cc_0, False) ])) |
|
490
|
|
|
st_0._set_transitionSet(transitions) |
|
491
|
|
|
transitions = [] |
|
492
|
|
|
transitions.append(fac.Transition(st_1, [ |
|
493
|
|
|
fac.UpdateInstruction(cc_1, True) ])) |
|
494
|
|
|
st_1._set_transitionSet(transitions) |
|
495
|
|
|
return fac.Automaton(states, counters, True, containing_state=None) |
|
496
|
|
|
MincutResult._Automaton = _BuildAutomaton_2() |
|
497
|
|
|
|
|
498
|
|
|
|
|
499
|
|
|
|
|
500
|
|
|
|
|
501
|
|
|
def _BuildAutomaton_3 (): |
|
502
|
|
|
# Remove this helper function from the namespace after it is invoked |
|
503
|
|
|
global _BuildAutomaton_3 |
|
504
|
|
|
del _BuildAutomaton_3 |
|
505
|
|
|
import pyxb.utils.fac as fac |
|
506
|
|
|
|
|
507
|
|
|
counters = set() |
|
508
|
|
|
cc_0 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/ore-common/xsd/backendResult.xsd', 17, 6)) |
|
509
|
|
|
counters.add(cc_0) |
|
510
|
|
|
states = [] |
|
511
|
|
|
final_update = set() |
|
512
|
|
|
final_update.add(fac.UpdateInstruction(cc_0, False)) |
|
513
|
|
|
symbol = pyxb.binding.content.ElementUse(SimulationResult._UseForTag(pyxb.namespace.ExpandedName(None, 'issue')), pyxb.utils.utility.Location('/ore-common/xsd/backendResult.xsd', 17, 6)) |
|
514
|
|
|
st_0 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) |
|
515
|
|
|
states.append(st_0) |
|
516
|
|
|
transitions = [] |
|
517
|
|
|
transitions.append(fac.Transition(st_0, [ |
|
518
|
|
|
fac.UpdateInstruction(cc_0, True) ])) |
|
519
|
|
|
st_0._set_transitionSet(transitions) |
|
520
|
|
|
return fac.Automaton(states, counters, True, containing_state=None) |
|
521
|
|
|
SimulationResult._Automaton = _BuildAutomaton_3() |
|
522
|
|
|
|
|
523
|
|
|
|
|
524
|
|
|
|
|
525
|
|
|
|
|
526
|
|
|
AnalysisResult._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(None, 'probability'), _ImportedBinding_xml_common.Probability, scope=AnalysisResult, location=pyxb.utils.utility.Location('/ore-common/xsd/backendResult.xsd', 53, 10))) |
|
527
|
|
|
|
|
528
|
|
|
def _BuildAutomaton_4 (): |
|
529
|
|
|
# Remove this helper function from the namespace after it is invoked |
|
530
|
|
|
global _BuildAutomaton_4 |
|
531
|
|
|
del _BuildAutomaton_4 |
|
532
|
|
|
import pyxb.utils.fac as fac |
|
533
|
|
|
|
|
534
|
|
|
counters = set() |
|
535
|
|
|
cc_0 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/ore-common/xsd/backendResult.xsd', 17, 6)) |
|
536
|
|
|
counters.add(cc_0) |
|
537
|
|
|
cc_1 = fac.CounterCondition(min=0, max=1, metadata=pyxb.utils.utility.Location('/ore-common/xsd/backendResult.xsd', 53, 10)) |
|
538
|
|
|
counters.add(cc_1) |
|
539
|
|
|
states = [] |
|
540
|
|
|
final_update = set() |
|
541
|
|
|
final_update.add(fac.UpdateInstruction(cc_0, False)) |
|
542
|
|
|
symbol = pyxb.binding.content.ElementUse(AnalysisResult._UseForTag(pyxb.namespace.ExpandedName(None, 'issue')), pyxb.utils.utility.Location('/ore-common/xsd/backendResult.xsd', 17, 6)) |
|
543
|
|
|
st_0 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) |
|
544
|
|
|
states.append(st_0) |
|
545
|
|
|
final_update = set() |
|
546
|
|
|
final_update.add(fac.UpdateInstruction(cc_1, False)) |
|
547
|
|
|
symbol = pyxb.binding.content.ElementUse(AnalysisResult._UseForTag(pyxb.namespace.ExpandedName(None, 'probability')), pyxb.utils.utility.Location('/ore-common/xsd/backendResult.xsd', 53, 10)) |
|
548
|
|
|
st_1 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) |
|
549
|
|
|
states.append(st_1) |
|
550
|
|
|
transitions = [] |
|
551
|
|
|
transitions.append(fac.Transition(st_0, [ |
|
552
|
|
|
fac.UpdateInstruction(cc_0, True) ])) |
|
553
|
|
|
transitions.append(fac.Transition(st_1, [ |
|
554
|
|
|
fac.UpdateInstruction(cc_0, False) ])) |
|
555
|
|
|
st_0._set_transitionSet(transitions) |
|
556
|
|
|
transitions = [] |
|
557
|
|
|
transitions.append(fac.Transition(st_1, [ |
|
558
|
|
|
fac.UpdateInstruction(cc_1, True) ])) |
|
559
|
|
|
st_1._set_transitionSet(transitions) |
|
560
|
|
|
return fac.Automaton(states, counters, True, containing_state=None) |
|
561
|
|
|
AnalysisResult._Automaton = _BuildAutomaton_4() |
|
562
|
|
|
|
|
563
|
|
|
|