-
Notifications
You must be signed in to change notification settings - Fork 49
/
SystemStructureCommon.xsd
480 lines (458 loc) · 25 KB
/
SystemStructureCommon.xsd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
xmlns:ssc="http://ssp-standard.org/SSP1/SystemStructureCommon"
targetNamespace="http://ssp-standard.org/SSP1/SystemStructureCommon">
<xs:annotation>
<xs:documentation xml:lang="en">
This is the normative XML Schema 1.0 schema for the MAP SSP
SystemStructure 1.0 common content across formats.
Version: 1.0
Copyright 2016 -- 2019 Modelica Association Project "SSP"
Redistribution and use in source and binary forms, with or
without modification, are permitted provided that the
following conditions are met:
1. Redistributions of source code must retain the above
copyright notice, this list of conditions and the
following disclaimer.
2. Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the
following disclaimer in the documentation and/or other
materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
</xs:documentation>
</xs:annotation>
<xs:attributeGroup name="ABaseElement">
<xs:annotation>
<xs:documentation xml:lang="en">
This attribute group specifies the attributes common to all model elements.
</xs:documentation>
</xs:annotation>
<xs:attribute name="id" type="xs:ID" use="optional">
<xs:annotation>
<xs:documentation xml:lang="en">
This attribute gives the model element a file-wide unique id which can
be referenced from other elements or via URI fragment identifier.
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="description" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation xml:lang="en">
This attribute gives a human readable longer description of the
model element, which can be shown to the user where appropriate.
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:attributeGroup>
<xs:attributeGroup name="ATopLevelMetaData">
<xs:annotation>
<xs:documentation xml:lang="en">
This attribute group specifies the optional meta-data attributes common to
all top-level container elements of all defined file formats.
</xs:documentation>
</xs:annotation>
<xs:attribute name="author" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation xml:lang="en">
This attribute gives the name of the author of this file's content.
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="fileversion" type="xs:normalizedString" use="optional">
<xs:annotation>
<xs:documentation xml:lang="en">
This attribute gives a version number for this file's content.
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="copyright" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation xml:lang="en">
This attribute gives copyright information for this file's content.
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="license" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation xml:lang="en">
This attribute gives license information for this file's content.
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="generationTool" type="xs:normalizedString">
<xs:annotation>
<xs:documentation xml:lang="en">
This attribute gives the name of the tool that generated this file.
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="generationDateAndTime" type="xs:dateTime">
<xs:annotation>
<xs:documentation xml:lang="en">
This attribute gives the date and time this file was generated.
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:attributeGroup>
<xs:complexType name="TEnumerations">
<xs:sequence>
<xs:element name="Enumeration" minOccurs="1" maxOccurs="unbounded" type="ssc:TEnumeration"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="TEnumeration">
<xs:sequence>
<xs:element name="Item" minOccurs="1" maxOccurs="unbounded">
<xs:complexType>
<xs:attribute name="name" type="xs:string" use="required">
<xs:annotation>
<xs:documentation xml:lang="en">Name of the Enumeration Item</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="value" type="xs:int" use="required">
<xs:annotation>
<xs:documentation xml:lang="en">The Value of the Enumeration Item</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:element name="Annotations" minOccurs="0" type="ssc:TAnnotations"/>
</xs:sequence>
<xs:attributeGroup ref="ssc:ABaseElement"/>
<xs:attribute name="name" type="xs:string" use="required">
<xs:annotation>
<xs:documentation xml:lang="en">
This attribute specifies the name of the enumeration in the system description,
which must be unique within in the system description.
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="TUnits">
<xs:sequence>
<xs:element name="Unit" minOccurs="1" maxOccurs="unbounded" type="ssc:TUnit"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="TUnit">
<xs:sequence>
<xs:element name="BaseUnit">
<xs:complexType>
<xs:attribute name="kg" type="xs:int" default="0">
<xs:annotation>
<xs:documentation>Exponent of SI base unit "kg"</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="m" type="xs:int" default="0">
<xs:annotation>
<xs:documentation>Exponent of SI base unit "m"</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="s" type="xs:int" default="0">
<xs:annotation>
<xs:documentation>Exponent of SI base unit "s"</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="A" type="xs:int" default="0">
<xs:annotation>
<xs:documentation>Exponent of SI base unit "A"</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="K" type="xs:int" default="0">
<xs:annotation>
<xs:documentation>Exponent of SI base unit "K"</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="mol" type="xs:int" default="0">
<xs:annotation>
<xs:documentation>Exponent of SI base unit "mol"</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="cd" type="xs:int" default="0">
<xs:annotation>
<xs:documentation>Exponent of SI base unit "cd"</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="rad" type="xs:int" default="0">
<xs:annotation>
<xs:documentation>Exponent of SI derived unit "rad"</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="factor" type="xs:double" default="1"/>
<xs:attribute name="offset" type="xs:double" default="0"/>
</xs:complexType>
</xs:element>
<xs:element name="Annotations" minOccurs="0" type="ssc:TAnnotations"/>
</xs:sequence>
<xs:attributeGroup ref="ssc:ABaseElement"/>
<xs:attribute name="name" type="xs:string" use="required">
<xs:annotation>
<xs:documentation xml:lang="en">
This attribute specifies the name of the unit in the system description,
which must be unique within in the system description.
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="TAnnotations">
<xs:sequence maxOccurs="unbounded">
<xs:element name="Annotation">
<xs:complexType>
<xs:sequence>
<xs:any namespace="##any" processContents="lax" minOccurs="0"/>
</xs:sequence>
<xs:attribute name="type" type="xs:normalizedString" use="required">
<xs:annotation>
<xs:documentation xml:lang="en">
The unique name of the type of the annotation.
In order to ensure uniqueness all types should be identified
with reverse domain name notation (cf. Java package names
or Apple UTIs) of a domain that is controlled by the entity
defining the semantics and content of the annotation.
For vendor-specific annotations this would e.g. be a domain
controlled by the tool vendor.
For MAP-SSP defined annotations, this will be a domain under
the org.modelica prefix.
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:group name="GTypeChoice">
<xs:choice>
<xs:annotation>
<xs:documentation xml:lang="en">
This element gives the type of a connector or signal dictionary entry
(called entity below).
</xs:documentation>
</xs:annotation>
<xs:element name="Real">
<xs:complexType>
<xs:attribute name="unit" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation xml:lang="en">
This attribute gives the unit of the entity and must
reference one of the unit definitions provided in the Units
element of the containing file.
If a unit is not supplied, the unit is determined through
default mechanisms: For FMU components, the unit of the
underlying variable would be used, for systems the units
of connected underlying connectors could be used if unambiguous.
If a unit cannot be deduced unambinguously, the user should
be informed of this error.
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:element name="Integer">
<xs:complexType>
</xs:complexType>
</xs:element>
<xs:element name="Boolean">
<xs:complexType>
</xs:complexType>
</xs:element>
<xs:element name="String">
<xs:complexType>
</xs:complexType>
</xs:element>
<xs:element name="Enumeration">
<xs:complexType>
<xs:attribute name="name" type="xs:string" use="required">
<xs:annotation>
<xs:documentation xml:lang="en">
This attribute specifies the name of the enumeration
which references into the set of defined enumerations
of the system structure description, as contained in
the Enumerations element of the root element.
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:element name="Binary">
<xs:complexType>
<xs:attribute name="mime-type" type="xs:string" default="application/octet-stream">
<xs:annotation>
<xs:documentation xml:lang="en">
This optional attribute specifies the MIME type of the
underlying binary data, which defaults to the non-specific
application/octet-stream type. This information can be
used by the implementation to detect mismatches between
connected binary connectors, or provide automatic means of
conversion between different formats. It should be noted
that the implementation is not required to provide this
service, i.e. it remains the responsibility of the operator
to ensure only compatible binary connectors are connected.
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:group>
<xs:group name="GTransformationChoice">
<xs:annotation>
<xs:documentation xml:lang="en">
This element specifies the transformation to be applied to a value prior to its
use in a connection or parameter mapping.
</xs:documentation>
</xs:annotation>
<xs:choice>
<xs:element name="LinearTransformation">
<xs:annotation>
<xs:documentation xml:lang="en">
This element provides for a linear transformation to be performed on the
parameter values and is valid for parameters of a continuous type.
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:attribute name="factor" type="xs:double" use="optional" default="1.0">
<xs:annotation>
<xs:documentation xml:lang="en">
This attribute specifies an optional factor value to use in a linear
transformation of the source parameter value to the target parameter
value, i.e. in the calculation target = factor * source + offset.
Note that conversions based on different units are performed, unless
prevented by suppressUnitConversion, prior to the application of the
linear transformation, i.e. the value of source is already converted
to the target unit in the formula above.
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="offset" type="xs:double" use="optional" default="0.0">
<xs:annotation>
<xs:documentation xml:lang="en">
This attribute specifies an optional offset value to use in a linear
transformation of the source parameter value to the target parameter
value, i.e. in the calculation target = factor * source + offset.
Note that conversions based on different units are performed, unless
prevented by suppressUnitConversion, prior to the application of the
linear transformation, i.e. the value of source is already converted
to the target unit in the formula above.
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:element name="BooleanMappingTransformation">
<xs:annotation>
<xs:documentation xml:lang="en">
This element provides for a transformation of boolean parameter values
based on a mapping table and is valid for parameters of boolean type.
Each mapping table entry is provided by a MapEntry element.
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="MapEntry" minOccurs="1" maxOccurs="unbounded">
<xs:complexType>
<xs:attribute name="source" type="xs:boolean" use="required">
<xs:annotation>
<xs:documentation xml:lang="en">
This attribute gives the value of the parameter in the
parameter source that this entry applies to.
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="target" type="xs:boolean" use="required">
<xs:annotation>
<xs:documentation xml:lang="en">
This attribute gives the value of the parameter to use
when applying it to the system or component that is to be
parametrized.
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="IntegerMappingTransformation">
<xs:annotation>
<xs:documentation xml:lang="en">
This element provides for a transformation of integer parameter values
based on a mapping table and is valid for parameters of integer and
enumeration type. Each mapping table entry is provided by a MapEntry
element.
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="MapEntry" minOccurs="1" maxOccurs="unbounded">
<xs:complexType>
<xs:attribute name="source" type="xs:int" use="required">
<xs:annotation>
<xs:documentation xml:lang="en">
This attribute gives the value of the parameter in the
parameter source that this entry applies to.
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="target" type="xs:int" use="required">
<xs:annotation>
<xs:documentation xml:lang="en">
This attribute gives the value of the parameter to use
when applying it to the system or component that is to be
parametrized.
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="EnumerationMappingTransformation">
<xs:annotation>
<xs:documentation xml:lang="en">
This element provides for a transformation of enumeration parameter values
based on a mapping table of their enumeration item names and is valid for
parameters of enumeration type. Each mapping table entry is provided by a
MapEntry element.
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="MapEntry" minOccurs="1" maxOccurs="unbounded">
<xs:complexType>
<xs:attribute name="source" type="xs:string" use="required">
<xs:annotation>
<xs:documentation xml:lang="en">
This attribute gives the value of the parameter in the
parameter source that this entry applies to.
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="target" type="xs:string" use="required">
<xs:annotation>
<xs:documentation xml:lang="en">
This attribute gives the value of the parameter to use
when applying it to the system or component that is to be
parametrized.
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:group>
</xs:schema>