Skip to content

Commit 5d44d67

Browse files
committed
feat(RSR-1521): update XSD
Signed-off-by: Reda Neuhaus <242222272+redaneuhaus@users.noreply.github.com>
1 parent bcc55fc commit 5d44d67

File tree

1 file changed

+80
-141
lines changed

1 file changed

+80
-141
lines changed

scl-extension/src/main/resources/xsd/SCL_CoMPAS.xsd

Lines changed: 80 additions & 141 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ SPDX-License-Identifier: Apache-2.0
2121
Version 1.7 Release 2024/02/07
2222
Version 1.8 Release 2024/05/16
2323
Version 1.9 Release 2024/06/25
24+
Version 2.0 Release 2026/02/04
2425
</xs:documentation>
2526
</xs:annotation>
2627

@@ -42,6 +43,11 @@ SPDX-License-Identifier: Apache-2.0
4243
<xs:documentation>File type of the SCL configuration file</xs:documentation>
4344
</xs:annotation>
4445
<xs:restriction base="xs:Name">
46+
<xs:enumeration value="SCL">
47+
<xs:annotation>
48+
<xs:documentation>ICD generic template definition with datamodel</xs:documentation>
49+
</xs:annotation>
50+
</xs:enumeration>
4551
<xs:enumeration value="SSD">
4652
<xs:annotation>
4753
<xs:documentation>Substation Specification Description</xs:documentation>
@@ -104,50 +110,6 @@ SPDX-License-Identifier: Apache-2.0
104110
</xs:sequence>
105111
</xs:complexType>
106112

107-
<xs:simpleType name="tCompasIEDType">
108-
<xs:annotation>
109-
<xs:documentation xml:lang="en">
110-
IED type to be used to identity the set of LDevice.inst handled by the IED
111-
</xs:documentation>
112-
</xs:annotation>
113-
<xs:restriction base="xs:string">
114-
<xs:enumeration value="SCU"/>
115-
<xs:enumeration value="SCU-MCB"/>
116-
<xs:enumeration value="SCU-TG"/>
117-
<xs:enumeration value="SCU-ORG"/>
118-
<xs:enumeration value="STD"/>
119-
<xs:enumeration value="BCU"/>
120-
<xs:enumeration value="BCU-LIGNE"/>
121-
<xs:enumeration value="BCU-CBO"/>
122-
<xs:enumeration value="BPU"/>
123-
<xs:enumeration value="MU"/>
124-
<xs:enumeration value="SAMU"/>
125-
<xs:enumeration value="PROT"/>
126-
<xs:enumeration value="TAC"/>
127-
<xs:enumeration value="PX"/>
128-
<xs:enumeration value="PDIS"/>
129-
<xs:enumeration value="PDB"/>
130-
<xs:enumeration value="AUT"/>
131-
<xs:enumeration value="PDIF"/>
132-
<xs:enumeration value="GRP"/>
133-
<xs:enumeration value="GRPR"/>
134-
<xs:enumeration value="ASLD"/>
135-
<xs:enumeration value="GW"/>
136-
<xs:enumeration value="TG"/>
137-
<xs:enumeration value="TOPO"/>
138-
<xs:enumeration value="SWC"/>
139-
<xs:enumeration value="SWT"/>
140-
<xs:enumeration value="SW"/>
141-
<xs:enumeration value="OUT"/>
142-
<xs:enumeration value="CLUS"/>
143-
<xs:enumeration value="VIRT"/>
144-
<xs:enumeration value="ICT"/>
145-
<xs:enumeration value="SYN"/>
146-
<xs:enumeration value="OND"/>
147-
<xs:enumeration value="ADEFINIR"/>
148-
<xs:enumeration value="IEDTEST"/>
149-
</xs:restriction>
150-
</xs:simpleType>
151113

