@enervance/insight-cim-model 0.0.269-beta9 → 0.0.270
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.
- package/dist/constants/rdf-xml.d.ts +0 -2
- package/dist/constants/rdf-xml.js +0 -2
- package/dist/constants/rdf-xml.js.map +1 -1
- package/dist/converter/integral7/converter.integral7.d.ts +1 -3
- package/dist/converter/integral7/converter.integral7.js +6 -99
- package/dist/converter/integral7/converter.integral7.js.map +1 -1
- package/dist/converter/integral7/interface-i7/data-structures-i7.d.ts +1 -11
- package/dist/converter/integral7/interface-i7/data-structures-i7.js.map +1 -1
- package/dist/converter/integral7/model/interfaces.d.ts +0 -19
- package/dist/converter/integral7/model/interfaces.js.map +1 -1
- package/dist/converter/integral7/sql/integral.sql.d.ts +0 -8
- package/dist/converter/integral7/sql/integral.sql.js +0 -39
- package/dist/converter/integral7/sql/integral.sql.js.map +1 -1
- package/dist/converter/integral7/utils-cgmes-export.d.ts +0 -1
- package/dist/converter/integral7/utils-cgmes-export.js +1 -7
- package/dist/converter/integral7/utils-cgmes-export.js.map +1 -1
- package/dist/data-structures/graph/graph-interfaces.d.ts +18 -2
- package/dist/data-structures/graph/graph-interfaces.js +12 -0
- package/dist/data-structures/graph/graph-interfaces.js.map +1 -1
- package/dist/data-structures/graph/graph-util.d.ts +5 -3
- package/dist/data-structures/graph/graph-util.js +23 -13
- package/dist/data-structures/graph/graph-util.js.map +1 -1
- package/dist/etl/etl-neplan/etl-neplan-csv.js +0 -1
- package/dist/etl/etl-neplan/etl-neplan-csv.js.map +1 -1
- package/dist/etl/etl-neplan/neplan-contingency-analysis.d.ts +0 -1
- package/dist/etl/etl-neplan/neplan-contingency-analysis.js +111 -132
- package/dist/etl/etl-neplan/neplan-contingency-analysis.js.map +1 -1
- package/dist/index.d.ts +0 -2
- package/dist/index.js +1 -5
- package/dist/index.js.map +1 -1
- package/dist/model/core/ConnectivityNode.js +2 -2
- package/dist/model/core/ConnectivityNode.js.map +1 -1
- package/dist/model/core/IdentifiedObject.js +0 -8
- package/dist/model/core/IdentifiedObject.js.map +1 -1
- package/dist/model/extensions/amprion/core/AMPRIONConnectivityNode.js +1 -1
- package/dist/model/extensions/amprion/core/AMPRIONConnectivityNode.js.map +1 -1
- package/dist/model/extensions/enervance/operations/EVSwitchingPlanKind.d.ts +5 -0
- package/dist/model/extensions/enervance/operations/EVSwitchingPlanKind.js +10 -0
- package/dist/model/extensions/enervance/operations/EVSwitchingPlanKind.js.map +1 -0
- package/dist/model/operations/SwitchingPlan.d.ts +3 -0
- package/dist/model/operations/SwitchingPlan.js +10 -0
- package/dist/model/operations/SwitchingPlan.js.map +1 -1
- package/dist/model/topology/TopologicalNode.d.ts +0 -1
- package/dist/model/topology/TopologicalNode.js.map +1 -1
- package/dist/utils2/parser.utils.js +2 -2
- package/dist/utils2/parser.utils.js.map +1 -1
- package/dist/utils2/permutation.utils.d.ts +9 -0
- package/dist/utils2/permutation.utils.js +37 -0
- package/dist/utils2/permutation.utils.js.map +1 -0
- package/package.json +1 -1
- package/dist/converter/integral7/model/integral/Netzbereich.d.ts +0 -15
- package/dist/converter/integral7/model/integral/Netzbereich.js +0 -23
- package/dist/converter/integral7/model/integral/Netzbereich.js.map +0 -1
- package/dist/converter/integral7/model/integral/NetzbereichAussen.d.ts +0 -7
- package/dist/converter/integral7/model/integral/NetzbereichAussen.js +0 -12
- package/dist/converter/integral7/model/integral/NetzbereichAussen.js.map +0 -1
- package/dist/converter/integral7/model/integral/NetzbereichInnen.d.ts +0 -7
- package/dist/converter/integral7/model/integral/NetzbereichInnen.js +0 -12
- package/dist/converter/integral7/model/integral/NetzbereichInnen.js.map +0 -1
- package/dist/converter/integral7/model/integral/NetzbereichRand.d.ts +0 -7
- package/dist/converter/integral7/model/integral/NetzbereichRand.js +0 -12
- package/dist/converter/integral7/model/integral/NetzbereichRand.js.map +0 -1
- package/dist/converter/integral7/tp-bd-profile/convert-functions/convert-netzbereiche.d.ts +0 -0
- package/dist/converter/integral7/tp-bd-profile/convert-functions/convert-netzbereiche.js +0 -2
- package/dist/converter/integral7/tp-bd-profile/convert-functions/convert-netzbereiche.js.map +0 -1
- package/dist/converter/integral7/tp-bd-profile/model/BoundaryPoint.d.ts +0 -8
- package/dist/converter/integral7/tp-bd-profile/model/BoundaryPoint.js +0 -13
- package/dist/converter/integral7/tp-bd-profile/model/BoundaryPoint.js.map +0 -1
- package/dist/converter/integral7/tp-bd-profile/model/BoundarySet.d.ts +0 -15
- package/dist/converter/integral7/tp-bd-profile/model/BoundarySet.js +0 -38
- package/dist/converter/integral7/tp-bd-profile/model/BoundarySet.js.map +0 -1
- package/dist/converter/integral7/tp-bd-profile/model/ExternalPoint.d.ts +0 -8
- package/dist/converter/integral7/tp-bd-profile/model/ExternalPoint.js +0 -13
- package/dist/converter/integral7/tp-bd-profile/model/ExternalPoint.js.map +0 -1
- package/dist/converter/integral7/tp-bd-profile/model/InternalPoint.d.ts +0 -8
- package/dist/converter/integral7/tp-bd-profile/model/InternalPoint.js +0 -13
- package/dist/converter/integral7/tp-bd-profile/model/InternalPoint.js.map +0 -1
- package/dist/converter/integral7/tp-bd-profile/model/convert-net-equivalent.model.d.ts +0 -8
- package/dist/converter/integral7/tp-bd-profile/model/convert-net-equivalent.model.js +0 -9
- package/dist/converter/integral7/tp-bd-profile/model/convert-net-equivalent.model.js.map +0 -1
- package/dist/converter/integral7/tp-bd-profile/tb-bd-converter.utilities.d.ts +0 -9
- package/dist/converter/integral7/tp-bd-profile/tb-bd-converter.utilities.js +0 -82
- package/dist/converter/integral7/tp-bd-profile/tb-bd-converter.utilities.js.map +0 -1
- package/dist/converter/integral7/tp-bd-profile/tb-bd-converter.utilities.types.d.ts +0 -25
- package/dist/converter/integral7/tp-bd-profile/tb-bd-converter.utilities.types.js +0 -3
- package/dist/converter/integral7/tp-bd-profile/tb-bd-converter.utilities.types.js.map +0 -1
- package/dist/converter/integral7/tp-bd-profile/tp-bd-converter.d.ts +0 -23
- package/dist/converter/integral7/tp-bd-profile/tp-bd-converter.js +0 -244
- package/dist/converter/integral7/tp-bd-profile/tp-bd-converter.js.map +0 -1
|
@@ -31,7 +31,6 @@ export declare class RDF_XML {
|
|
|
31
31
|
static readonly DL_OPER_PROFILE_URI = "http://entsoe.eu/CIM/DiagramLayout/3/1";
|
|
32
32
|
static readonly GL_OPER_PROFILE_URI = "http://entsoe.eu/CIM/GeographicalLocation/2/1";
|
|
33
33
|
static readonly BD_EQ_PROFILE_URI = "http://entsoe.eu/CIM/EquipmentBoundary/3/1";
|
|
34
|
-
static readonly BD_TP_PROFILE_URI = "http://entsoe.eu/CIM/TopologyBoundary/3/1";
|
|
35
34
|
static readonly BD_EQ_OPER_PROFILE_URI = "http://entsoe.eu/CIM/EquipmentBoundaryOperation/3/1";
|
|
36
35
|
static readonly ADDITIONAL_PROFILE_URI = "http://enervance.com/CIM/AdditionalData/1/0";
|
|
37
36
|
static readonly AMP_I7_PROFILE_URI = "http://amprion.net/CIM/AmprionIntegral7/1/0";
|
|
@@ -50,7 +49,6 @@ export declare class RDF_XML {
|
|
|
50
49
|
static readonly PROFILE_TP = "TP";
|
|
51
50
|
static readonly PROFILE_DY = "DY";
|
|
52
51
|
static readonly PROFILE_EQ_BD = "EQ_BD";
|
|
53
|
-
static readonly PROFILE_TP_BD = "TP_BD";
|
|
54
52
|
static readonly PROFILE_ADDITIONAL = "ADDITIONAL";
|
|
55
53
|
static readonly PROFILE_AMPI7 = "AMPI7";
|
|
56
54
|
static readonly cgmesProfileNamespaces: {
|
|
@@ -36,7 +36,6 @@ RDF_XML.TP_OPER_PROFILE_URI = "http://entsoe.eu/CIM/Topology/4/1";
|
|
|
36
36
|
RDF_XML.DL_OPER_PROFILE_URI = "http://entsoe.eu/CIM/DiagramLayout/3/1";
|
|
37
37
|
RDF_XML.GL_OPER_PROFILE_URI = "http://entsoe.eu/CIM/GeographicalLocation/2/1";
|
|
38
38
|
RDF_XML.BD_EQ_PROFILE_URI = "http://entsoe.eu/CIM/EquipmentBoundary/3/1";
|
|
39
|
-
RDF_XML.BD_TP_PROFILE_URI = "http://entsoe.eu/CIM/TopologyBoundary/3/1";
|
|
40
39
|
RDF_XML.BD_EQ_OPER_PROFILE_URI = "http://entsoe.eu/CIM/EquipmentBoundaryOperation/3/1";
|
|
41
40
|
RDF_XML.ADDITIONAL_PROFILE_URI = "http://enervance.com/CIM/AdditionalData/1/0";
|
|
42
41
|
RDF_XML.AMP_I7_PROFILE_URI = "http://amprion.net/CIM/AmprionIntegral7/1/0";
|
|
@@ -55,7 +54,6 @@ RDF_XML.PROFILE_GL = 'GL';
|
|
|
55
54
|
RDF_XML.PROFILE_TP = 'TP';
|
|
56
55
|
RDF_XML.PROFILE_DY = 'DY';
|
|
57
56
|
RDF_XML.PROFILE_EQ_BD = 'EQ_BD';
|
|
58
|
-
RDF_XML.PROFILE_TP_BD = 'TP_BD';
|
|
59
57
|
RDF_XML.PROFILE_ADDITIONAL = 'ADDITIONAL';
|
|
60
58
|
RDF_XML.PROFILE_AMPI7 = 'AMPI7';
|
|
61
59
|
RDF_XML.cgmesProfileNamespaces = [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rdf-xml.js","sourceRoot":"","sources":["../../src/constants/rdf-xml.ts"],"names":[],"mappings":";;;AAAA,MAAa,OAAO;;AAApB,
|
|
1
|
+
{"version":3,"file":"rdf-xml.js","sourceRoot":"","sources":["../../src/constants/rdf-xml.ts"],"names":[],"mappings":"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"}
|
|
@@ -5,7 +5,7 @@ import { PowerTransformerEnd } from '../../model/wires/PowerTransformerEnd.js';
|
|
|
5
5
|
import { MySQLConfig, MysqlController } from '../../util/database/mysql-controller.js';
|
|
6
6
|
import { INTEGRALModelContainer } from '../../model-container/model/INTEGRALModelContainer.js';
|
|
7
7
|
import { ModelContainer } from '../../model-container/model/ModelContainer.js';
|
|
8
|
-
import { ConverterStatus,
|
|
8
|
+
import { ConverterStatus, IExportConfig, Integral7Model, ITargetVoltage } from './interface-i7/data-structures-i7.js';
|
|
9
9
|
import { DefaultValuesConfigInterface } from './interface-i7/default-values-config.interface.js';
|
|
10
10
|
import { I7ExportFrame } from './interface-i7/export-frame-i7.js';
|
|
11
11
|
import { ObjectMappingConfigInterface } from './interface-i7/object-mapping-config.interface.js';
|
|
@@ -13,7 +13,6 @@ import { AsynchronmotorTyp, Einspeisung, Ersatzquerzweig, GeneratorTyp, KDrossel
|
|
|
13
13
|
import { ConfigurableDLConvertOptions, Executor } from './dl-convert/executor.js';
|
|
14
14
|
import { IEnergySourceTypeMapping } from './interface-i7/energy-source.type.mapping.js';
|
|
15
15
|
import { IUuidConfig } from './interface-i7/uuid-config.interface.js';
|
|
16
|
-
import { NetEquivalentOptions } from './tp-bd-profile/model/convert-net-equivalent.model.js';
|
|
17
16
|
export declare class ConverterIntegral7 {
|
|
18
17
|
#private;
|
|
19
18
|
logger: ILogger;
|
|
@@ -64,7 +63,6 @@ export declare class ConverterIntegral7 {
|
|
|
64
63
|
set configurableDLConvertOptions(arg: ConfigurableDLConvertOptions);
|
|
65
64
|
get configurableDLConvertOptions(): ConfigurableDLConvertOptions;
|
|
66
65
|
constructor();
|
|
67
|
-
convertWithNetzbereich(objectMappingConfig: ObjectMappingConfigInterface, defaultValuesConfig: DefaultValuesConfigInterface, energyTypesConfig: any, exportConfig: IExportConfig[], energySourceTypeMappingConfig: IEnergySourceTypeMapping[], configUuid: Array<IUuidConfig>, tempDirPath: string, netEquivalentOptions: NetEquivalentOptions): Promise<ConvertWithNetzbereichResponse>;
|
|
68
66
|
/**
|
|
69
67
|
* Konvertiert das Netz aus der MySQL Datenbank
|
|
70
68
|
* @param defaultValuesConfig Standardwerte zur Verwendung bei nicht gepflegten Angaben
|
|
@@ -148,7 +148,6 @@ const i7_graph_utils_1 = require("./model/i7-graph-utils.js");
|
|
|
148
148
|
const TopologicalNode_1 = require("../../model/topology/TopologicalNode.js");
|
|
149
149
|
const geodata_util_1 = require("../../util/geodata.util.js");
|
|
150
150
|
const DCLineSegment_1 = require("../../model/extensions/integral/dc/DCLineSegment.js");
|
|
151
|
-
const tp_bd_converter_1 = require("./tp-bd-profile/tp-bd-converter.js");
|
|
152
151
|
class ConverterIntegral7 {
|
|
153
152
|
set configurableDLConvertOptions(arg) {
|
|
154
153
|
tslib_1.__classPrivateFieldSet(this, _ConverterIntegral7_configurableDLConvertOptions, arg, "f");
|
|
@@ -156,11 +155,6 @@ class ConverterIntegral7 {
|
|
|
156
155
|
get configurableDLConvertOptions() {
|
|
157
156
|
return tslib_1.__classPrivateFieldGet(this, _ConverterIntegral7_configurableDLConvertOptions, "f");
|
|
158
157
|
}
|
|
159
|
-
/* ---------- ---------- ---------- */
|
|
160
|
-
/* ---------- ---------- ---------- */
|
|
161
|
-
// TP-BD-Converter related properties
|
|
162
|
-
// tpBdConverter: TpBdConverter;
|
|
163
|
-
/* ---------- ---------- ---------- */
|
|
164
158
|
constructor() {
|
|
165
159
|
/** Exportnetze gemäß Konfiguration */
|
|
166
160
|
this.exportFrames = new Map();
|
|
@@ -197,98 +191,6 @@ class ConverterIntegral7 {
|
|
|
197
191
|
this.blocktransformatoren = [];
|
|
198
192
|
_ConverterIntegral7_configurableDLConvertOptions.set(this, {});
|
|
199
193
|
}
|
|
200
|
-
convertWithNetzbereich(objectMappingConfig, defaultValuesConfig, energyTypesConfig, exportConfig, energySourceTypeMappingConfig, configUuid, tempDirPath, netEquivalentOptions) {
|
|
201
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
202
|
-
this.objectMappingConfig = objectMappingConfig;
|
|
203
|
-
this.defaultValuesConfig = defaultValuesConfig;
|
|
204
|
-
this.configUuid = configUuid;
|
|
205
|
-
try {
|
|
206
|
-
yield this.createColumnIndex();
|
|
207
|
-
yield this.configExportFrames(exportConfig, defaultValuesConfig, tempDirPath);
|
|
208
|
-
/** Typinformationen abfragen */
|
|
209
|
-
yield this.convertBetriebsmitteltypenKdrossel();
|
|
210
|
-
yield this.convertBetriebsmitteltypenLeitung();
|
|
211
|
-
yield this.convertBetriebsmitteltypenTrafo();
|
|
212
|
-
yield this.convertBetriebsmitteltypenGenerator();
|
|
213
|
-
yield this.convertBetriebsmitteltypenAsynchronmotor();
|
|
214
|
-
yield this.convertMultiplikationsfaktoren();
|
|
215
|
-
yield this.queryLeitungsAnschlussIDs();
|
|
216
|
-
yield this.queryTrafosAnschlussIDs();
|
|
217
|
-
yield this.queryHgueAnschlussIDs();
|
|
218
|
-
yield this.queryLDroselAnschlussIDs();
|
|
219
|
-
yield this.queryErsatzLaengsAnschlussIDs();
|
|
220
|
-
yield this.queryLkondensatorAnschlussIDs();
|
|
221
|
-
const tpBdConverter = new tp_bd_converter_1.TpBdConverter(this.mysqlController, this.logger, configUuid);
|
|
222
|
-
tpBdConverter.initDatabaseMetaData(this.availableTableNames);
|
|
223
|
-
tpBdConverter.setupLookupMaps(this.integralID2UUID);
|
|
224
|
-
tpBdConverter.setExportTempDirPath(tempDirPath);
|
|
225
|
-
/** BD Profile */
|
|
226
|
-
this.logger.debug('Convert BD Profiles');
|
|
227
|
-
console.log('Convert BD Profiles');
|
|
228
|
-
let boundaryEqUUId = undefined;
|
|
229
|
-
for (const entry of this.exportFramesBoundary.entries()) {
|
|
230
|
-
const geoRegionUUID = entry[0];
|
|
231
|
-
const frame = entry[1];
|
|
232
|
-
boundaryEqUUId = frame.getModelUUID(rdf_xml_1.RDF_XML.PROFILE_EQ_BD);
|
|
233
|
-
const geoRegion = frame.cimModel.getGeographicalRegion(geoRegionUUID);
|
|
234
|
-
if (!geoRegion)
|
|
235
|
-
continue;
|
|
236
|
-
yield this.convertFrame(frame, geoRegion, objectMappingConfig, energyTypesConfig, defaultValuesConfig, energySourceTypeMappingConfig);
|
|
237
|
-
}
|
|
238
|
-
this.logger.debug('Convert MAS Profiles');
|
|
239
|
-
console.log('Convert MAS Profiles');
|
|
240
|
-
for (const entry of this.exportFrames.entries()) {
|
|
241
|
-
const geoRegionUUID = entry[0];
|
|
242
|
-
const frame = entry[1];
|
|
243
|
-
const geoRegion = frame.cimModel.getGeographicalRegion(geoRegionUUID);
|
|
244
|
-
if (!geoRegion)
|
|
245
|
-
continue;
|
|
246
|
-
this.logger.debug(`Convert MAS profile: ${frame.mas}`);
|
|
247
|
-
console.log(`Convert MAS profile: ${frame.mas}`);
|
|
248
|
-
yield this.convertFrame(frame, geoRegion, objectMappingConfig, energyTypesConfig, defaultValuesConfig, energySourceTypeMappingConfig);
|
|
249
|
-
if (boundaryEqUUId) {
|
|
250
|
-
frame.addDependentModel(rdf_xml_1.RDF_XML.PROFILE_EQ, boundaryEqUUId);
|
|
251
|
-
}
|
|
252
|
-
frame.validateCIMModel();
|
|
253
|
-
yield tpBdConverter.convertNetzbereich(frame.cimModel, netEquivalentOptions.netzbereichID);
|
|
254
|
-
frame.purgeData();
|
|
255
|
-
const startTime = perf_hooks.performance.now();
|
|
256
|
-
frame.openXMLModel();
|
|
257
|
-
this.logger.debug(`Serialize MAS profile: ${frame.mas}`);
|
|
258
|
-
console.log(`Serialize MAS profile: ${frame.mas}`);
|
|
259
|
-
frame.serializeModel(defaultValuesConfig);
|
|
260
|
-
yield frame.closeXMLModel();
|
|
261
|
-
let endTime = perf_hooks.performance.now();
|
|
262
|
-
// frame.cimModel.purgeData();
|
|
263
|
-
console.log(`\nSerializeModel ${geoRegion.name} ${(endTime - startTime) / 1000} seconds\n`);
|
|
264
|
-
}
|
|
265
|
-
this.logger.debug('Serialize TP-BD Profiles');
|
|
266
|
-
console.log('Serialize TP-BD Profiles');
|
|
267
|
-
// await tpBdConverter.serialize(defaultValuesConfig);
|
|
268
|
-
// this.logger.debug('Serialize Default Profile');
|
|
269
|
-
// this.exportFrameDefault.openXMLModel();
|
|
270
|
-
// this.exportFrameDefault.serializeModel(defaultValuesConfig);
|
|
271
|
-
// await this.exportFrameDefault.closeXMLModel();
|
|
272
|
-
return {
|
|
273
|
-
status: 'successful',
|
|
274
|
-
message: 'ok',
|
|
275
|
-
data: {
|
|
276
|
-
boundarySets: tpBdConverter.exportTopologyBoundaries,
|
|
277
|
-
frames: [...this.exportFrames.values()]
|
|
278
|
-
// net: frame,
|
|
279
|
-
}
|
|
280
|
-
};
|
|
281
|
-
}
|
|
282
|
-
catch (e) {
|
|
283
|
-
this.logger.error(e);
|
|
284
|
-
console.error('ERROR:' + e);
|
|
285
|
-
return { status: 'error', message: e.toString() };
|
|
286
|
-
}
|
|
287
|
-
finally {
|
|
288
|
-
yield this.dropColumnIndex();
|
|
289
|
-
}
|
|
290
|
-
});
|
|
291
|
-
}
|
|
292
194
|
/**
|
|
293
195
|
* Konvertiert das Netz aus der MySQL Datenbank
|
|
294
196
|
* @param defaultValuesConfig Standardwerte zur Verwendung bei nicht gepflegten Angaben
|
|
@@ -658,6 +560,10 @@ class ConverterIntegral7 {
|
|
|
658
560
|
if (schaltfeldIDs.length)
|
|
659
561
|
yield this.createTopologicalNodes(cimModel);
|
|
660
562
|
logExecutionTime(this.logger, startTime, `createTopologicalNodes()`);
|
|
563
|
+
startTime = perf_hooks.performance.now();
|
|
564
|
+
if (schaltfeldIDs.length)
|
|
565
|
+
yield this.createTopologicalNodes(cimModel);
|
|
566
|
+
logExecutionTime(this.logger, startTime, `createTopologicalNodes()`);
|
|
661
567
|
/** DL Profile */
|
|
662
568
|
if (!frame.boundary) {
|
|
663
569
|
this.executor = new executor_1.Executor(this.mysqlController, this.configUuid);
|
|
@@ -689,6 +595,7 @@ class ConverterIntegral7 {
|
|
|
689
595
|
const netzStreckenlastIds = [...integral7Modell.integralLeitungen.values()].map(leitung => leitung.streckenlastId).filter(id => id !== undefined && id !== null);
|
|
690
596
|
const allLeitungIds = [...new Set([...netzLeitungIds, ...netzHgueLeitungIds, ...netzErsatzlaengszweigIds, ...netzStreckenlastIds]).values()];
|
|
691
597
|
const overall_substation_amount = ((_a = standortIDs === null || standortIDs === void 0 ? void 0 : standortIDs.length) !== null && _a !== void 0 ? _a : 0);
|
|
598
|
+
this.configurableDLConvertOptions;
|
|
692
599
|
const convertOptions = Object.assign(Object.assign({}, JSON.parse(JSON.stringify(this.configurableDLConvertOptions))), { overall_substation_amount: overall_substation_amount, visible_only: true, boundary_standortIds, only: {
|
|
693
600
|
netz_standortIds,
|
|
694
601
|
netz_knotensoIds,
|
|
@@ -1135,7 +1042,7 @@ class ConverterIntegral7 {
|
|
|
1135
1042
|
connectivityNode.boundaryPoint = true;
|
|
1136
1043
|
}
|
|
1137
1044
|
const key = integral_sql_1.I7Objects.KNOTEN_SO + ((_b = connectivityNode === null || connectivityNode === void 0 ? void 0 : connectivityNode.getUUID()) !== null && _b !== void 0 ? _b : '');
|
|
1138
|
-
const junction = new Junction_1.Junction(common_utils_1.CommonUtils.generateUUIDv5(cim_class_names_1.ClassNames.VoltageLevel, this.configUuid, key), (0, util_create_1.createNotation)([(0, utils_2.getName)(i7Data), connectivityNode.getUUID().substring(0, 8),
|
|
1045
|
+
const junction = new Junction_1.Junction(common_utils_1.CommonUtils.generateUUIDv5(cim_class_names_1.ClassNames.VoltageLevel, this.configUuid, key), (0, util_create_1.createNotation)([(0, utils_2.getName)(i7Data), connectivityNode.getUUID().substring(0, 8), "_J"]));
|
|
1139
1046
|
this.createConnection(cimModel, junction, connectivityNode, PhaseCode_1.PhaseCode.ABC, true);
|
|
1140
1047
|
const un = (0, utils_2.getU)(i7Data.un);
|
|
1141
1048
|
const baseVoltage = (0, util_create_1.createBaseVoltageIfNotExists)(cimModel, un, this.configUuid, this.exportFramesBoundary);
|