-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsubstation.testfiles.ts
More file actions
317 lines (316 loc) · 17.7 KB
/
substation.testfiles.ts
File metadata and controls
317 lines (316 loc) · 17.7 KB
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
export const substationDoc = `<SCL>
<Substation name="AA1">
<Text>This is a text element</Text>
<Private type="OpenEnergyTools-Test-Private-Type" />
<LNode iedName="IED1" ldInst="ldInst" prefix="prefix" lnClass="Lxxx" lnInst="1" />
<LNode iedName="IED1" ldInst="ldInst" prefix="prefix" lnClass="Axxx" lnInst="1" />
<LNode iedName="IED1" ldInst="ldInst" prefix="prefix" lnClass="Cxxx" lnInst="1" />
<LNode iedName="IED1" ldInst="ldInst" prefix="prefix" lnClass="Fxxx" lnInst="1" />
<LNode iedName="IED1" ldInst="ldInst" prefix="prefix" lnClass="Gxxx" lnInst="1" />
<LNode iedName="IED1" ldInst="ldInst" prefix="prefix" lnClass="Ixxx" lnInst="1" />
<LNode iedName="IED1" ldInst="ldInst" prefix="prefix" lnClass="Kxxx" lnInst="1" />
<LNode iedName="IED1" ldInst="ldInst" lnClass="Mxxx" lnInst="1" />
<LNode iedName="IED1" ldInst="ldInst" prefix="prefix" lnClass="Pxxx" lnInst="1" />
<LNode iedName="IED1" ldInst="ldInst" prefix="prefix" lnClass="Qxxx" lnInst="1" />
<LNode iedName="IED1" ldInst="ldInst" prefix="prefix" lnClass="Rxxx" lnInst="1" />
<LNode iedName="IED1" ldInst="ldInst" prefix="prefix" lnClass="Sxxx" lnInst="1" />
<LNode iedName="IED1" ldInst="ldInst" prefix="prefix" lnClass="Txxx" lnInst="1" />
<LNode iedName="IED1" ldInst="ldInst" prefix="prefix" lnClass="Xxxx" lnInst="1" />
<LNode iedName="IED1" ldInst="ldInst" prefix="prefix" lnClass="Yxxx" lnInst="1" />
<LNode iedName="None" lnClass="Zxxx" lnInst="1" />
<LNode iedName="IED1" ldInst="ldInst" prefix="prefix" lnInst="1" />
<LNode iedName="IED1" ldInst="ldInst" prefix="prefix" lnClass="PTOC" lnInst="1" />
<VoltageLevel name="E1" >
<Text>Hello world</Text>
<Bay name="Q01" >
<Text>This is a text element</Text>
<Private type="OpenEnergyTools-Test-Private-Type" />
<Function name="func1" >
<Text>This is a text element</Text>
<Private type="OpenEnergyTools-Test-Private-Type" />
<SubFunction name="subFunc1" >
<Text>This is a text element</Text>
<Private type="OpenEnergyTools-Test-Private-Type" />
<LNode iedName="IED1" ldInst="ldInst" lnClass="PTOC" lnInst="1" />
<LNode iedName="IED1" ldInst="ldInst" lnClass="PTOC" lnInst="2" />
<GeneralEquipment name="genEquip1" desc="desc" />
<Text>This is a text element</Text>
<Private type="OpenEnergyTools-Test-Private-Type" />
<GeneralEquipment name="genEquip2" />
<ConductingEquipment name="condEquip1" desc="desc" type="CBR" />
<Text>This is a text element</Text>
<Private type="OpenEnergyTools-Test-Private-Type" />
<ConductingEquipment name="condEquip2" type="DIS" />
<SubFunction name="subSubFunc1" desc="desc" type="type" >
<LNode iedName="IED1" ldInst="ldInst" lnClass="PTOC" lnInst="1" />
<LNode iedName="IED1" ldInst="ldInst" lnClass="PTOC" lnInst="2" />
</SubFunction>
<SubFunction name="subSubFunc2" >
<LNode iedName="IED1" ldInst="ldInst" lnClass="PTOC" lnInst="1" />
<LNode iedName="IED1" ldInst="ldInst" lnClass="PTOC" lnInst="2" />
</SubFunction>
</SubFunction>
</Function>
<Function name="func2" >
<LNode iedName="IED1" ldInst="ldInst" lnClass="PTOC" lnInst="1" />
<LNode iedName="IED1" ldInst="ldInst" lnClass="PTOC" lnInst="2" />
<GeneralEquipment name="genEquip1" desc="desc" />
<GeneralEquipment name="genEquip2" />
<ConductingEquipment name="condEquip1" desc="desc" type="CBR" />
<ConductingEquipment name="condEquip2" type="DIS" />
<SubFunction name="subSubFunc3" />
<SubFunction name="subSubFunc4" />
</Function>
<ConductingEquipment name="QA1" desc="desc" type="CBR" >
<EqFunction name="eqFunc1" desc="desc" type="type">
<Text>This is a text element</Text>
<Private type="OpenEnergyTools-Test-Private-Type" />
<EqSubFunction name="Trip" desc="" >
<Text>This is a text element</Text>
<Private type="OpenEnergyTools-Test-Private-Type" />
<LNode iedName="IED1" ldInst="ldInst" lnClass="XCBR" lnInst="1" />
<LNode iedName="IED1" ldInst="ldInst" lnClass="PTOC" lnInst="1" />
<GeneralEquipment name="someGenEquipment1" desc="desc" >
</GeneralEquipment>
<GeneralEquipment name="someGenEquipment2" >
</GeneralEquipment>
<EqSubFunction name="tripA" desc="desc" >
</EqSubFunction>
<EqSubFunction name="tripB" type="type" desc="desc" >
</EqSubFunction>
<EqSubFunction name="tripC" type="type" >
</EqSubFunction>
</EqSubFunction>
<EqSubFunction name="Start" >
</EqSubFunction>
</EqFunction>
</ConductingEquipment>
<ConductingEquipment name="Qb1" type="DIS" >
<EqFunction name="eqFunc2" >
<LNode iedName="IED1" ldInst="ldInst" lnClass="CSWI" lnInst="1" />
<LNode iedName="IED1" ldInst="ldInst" lnClass="CILO" lnInst="1" />
<GeneralEquipment name="someGenEquipment1" desc="desc" />
<GeneralEquipment name="someGenEquipment2" />
<EqSubFunction name="interlock" desc="desc" />
<EqSubFunction name="control" type="type" desc="desc" />
</EqFunction>
</ConductingEquipment>
</Bay>
<Bay name="Q02" >
<GeneralEquipment name="someGenEquip1" desc="desc" >
</GeneralEquipment>
<GeneralEquipment name="someGenEquip2" >
<LNode iedName="IED1" ldInst="ldInst" lnClass="PTOC" lnInst="1" />
<LNode iedName="IED1" ldInst="ldInst" lnClass="PTOC" lnInst="2" />
<EqFunction name="eqFunc1" desc="desc" />
<EqFunction name="eqFunc2" type="type" desc="desc" />
</GeneralEquipment>
<ConductingEquipment name="QA2" type="CBR" >
<LNode iedName="IED1" ldInst="ldInst" lnClass="CSWI" lnInst="1" />
<LNode iedName="IED1" ldInst="ldInst" lnClass="CILO" lnInst="1" />
<SubEquipment name="phsA" desc="desc" phase="A" >
<LNode iedName="IED1" ldInst="ldInst" lnClass="CSWI" lnInst="1" />
<LNode iedName="IED1" ldInst="ldInst" lnClass="CILO" lnInst="1" />
<EqFunction name="eqFunc7" />
<EqFunction name="eqFunc8" />
</SubEquipment>
<SubEquipment name="phsB" />
<SubEquipment name="phsC" />
<EqFunction name="eqFunc9" />
<EqFunction name="eqFunc10" />
</ConductingEquipment>
</Bay>
<Bay name="PowTrans" >
<PowerTransformer name="PTR1" type="PTR" >
<Text>This is a text element</Text>
<Private type="OpenEnergyTools-Test-Private-Type" />
<TransformerWinding name="winding1" >
<Text>This is a text element</Text>
<Private type="OpenEnergyTools-Test-Private-Type" />
<TapChanger name="ch1" >
<Text>This is a text element</Text>
<Private type="OpenEnergyTools-Test-Private-Type" />
<LNode iedName="IED1" ldInst="ldInst" lnClass="PTOC" lnInst="1" />
<LNode iedName="IED1" ldInst="ldInst" lnClass="PTOC" lnInst="2" />
<SubEquipment name="phsA" />
<SubEquipment name="phsB" />
<SubEquipment name="phsC" />
<EqFunction name="eqFunc11" />
<EqFunction name="eqFunc12" />
</TapChanger>
<TapChanger name="ch2" />
</TransformerWinding>
<TransformerWinding name="winding2" />
<TransformerWinding name="winding3" desc="desc" >
<LNode iedName="IED1" ldInst="ldInst" lnClass="PTOC" lnInst="1" />
<LNode iedName="IED1" ldInst="ldInst" lnClass="PTOC" lnInst="2" />
<TapChanger name="ch1" />
<TapChanger name="ch2" desc="desc" />
<SubEquipment name="phsA" />
<SubEquipment name="phsB" />
<SubEquipment name="phsC" />
<EqFunction name="eqFunc11" />
<EqFunction name="eqFunc12" />
</TransformerWinding>
</PowerTransformer>
<PowerTransformer name="PTR2" type="PTR" />
<PowerTransformer name="PTR3" desc="desc" type="PTR" >
<LNode iedName="IED1" ldInst="ldInst" lnClass="PTOC" lnInst="1" />
<LNode iedName="IED1" ldInst="ldInst" lnClass="PTOC" lnInst="2" />
<TransformerWinding name="winding1" desc="desc" />
<TransformerWinding name="winding1" />
<SubEquipment name="phsA" />
<SubEquipment name="phsB" />
<SubEquipment name="phsC" />
<EqFunction name="eqFunc11" />
<EqFunction name="eqFunc12" />
</PowerTransformer>
</Bay>
<Bay name="testBay1" />
<Bay name="testBay2" desc="desc" >
<LNode iedName="IED1" ldInst="ldInst" lnClass="PTOC" lnInst="1" />
<LNode iedName="IED1" ldInst="ldInst" lnClass="PTOC" lnInst="2" />
<PowerTransformer name="pTrans1" type="PTR" >
<TransformerWinding name="wind1" />
<TransformerWinding name="wind2" />
</PowerTransformer>
<PowerTransformer name="pTrans2" type="PTR" >
<TransformerWinding name="wind1" />
<TransformerWinding name="wind2" />
</PowerTransformer>
<PowerTransformer name="pTrans3" type="PTR" />
<PowerTransformer name="pTrans4" type="PTR" />
<GeneralEquipment name="genEquip1" type="ERP" />
<GeneralEquipment name="genEquip2" type="ERP" />
<GeneralEquipment name="genEquip3" type="ERP" />
<GeneralEquipment name="genEquip4" type="ERP" />
<ConductingEquipment name="condEq1" type="CBR" />
<ConductingEquipment name="condEq2" type="DIS" />
<ConductingEquipment name="condEq3" type="DIS" />
<ConductingEquipment name="condEq4" type="DIS" />
<ConductingEquipment name="condEq5" type="DIS" />
<Function name="func1" desc="desc" />
<Function name="func2" />
</Bay>
</VoltageLevel>
<VoltageLevel name="testVoltLv1" desc="desc" >
<Voltage unit="V" multiplier="k" >110</Voltage>
</VoltageLevel>
<VoltageLevel name="testVoltLv2" >
<LNode iedName="IED1" ldInst="ldInst" lnClass="PTOC" lnInst="1" />
<LNode iedName="IED1" ldInst="ldInst" lnClass="PTOC" lnInst="2" />
<PowerTransformer name="pTrans1" type="PTR" />
<PowerTransformer name="pTrans2" type="PTR" />
<GeneralEquipment name="genEquip1" type="ERP" />
<GeneralEquipment name="genEquip2" type="ERP" />
<GeneralEquipment name="genEquip3" type="ERP" />
<GeneralEquipment name="genEquip4" type="ERP" />
<Bay name="bay1" >
<ConductingEquipment name="condEq1" type="DIS" />
<ConductingEquipment name="condEq2" type="DIS" />
<ConductingEquipment name="condEq3" type="DIS" />
</Bay>
<Bay name="bay2" >
<ConductingEquipment name="condEq1" type="DIS" />
<ConductingEquipment name="condEq2" type="DIS" />
<ConductingEquipment name="condEq3" type="DIS" />
</Bay>
<Bay name="bay3" >
<PowerTransformer name="pTrans1" type="PTR" />
<PowerTransformer name="pTrans2" type="PTR" />
<ConductingEquipment name="condEq1" type="DIS" />
<ConductingEquipment name="condEq2" type="DIS" />
<ConductingEquipment name="condEq3" type="DIS" />
</Bay>
<Function name="func1" desc="desc" />
<Function name="func2" />
</VoltageLevel>
<VoltageLevel name="testVoltLv3" >
<Voltage unit="V" >20000</Voltage>
<LNode iedName="IED1" ldInst="ldInst" lnClass="PTOC" lnInst="1" />
<LNode iedName="IED1" ldInst="ldInst" lnClass="PTOC" lnInst="2" />
<PowerTransformer name="pTrans1" type="PTR" />
<PowerTransformer name="pTrans2" type="PTR" />
<GeneralEquipment name="genEquip3" type="ERP" />
<GeneralEquipment name="genEquip4" type="ERP" />
<Bay name="bay1" >
<ConductingEquipment name="condEq1" type="DIS" />
<ConductingEquipment name="condEq2" type="DIS" />
<ConductingEquipment name="condEq3" type="DIS" />
</Bay>
<Bay name="bay2" >
<ConductingEquipment name="condEq1" type="DIS" />
<ConductingEquipment name="condEq2" type="DIS" />
<ConductingEquipment name="condEq3" type="DIS" />
</Bay>
<Function name="func1" desc="desc" type="type" />
<Function name="func2" />
</VoltageLevel>
</Substation>
<Substation name="testSubst1" />
<Substation name="testSubst2" desc="desc" >
<LNode iedName="IED1" ldInst="ldInst" lnClass="PTOC" lnInst="1" />
<LNode iedName="IED1" ldInst="ldInst" lnClass="PTOC" lnInst="2" />
<PowerTransformer name="pTrans1" type="PTR" />
<PowerTransformer name="pTrans2" type="PTR" />
<GeneralEquipment name="genEquip1" type="ERP" />
<GeneralEquipment name="genEquip2" type="ERP" />
<GeneralEquipment name="genEquip3" type="ERP" />
<VoltageLevel name="voltLv1" >
<Voltage ></Voltage>
</VoltageLevel>
<VoltageLevel name="voltLv2" desc="desc" >
<Voltage unit="V" multiplier="k" >100</Voltage>
</VoltageLevel>
<Function name="func1" desc="desc" type="type" />
<Function name="func2" />
</Substation>
<Line name="testLine1" />
<Line name="testLine2" desc="desc" >
<Voltage ></Voltage>
<LNode iedName="IED1" ldInst="ldInst" lnClass="PTOC" lnInst="1" />
<LNode iedName="IED1" ldInst="ldInst" lnClass="PTOC" lnInst="2" />
<GeneralEquipment name="genEquip2" type="ERP" />
<GeneralEquipment name="genEquip3" type="ERP" />
<ConductingEquipment name="condEq1" type="DIS" />
<ConductingEquipment name="condEq2" type="DIS" />
<ConductingEquipment name="condEq3" type="DIS" />
<Function name="func1" desc="desc" type="type" />
<Function name="func2" />
</Line>
<Line name="testLine3" desc="desc" >
<Voltage unit="V" multiplier="k" >20</Voltage>
<LNode iedName="IED1" ldInst="ldInst" lnClass="PTOC" lnInst="1" />
<LNode iedName="IED1" ldInst="ldInst" lnClass="PTOC" lnInst="2" />
<GeneralEquipment name="genEquip2" type="ERP" />
<GeneralEquipment name="genEquip3" type="ERP" />
<ConductingEquipment name="condEq1" type="DIS" />
<ConductingEquipment name="condEq2" type="DIS" />
<ConductingEquipment name="condEq3" type="DIS" />
<Function name="func1" desc="desc" type="type" />
<Function name="func2" />
</Line>
<Process name="proc1" />
<Process name="proc2" desc="desc" >
<LNode iedName="IED1" ldInst="ldInst" lnClass="PTOC" lnInst="1" />
<LNode iedName="IED1" ldInst="ldInst" lnClass="PTOC" lnInst="2" />
<GeneralEquipment name="genEquip2" type="ERP" />
<GeneralEquipment name="genEquip3" type="ERP" />
<ConductingEquipment name="condEq1" type="DIS" />
<ConductingEquipment name="condEq2" type="DIS" />
<ConductingEquipment name="condEq3" type="DIS" />
<Line name="line1" />
<Line name="line2" />
<Process name="subProc1" />
<Process name="subProc2" />
<Substation name="subSt1" />
<Substation name="subSt1" />
<Function name="func1" desc="desc" type="type" />
<Function name="func2" />
</Process>
</SCL>
`;
export const missingSubstation = `<SCL>
<Header id="missingSubstation"/>
</SCL>
`;