152114
<xs:simpleType name="tCompasFlowStatus">
153115
<xs:annotation>
@@ -222,70 +184,6 @@ SPDX-License-Identifier: Apache-2.0
222184
<xs:enumeration value="N/A"/>
223185
</xs:restriction>
224186
</xs:simpleType>
225-
226-
<xs:complexType name="tCompasFlow">
227-
<xs:annotation>
228-
<xs:documentation xml:lang="en">
229-
Define the link between specific Compas attributes and one ExtRef within the STD file. The dataStreamKey is the key with the ExtRef.desc.
230-
The ExtRef attributes are directly linked to the attributes of the ExRef.
231-
The FlowID is used to link additional informations to the flow as the criteria.
232-
The FlowStatus define whether if the flow is qualified, non qualified or untested accordingly to the source IED which is bellonging to a define SystemVersion
233-
The FlowSourceBayKind is the kind of bay (line feeder LI, CB busbarcontrol...) from which the DO to bind is located
234-
The FlowSourceIEDType is the IED type which can be binded; if missing any IED Type can be binded
235-
The FlowSourceIEDredundancy is the IED redundancy which can be binded; if missing any IED redundancy can be binded
236-
The FlowSourceBayNum is the instance number of the bay for a given baykind within the whole substation
237-
The FLOWSourceBayNode is the node on 3 digits where the bay from which the IED send the DO is connected to
238-
The FlowSourceNumBayBusBarSectionOrder define the number of the bay which are connected to the same BayNode from left to right
239-
Example
240-
_(busbarsection disconnector)
241-
||(busbarsection switchbreaker)
242-
BFx BayFeederx
243-
BF1, 3, 7 and 9 are Transformer Feeder bay, FlowSourceBayKind = TR, FlowSourceBayNum=1 for BF1, 2 for BF3, 3 for BF7 and 4 for BF9
244-
Other BFx are Line Feeder bay, FlowSourceBayKind = LI, FlowSourceBayNum=1 for BF2, 3 for BF4, 4 for BF5, 5 for BF6, 6 for BF8...
245-
246-
The BF1 and BF2 are connected to the FLOWSourceBayNode = 110, FlowSourceNumBayBusBarSectionOrder = 1 for BF1 and FlowSourceNumBayBusBarSectionOrder = 2 for BF2
247-
The BF3 and BF4 are connected to the FLOWSourceBayNode = 121, FlowSourceNumBayBusBarSectionOrder = 1 for BF3 and FlowSourceNumBayBusBarSectionOrder = 2 for BF4
248-
The BF5 is connected to the FLOWSourceBayNode = 122, FlowSourceNumBayBusBarSectionOrder = 1 for BF5
249-
The BF7 and BF8 are connected to the FLOWSourceBayNode = 210, FlowSourceNumBayBusBarSectionOrder = 1 for BF7 and FlowSourceNumBayBusBarSectionOrder = 2 for BF8
250-
The BF9 and BF10 are connected to the FLOWSourceBayNode = 221, FlowSourceNumBayBusBarSectionOrder = 1 for BF9 and FlowSourceNumBayBusBarSectionOrder = 2 for BF10
251-
The BF11 is connected to the FLOWSourceBayNode = 222, FlowSourceNumBayBusBarSectionOrder = 1 for BF11
252-
253-
BusBar1 --BF1---BF2-----||--BF3---BF4--------_----BF5------
254-
BusBar2 --BF7---BF8-----||--BF9---BF10-------_----BF11-----
255-
256-
Example values :
257-
FlowSourceVoltageLevel -> HT or THT or voltageLevel.name (3, 4, 5, 6 or 7)
258-
FlowSourceIEDType -> BCU, SCU-LIGNE, SCU-TG, TOPO....
259-
FlowSourceBayKind -> Bay Kind of the Bay (CB, TR, LI, TG, AP...) same meaning as Bay@BayCodif of the Compas:Bay node
260-
FlowSourceBayNum -> BayNum of the bay same meaning as Bay@NumBay of the Compas:Bay node
261-
FlowSourceBayNode -> BayNum of the bay same meaning as Bay@NumBay of the Compas:Topo@Node attribute
262-
FlowSourceBayNodeOrder -> There are multiple cases
263-
Case 1 FlowSourceBayKind +AND+ FlowSourceBayNum have values (not empty); the source IED is searched within a unique bay defined by bay attributes
264-
Case 2 FlowSourceBayNode +AND+ FlowSourceBayNodeOrder have values (not empty); the source IED is searched within a unique bay defined by bay attributes
265-
Case (1 +OR+ 2) AND (FlowSourceIEDType (not empty) +OR + FlowSourceIEDredundancy (not empty) +OR+ FlowIEDSystemVersioninstance (not empty)); the source IED is searched within a predefined bay and for given IED attributes
266-
Case 3 FlowSourceIEDType (not empty) +OR + FlowSourceIEDredundancy (not empty) +OR+ FlowIEDSystemVersioninstance (not empty); the source IED is searched for a given and unique bay and for given IED attributs
267-
</xs:documentation>
268-
</xs:annotation>
269-
<xs:attribute name="dataStreamKey" type="xs:string" use="optional"/>
270-
<xs:attribute name="ExtRefiedName" type="xs:string" use="optional"/>
271-
<xs:attribute name="ExtRefldinst" type="xs:string" use="optional"/>
272-
<xs:attribute name="ExtRefprefix" type="xs:string" use="optional"/>
273-
<xs:attribute name="ExtReflnClass" type="xs:string" use="optional"/>
274-
<xs:attribute name="ExtReflnInst" type="xs:string" use="optional"/>
275-
<xs:attribute name="FlowSourceVoltageLevel" type="xs:string" use="optional"/>
276-
<xs:attribute name="FlowSourceIEDType" type="tCompasIEDType" use="optional"/>
277-
<xs:attribute name="FlowSourceIEDredundancy" type="tCompasIEDRedundancy" use="optional"/>
278-
<xs:attribute name="FlowSourceBayKind" type="xs:string" use="optional"/>
279-
<xs:attribute name="FlowSourceBayNum" type="xs:integer" use="optional"/>
280-
<xs:attribute name="FlowSourceBayNode" type="xs:integer" use="optional"/>
281-
<xs:attribute name="FlowSourceBayNodeOrder" type="xs:integer" use="optional"/>
282-
<xs:attribute name="FlowSourceNumBayBusBarSectionOrder" type="xs:integer" use="optional"/>
283-
<xs:attribute name="FlowIEDSystemVersioninstance" type="xs:integer" use="optional"/>
284-
<xs:attribute name="FlowID" type="xs:string" use="optional"/>
285-
<xs:attribute name="FlowStatus" type="tCompasFlowStatus" use="optional"/>
286-
<xs:attribute name="FlowKind" type="tCompasFlowKind" use="optional"/>
287-
</xs:complexType>
288-
289187
<xs:complexType name="tCompasBay">
290188
<xs:annotation>
291189
<xs:documentation xml:lang="en">
@@ -324,7 +222,7 @@ SPDX-License-Identifier: Apache-2.0
324222
</xs:documentation>
325223
</xs:annotation>
326224
<xs:attribute name="ICDSystemVersionUUID" type="xs:string" use="optional"/>
327-
<xs:attribute name="IEDType" type="tCompasIEDType" use="required"/>
225+
<xs:attribute name="IEDType" type="xs:string" use="required"/>
328226
<xs:attribute name="IEDSubstationinstance" type="xs:integer" use="optional"/>
329227
<xs:attribute name="IEDSystemVersioninstance" type="xs:integer" use="optional"/>
330228
<xs:attribute name="IEDName" type="xs:string" use="optional"/>
@@ -371,16 +269,6 @@ SPDX-License-Identifier: Apache-2.0
371269
<xs:attribute name="LDeviceID" type="xs:string" use="optional"/>
372270
</xs:complexType>
373271

374-
<xs:complexType name="tCompasCriteria">
375-
<xs:annotation>
376-
<xs:documentation xml:lang="en">
377-
Identifies the Criteria linked to a Flow or LDevice or Function from the user specific catalog of criteria
378-
</xs:documentation>
379-
</xs:annotation>
380-
<xs:attribute name="ObjectID" type="xs:string" use="optional"/>
381-
<xs:attribute name="CriteriaAssociationID" type="xs:string" use="optional"/>
382-
</xs:complexType>
383-
384272
<xs:complexType name="tCompasTopo">
385273
<xs:annotation>
386274
<xs:documentation xml:lang="en">
@@ -401,34 +289,85 @@ SPDX-License-Identifier: Apache-2.0
401289
<xs:attribute name="Direction" type="tCompasTopoNodeDirection" use="optional"/>
402290
</xs:complexType>
403291

404-
<xs:simpleType name="tCompasLNodeStatus">
405-
<xs:annotation>
406-
<xs:documentation>Status of the LNode on or off</xs:documentation>
407-
</xs:annotation>
408-
<xs:restriction base="xs:Name">
409-
<xs:enumeration value="on">
410-
<xs:annotation>
411-
<xs:documentation>IED/LD/LN.Mod associated to LNode has to be turned on</xs:documentation>
412-
</xs:annotation>
413-
</xs:enumeration>
414-
<xs:enumeration value="off">
415-
<xs:annotation>
416-
<xs:documentation>IED/LD/LN.Mod associated to LNode has to be turned off</xs:documentation>
417-
</xs:annotation>
418-
</xs:enumeration>
419-
</xs:restriction>
420-
</xs:simpleType>
421-
422-
<xs:element name="LNodeStatus" type="tCompasLNodeStatus"/>
423292
<xs:element name="SclName" type="tCompasSclName"/>
293+
<xs:annotation>
294+
<xs:appinfo>
295+
<xs:restriction base="xs:string">
296+
<xs:enumeration value="SCL"/>
297+
<xs:enumeration value="ICD"/>
298+
<xs:enumeration value="SCD"/>
299+
</xs:restriction>
300+
</xs:appinfo>
301+
</xs:annotation>
424302
<xs:element name="SclFileType" type="tCompasSclFileType"/>
303+
<xs:annotation>
304+
<xs:appinfo>
305+
<xs:restriction base="xs:string">
306+
<xs:enumeration value="SCL"/>
307+
<xs:enumeration value="ICD"/>
308+
<xs:enumeration value="SCD"/>
309+
<xs:enumeration value="SCDPROXY"/>
310+
</xs:restriction>
311+
</xs:appinfo>
312+
</xs:annotation>
425313
<xs:element name="Labels" type="tCompasLabels"/>
426-
<xs:element name="Flow" type="tCompasFlow"/>
314+
<xs:annotation>
315+
<xs:appinfo>
316+
<xs:restriction base="xs:string">
317+
<xs:enumeration value="SCL"/>
318+
<xs:enumeration value="ICD"/>
319+
<xs:enumeration value="SCD"/>
320+
</xs:restriction>
321+
</xs:appinfo>
322+
</xs:annotation>
427323
<xs:element name="Bay" type="tCompasBay"/>
324+
<xs:annotation>
325+
<xs:appinfo>
326+
<xs:restriction base="xs:string">
327+
<xs:enumeration value="SCD"/>
328+
</xs:restriction>
329+
</xs:appinfo>
330+
</xs:annotation>
428331
<xs:element name="LDevice" type="tCompasLDevice"/>
429-
<xs:element name="Criteria" type="tCompasCriteria"/>
332+
<xs:annotation>
333+
<xs:appinfo>
334+
<xs:restriction base="xs:string">
335+
<xs:enumeration value="SCL"/>
336+
<xs:enumeration value="ICD"/>
337+
<xs:enumeration value="SCD"/>
338+
</xs:restriction>
339+
</xs:appinfo>
340+
</xs:annotation>
430341
<xs:element name="ICDHeader" type="tCompasICDHeader"/>
342+
<xs:annotation>
343+
<xs:appinfo>
344+
<xs:restriction base="xs:string">
345+
<xs:enumeration value="SCD"/>
346+
</xs:restriction>
347+
</xs:appinfo>
348+
</xs:annotation>
431349
<xs:element name="SystemVersion" type="tCompasSystemVersion"/>
350+
<xs:annotation>
351+
<xs:appinfo>
352+
<xs:restriction base="xs:string">
353+
<xs:enumeration value="SCD"/>
354+
</xs:restriction>
355+
</xs:appinfo>
356+
</xs:annotation>
432357
<xs:element name="Function" type="tCompasFunction"/>
358+
<xs:annotation>
359+
<xs:appinfo>
360+
<xs:restriction base="xs:string">
361+
<xs:enumeration value="SCD"/>
362+
</xs:restriction>
363+
</xs:appinfo>
364+
</xs:annotation>
433365
<xs:element name="Topo" type="tCompasTopo"/>
434-
</xs:schema>
366+
<xs:annotation>
367+
<xs:appinfo>
368+
<xs:restriction base="xs:string">
369+
<xs:enumeration value="SCD"/>
370+
</xs:restriction>
371+
</xs:appinfo>
372+
</xs:annotation>
373+
</xs:schema>

0 commit comments

Comments
 (0)