@enervance/insight-cim-model 0.0.12 → 0.0.14
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/config/westnetz-integral7/integral7-load.config.js.map +1 -1
- package/dist/config/westnetz-neplan/neplan-load.config.js +6 -1
- package/dist/config/westnetz-neplan/neplan-load.config.js.map +1 -1
- package/dist/constants/cim-class-definition.js +19 -0
- package/dist/constants/cim-class-definition.js.map +1 -1
- package/dist/constants/cim-class-names.d.ts +10 -0
- package/dist/constants/cim-class-names.js +10 -0
- package/dist/constants/cim-class-names.js.map +1 -1
- package/dist/constants/init-data/ASSET_HEALTH_EVENTS.js +10 -0
- package/dist/constants/init-data/ASSET_HEALTH_EVENTS.js.map +1 -1
- package/dist/constants/init-data/PSR_TYPES.js +17 -0
- package/dist/constants/init-data/PSR_TYPES.js.map +1 -1
- package/dist/converter/cgmes-validator.d.ts +5 -0
- package/dist/converter/cgmes-validator.js +23 -0
- package/dist/converter/cgmes-validator.js.map +1 -0
- package/dist/converter/integral7/ConverterIntegral7.d.ts +26 -19
- package/dist/converter/integral7/ConverterIntegral7.js +595 -272
- package/dist/converter/integral7/ConverterIntegral7.js.map +1 -1
- package/dist/converter/integral7/model/integral/BaseClass.d.ts +1 -0
- package/dist/converter/integral7/model/integral/BaseClass.js.map +1 -1
- package/dist/converter/integral7/model/interfaces.d.ts +36 -0
- package/dist/converter/integral7/sql/integral.sql.d.ts +10 -0
- package/dist/converter/integral7/sql/integral.sql.js +25 -1
- package/dist/converter/integral7/sql/integral.sql.js.map +1 -1
- package/dist/converter/integral7/utils.d.ts +3 -0
- package/dist/converter/integral7/utils.js +81 -17
- package/dist/converter/integral7/utils.js.map +1 -1
- package/dist/etl-neplan/etl-neplan-csv.d.ts +37 -0
- package/dist/etl-neplan/etl-neplan-csv.js +243 -0
- package/dist/etl-neplan/etl-neplan-csv.js.map +1 -0
- package/dist/etl-neplan/etl-neplan-geo.d.ts +12 -0
- package/dist/etl-neplan/etl-neplan-geo.js +74 -0
- package/dist/etl-neplan/etl-neplan-geo.js.map +1 -0
- package/dist/etl-neplan/neplan-contingency-analysis.js +0 -20
- package/dist/etl-neplan/neplan-contingency-analysis.js.map +1 -1
- package/dist/index.d.ts +8 -0
- package/dist/index.js +16 -0
- package/dist/index.js.map +1 -1
- package/dist/interfaces/default-values-config.d.ts +171 -0
- package/dist/interfaces/default-values-config.js +3 -0
- package/dist/interfaces/default-values-config.js.map +1 -0
- package/dist/interfaces/model/common/ILocation.d.ts +15 -0
- package/dist/interfaces/model/common/ILocation.js +3 -0
- package/dist/interfaces/model/common/ILocation.js.map +1 -0
- package/dist/interfaces/model/core/IIdentifiedObject.d.ts +3 -0
- package/dist/interfaces/model/wires/IACLineSegment.d.ts +10 -0
- package/dist/interfaces/model/wires/IConductor.d.ts +2 -1
- package/dist/model/assets/Asset.d.ts +12 -5
- package/dist/model/assets/Asset.js +86 -21
- package/dist/model/assets/Asset.js.map +1 -1
- package/dist/model/assets/LifecycleDate.d.ts +1 -0
- package/dist/model/assets/LifecycleDate.js +9 -1
- package/dist/model/assets/LifecycleDate.js.map +1 -1
- package/dist/model/common/CoordinateSystem.d.ts +3 -1
- package/dist/model/common/CoordinateSystem.js +13 -1
- package/dist/model/common/CoordinateSystem.js.map +1 -1
- package/dist/model/common/Location.d.ts +5 -3
- package/dist/model/common/Location.js +17 -11
- package/dist/model/common/Location.js.map +1 -1
- package/dist/model/common/PositionPoint.d.ts +9 -3
- package/dist/model/common/PositionPoint.js +23 -1
- package/dist/model/common/PositionPoint.js.map +1 -1
- package/dist/model/common/Status.d.ts +2 -1
- package/dist/model/common/Status.js +9 -1
- package/dist/model/common/Status.js.map +1 -1
- package/dist/model/core/ACDCTerminal.d.ts +2 -0
- package/dist/model/core/ACDCTerminal.js +9 -1
- package/dist/model/core/ACDCTerminal.js.map +1 -1
- package/dist/model/core/BaseVoltage.js.map +1 -1
- package/dist/model/core/Bay.js.map +1 -1
- package/dist/model/core/GeographicalRegion.js.map +1 -1
- package/dist/model/core/IdentifiedObject.d.ts +3 -1
- package/dist/model/core/IdentifiedObject.js +42 -21
- package/dist/model/core/IdentifiedObject.js.map +1 -1
- package/dist/model/core/PowerSystemResource.js.map +1 -1
- package/dist/model/core/SubGeographicalRegion.js.map +1 -1
- package/dist/model/core/Substation.d.ts +1 -0
- package/dist/model/core/Substation.js +3 -2
- package/dist/model/core/Substation.js.map +1 -1
- package/dist/model/core/Terminal.d.ts +3 -1
- package/dist/model/core/Terminal.js +14 -14
- package/dist/model/core/Terminal.js.map +1 -1
- package/dist/model/core/VoltageLevel.js +4 -2
- package/dist/model/core/VoltageLevel.js.map +1 -1
- package/dist/model/dc/ACDCConverter.d.ts +3 -0
- package/dist/model/dc/ACDCConverter.js +56 -14
- package/dist/model/dc/ACDCConverter.js.map +1 -1
- package/dist/model/dc/ACDCConverterDCTerminal.js +2 -6
- package/dist/model/dc/ACDCConverterDCTerminal.js.map +1 -1
- package/dist/model/dc/CsConverter.d.ts +2 -0
- package/dist/model/dc/CsConverter.js +45 -17
- package/dist/model/dc/CsConverter.js.map +1 -1
- package/dist/model/dc/DCConverterUnit.d.ts +2 -0
- package/dist/model/dc/DCConverterUnit.js +13 -7
- package/dist/model/dc/DCConverterUnit.js.map +1 -1
- package/dist/model/dc/DCLine.js.map +1 -1
- package/dist/model/dc/DCLineSegment.js +4 -8
- package/dist/model/dc/DCLineSegment.js.map +1 -1
- package/dist/model/dc/VsConverter.d.ts +2 -0
- package/dist/model/dc/VsConverter.js +53 -5
- package/dist/model/dc/VsConverter.js.map +1 -1
- package/dist/model/equivalents/EquivalentBranch.d.ts +2 -0
- package/dist/model/equivalents/EquivalentBranch.js +63 -0
- package/dist/model/equivalents/EquivalentBranch.js.map +1 -1
- package/dist/model/extensions/amprion/wires/AMPRIONSeriesCompensator.js +0 -3
- package/dist/model/extensions/amprion/wires/AMPRIONSeriesCompensator.js.map +1 -1
- package/dist/model/extensions/enervance/wires/EVACLineSegment.d.ts +16 -0
- package/{src/model/wires/PetersenCoil.ts → dist/model/extensions/enervance/wires/EVACLineSegment.js} +43 -47
- package/dist/model/extensions/enervance/wires/EVACLineSegment.js.map +1 -0
- package/dist/model/extensions/enervance/wires/EVACLineSubSegment.d.ts +25 -0
- package/dist/model/extensions/enervance/wires/EVACLineSubSegment.js +126 -0
- package/dist/model/extensions/enervance/wires/EVACLineSubSegment.js.map +1 -0
- package/dist/model/extensions/neplan-westnetz/assets/WNFacility.js +4 -12
- package/dist/model/extensions/neplan-westnetz/assets/WNFacility.js.map +1 -1
- package/dist/model/extensions/neplan-westnetz/common/WNLocation.d.ts +18 -0
- package/dist/model/extensions/neplan-westnetz/common/WNLocation.js +82 -0
- package/dist/model/extensions/neplan-westnetz/common/WNLocation.js.map +1 -0
- package/dist/model/extensions/neplan-westnetz/core/WNConnectivityNode.d.ts +5 -0
- package/dist/model/extensions/neplan-westnetz/core/WNConnectivityNode.js +23 -0
- package/dist/model/extensions/neplan-westnetz/core/WNConnectivityNode.js.map +1 -1
- package/dist/model/generation/GeneratingUnit.d.ts +2 -0
- package/dist/model/generation/GeneratingUnit.js +23 -0
- package/dist/model/generation/GeneratingUnit.js.map +1 -1
- package/dist/model/generation/ThermalGeneratingUnit.js.map +1 -1
- package/dist/model/loadmodel/ConformLoad.d.ts +6 -1
- package/dist/model/loadmodel/ConformLoad.js +48 -3
- package/dist/model/loadmodel/ConformLoad.js.map +1 -1
- package/dist/model/loadmodel/ConformLoadGroup.d.ts +7 -0
- package/dist/model/loadmodel/ConformLoadGroup.js +48 -0
- package/dist/model/loadmodel/ConformLoadGroup.js.map +1 -0
- package/dist/model/loadmodel/EnergyArea.d.ts +3 -0
- package/dist/model/loadmodel/EnergyArea.js +8 -0
- package/dist/model/loadmodel/EnergyArea.js.map +1 -0
- package/dist/model/loadmodel/LoadArea.d.ts +10 -0
- package/dist/model/loadmodel/LoadArea.js +51 -0
- package/dist/model/loadmodel/LoadArea.js.map +1 -0
- package/dist/model/loadmodel/LoadGroup.d.ts +8 -0
- package/dist/model/loadmodel/LoadGroup.js +21 -0
- package/dist/model/loadmodel/LoadGroup.js.map +1 -0
- package/dist/model/loadmodel/SubLoadArea.d.ts +14 -0
- package/dist/model/loadmodel/SubLoadArea.js +63 -0
- package/dist/model/loadmodel/SubLoadArea.js.map +1 -0
- package/dist/model/model/Model.d.ts +40 -11
- package/dist/model/model/Model.js +100 -6
- package/dist/model/model/Model.js.map +1 -1
- package/dist/model/operationallimits/CurrentLimit.js.map +1 -1
- package/dist/model/operationallimits/OperationalLimitSet.js.map +1 -1
- package/dist/model/wires/ACLineSegment.d.ts +6 -2
- package/dist/model/wires/ACLineSegment.js +51 -44
- package/dist/model/wires/ACLineSegment.js.map +1 -1
- package/dist/model/wires/AsynchronousMachine.d.ts +2 -1
- package/dist/model/wires/AsynchronousMachine.js +34 -34
- package/dist/model/wires/AsynchronousMachine.js.map +1 -1
- package/dist/model/wires/BusbarSection.d.ts +2 -0
- package/dist/model/wires/BusbarSection.js +6 -0
- package/dist/model/wires/BusbarSection.js.map +1 -1
- package/dist/model/wires/Conductor.d.ts +4 -1
- package/dist/model/wires/Conductor.js +15 -6
- package/dist/model/wires/Conductor.js.map +1 -1
- package/dist/model/wires/EnergyConsumer.d.ts +6 -2
- package/dist/model/wires/EnergyConsumer.js +24 -3
- package/dist/model/wires/EnergyConsumer.js.map +1 -1
- package/dist/model/wires/EnergySource.d.ts +8 -4
- package/dist/model/wires/EnergySource.js +37 -21
- package/dist/model/wires/EnergySource.js.map +1 -1
- package/dist/model/wires/ExternalNetworkInjection.d.ts +2 -0
- package/dist/model/wires/ExternalNetworkInjection.js +81 -1
- package/dist/model/wires/ExternalNetworkInjection.js.map +1 -1
- package/dist/model/wires/Line.js.map +1 -1
- package/dist/model/wires/LinearShuntCompensator.d.ts +15 -0
- package/dist/model/wires/LinearShuntCompensator.js +96 -0
- package/dist/model/wires/LinearShuntCompensator.js.map +1 -0
- package/dist/model/wires/PowerTransformer.js +0 -3
- package/dist/model/wires/PowerTransformer.js.map +1 -1
- package/dist/model/wires/PowerTransformerEnd.js.map +1 -1
- package/dist/model/wires/RatioTapChanger.js.map +1 -1
- package/dist/model/wires/RatioTapChangerTable.js.map +1 -1
- package/dist/model/wires/RegulatingCondEq.d.ts +3 -0
- package/dist/model/wires/RegulatingCondEq.js +17 -6
- package/dist/model/wires/RegulatingCondEq.js.map +1 -1
- package/dist/model/wires/RegulatingControl.d.ts +2 -0
- package/dist/model/wires/RegulatingControl.js +43 -7
- package/dist/model/wires/RegulatingControl.js.map +1 -1
- package/dist/model/wires/RotatingMachine.d.ts +2 -0
- package/dist/model/wires/RotatingMachine.js +17 -0
- package/dist/model/wires/RotatingMachine.js.map +1 -1
- package/dist/model/wires/SeriesCompensator.d.ts +2 -1
- package/dist/model/wires/SeriesCompensator.js +42 -42
- package/dist/model/wires/SeriesCompensator.js.map +1 -1
- package/dist/model/wires/ShuntCompensator.d.ts +17 -0
- package/dist/model/wires/ShuntCompensator.js +50 -0
- package/dist/model/wires/ShuntCompensator.js.map +1 -0
- package/dist/model/wires/SynchronousMachine.d.ts +2 -0
- package/dist/model/wires/SynchronousMachine.js +70 -5
- package/dist/model/wires/SynchronousMachine.js.map +1 -1
- package/dist/model/wires/TapChangerControl.js.map +1 -1
- package/dist/util/utils.d.ts +8 -1
- package/dist/util/utils.js +13 -38
- package/dist/util/utils.js.map +1 -1
- package/dist/util/xml/xml.serializer.d.ts +3 -1
- package/dist/util/xml/xml.serializer.js +46 -45
- package/dist/util/xml/xml.serializer.js.map +1 -1
- package/package.json +4 -1
- package/.nycrc +0 -28
- package/jasmine/jasmine_all.json +0 -13
- package/jasmine/jasmine_fuseki_interface.json +0 -13
- package/jasmine/jasmine_fuseki_psdm.json +0 -13
- package/jasmine/jasmine_integral_7.json +0 -13
- package/jasmine/jasmine_psdm.json +0 -13
- package/src/config/lew-sincal/lew-sincal-load.config.ts +0 -58
- package/src/config/power-system-datamodel/psdm-load.config.ts +0 -57
- package/src/config/westnetz-integral7/integral7-load.config.ts +0 -53
- package/src/config/westnetz-neplan/callbacks/cb-connectivitynode.ts +0 -159
- package/src/config/westnetz-neplan/callbacks/cb-psr.ts +0 -30
- package/src/config/westnetz-neplan/callbacks/cb-wnenergyconsumer.ts +0 -70
- package/src/config/westnetz-neplan/neplan-load.config.ts +0 -131
- package/src/config/westnetz-neplan/property-handler-westenergy.config.ts +0 -52
- package/src/constants/cim-class-definition.ts +0 -169
- package/src/constants/cim-class-names.ts +0 -118
- package/src/constants/cim-constants.ts +0 -5
- package/src/constants/init-data/ASSET_HEALTH_EVENTS.ts +0 -45
- package/src/constants/init-data/ASSSET_OWNER.ts +0 -11
- package/src/constants/init-data/JENA_SPARQL.ts +0 -328
- package/src/constants/init-data/PSR_TYPES.ts +0 -75
- package/src/constants/init-data/xml/AssetHealtEvent.xml +0 -45
- package/src/constants/init-data/xml/AssetOwner.xml +0 -11
- package/src/constants/init-data/xml/PsrType.xml +0 -80
- package/src/constants/rdf-xml.ts +0 -52
- package/src/converter/PSDM/ConverterPowerSystemDataModel.ts +0 -546
- package/src/converter/PSDM/model/FixedFeedIn.ts +0 -28
- package/src/converter/PSDM/model/Line.ts +0 -39
- package/src/converter/PSDM/model/LineType.ts +0 -29
- package/src/converter/PSDM/model/Load.ts +0 -38
- package/src/converter/PSDM/model/Node.ts +0 -16
- package/src/converter/PSDM/model/TimeSeriesMapping.ts +0 -13
- package/src/converter/PSDM/model/Transformer.ts +0 -34
- package/src/converter/PSDM/model/TransformerType.ts +0 -49
- package/src/converter/PSDM/model/geo/Crs.ts +0 -4
- package/src/converter/PSDM/model/geo/GeoPosition.ts +0 -7
- package/src/converter/integral7/ConverterIntegral7.ts +0 -3916
- package/src/converter/integral7/config/db-config.ts +0 -13
- package/src/converter/integral7/config/generation-unit-fuel-types.ts +0 -51
- package/src/converter/integral7/config/integral-prefix.ts +0 -20
- package/src/converter/integral7/model/integral/BaseClass.ts +0 -28
- package/src/converter/integral7/model/integral/BaseClassNsg.ts +0 -21
- package/src/converter/integral7/model/integral/Hgueleitung.ts +0 -12
- package/src/converter/integral7/model/integral/KnotenSo.ts +0 -41
- package/src/converter/integral7/model/integral/KnotenSoNsg.ts +0 -24
- package/src/converter/integral7/model/integral/Kopfstation.ts +0 -46
- package/src/converter/integral7/model/integral/Leitung.ts +0 -73
- package/src/converter/integral7/model/integral/LeitungNsg.ts +0 -46
- package/src/converter/integral7/model/integral/Point.ts +0 -14
- package/src/converter/integral7/model/integral/Schaltanlage.ts +0 -151
- package/src/converter/integral7/model/integral/SchaltanlageNSG.ts +0 -30
- package/src/converter/integral7/model/integral/Schaltanlagenabschnitt.ts +0 -44
- package/src/converter/integral7/model/integral/SchaltanlagenabschnittNsg.ts +0 -27
- package/src/converter/integral7/model/integral/Schaltfeld.ts +0 -116
- package/src/converter/integral7/model/integral/SchaltfeldNsg.ts +0 -35
- package/src/converter/integral7/model/integral/Standort.ts +0 -53
- package/src/converter/integral7/model/integral/StandortNsg.ts +0 -24
- package/src/converter/integral7/model/integral/Trafo2w.ts +0 -22
- package/src/converter/integral7/model/integral/Trafo2wNsg.ts +0 -13
- package/src/converter/integral7/model/interfaces.ts +0 -450
- package/src/converter/integral7/sql/integral.sql.ts +0 -345
- package/src/converter/integral7/utils-schema.ts +0 -50
- package/src/converter/integral7/utils-trafo3w.ts +0 -321
- package/src/converter/integral7/utils.ts +0 -693
- package/src/etl-neplan/etl-neplan-contingency-analysis.ts +0 -188
- package/src/etl-neplan/etl-neplan-feederline.ts +0 -229
- package/src/etl-neplan/etl-neplan.ts +0 -344
- package/src/etl-neplan/neplan-contingency-analysis.ts +0 -571
- package/src/graph/Types.ts +0 -7
- package/src/graph/connections/connection.ts +0 -29
- package/src/graph/edges/edge.ts +0 -27
- package/src/graph/graph-interfaces.ts +0 -21
- package/src/graph/graph-util.ts +0 -158
- package/src/graph/graph.ts +0 -84
- package/src/graph/nodes/node.ts +0 -43
- package/src/index.ts +0 -307
- package/src/interfaces/model/assets/IAsset.ts +0 -5
- package/src/interfaces/model/assets/IAssetContainer.ts +0 -5
- package/src/interfaces/model/assets/IFacility.ts +0 -5
- package/src/interfaces/model/common/IDocument.ts +0 -5
- package/src/interfaces/model/core/IACDCTerminal.ts +0 -8
- package/src/interfaces/model/core/IBaseVoltage.ts +0 -7
- package/src/interfaces/model/core/IConductingEquipment.ts +0 -16
- package/src/interfaces/model/core/IConnectivityNode.ts +0 -27
- package/src/interfaces/model/core/IConnectivityNodeContainer.ts +0 -11
- package/src/interfaces/model/core/IEquipment.ts +0 -11
- package/src/interfaces/model/core/IEquipmentContainer.ts +0 -12
- package/src/interfaces/model/core/IFeeder.ts +0 -21
- package/src/interfaces/model/core/IIdentifiedObject.ts +0 -108
- package/src/interfaces/model/core/IPowerSystemResource.ts +0 -3
- package/src/interfaces/model/core/ISubstation.ts +0 -8
- package/src/interfaces/model/core/ITerminal.ts +0 -57
- package/src/interfaces/model/core/IVoltageLevel.ts +0 -14
- package/src/interfaces/model/diagram/IDiagram.ts +0 -21
- package/src/interfaces/model/diagram/IDiagramObject.ts +0 -21
- package/src/interfaces/model/diagram/IDiagramObjectPoint.ts +0 -16
- package/src/interfaces/model/domain/IActivePower.ts +0 -3
- package/src/interfaces/model/domain/IAngleDegrees.ts +0 -3
- package/src/interfaces/model/domain/IApparentPower.ts +0 -3
- package/src/interfaces/model/domain/ICurrentFlow.ts +0 -3
- package/src/interfaces/model/domain/IDataType.ts +0 -9
- package/src/interfaces/model/domain/IReactivePower.ts +0 -3
- package/src/interfaces/model/domain/IVoltage.ts +0 -3
- package/src/interfaces/model/domain/UnitMultiplier.ts +0 -13
- package/src/interfaces/model/domain/UnitSymbol.ts +0 -30
- package/src/interfaces/model/enums/EnumShapeInfo.ts +0 -5
- package/src/interfaces/model/faults/IFault.ts +0 -11
- package/src/interfaces/model/model/IModel.ts +0 -91
- package/src/interfaces/model/operations/IOutage.ts +0 -23
- package/src/interfaces/model/operations/ISwitchingAction.ts +0 -9
- package/src/interfaces/model/operations/ISwitchingPlan.ts +0 -26
- package/src/interfaces/model/statevariables/ISvPowerFlow.ts +0 -20
- package/src/interfaces/model/statevariables/ISvVoltage.ts +0 -16
- package/src/interfaces/model/topology/ITopologicalIsland.ts +0 -11
- package/src/interfaces/model/topology/ITopologicalNode.ts +0 -24
- package/src/interfaces/model/wires/IACLineSegment.ts +0 -4
- package/src/interfaces/model/wires/IBusbarSection.ts +0 -4
- package/src/interfaces/model/wires/ICompositeSwitch.ts +0 -6
- package/src/interfaces/model/wires/IConductor.ts +0 -6
- package/src/interfaces/model/wires/IConnector.ts +0 -5
- package/src/interfaces/model/wires/IDisconnector.ts +0 -4
- package/src/interfaces/model/wires/IEnergyConsumer.ts +0 -7
- package/src/interfaces/model/wires/IEnergySource.ts +0 -20
- package/src/interfaces/model/wires/IExternalNetworkInjection.ts +0 -34
- package/src/interfaces/model/wires/ILoadBreakSwitch.ts +0 -4
- package/src/interfaces/model/wires/IPowerTransformer.ts +0 -7
- package/src/interfaces/model/wires/IPowerTransformerEnd.ts +0 -10
- package/src/interfaces/model/wires/IProtectedSwitch.ts +0 -4
- package/src/interfaces/model/wires/IRegulatingCondEq.ts +0 -4
- package/src/interfaces/model/wires/ISwitch.ts +0 -11
- package/src/interfaces/model/wires/ITransformerEnd.ts +0 -14
- package/src/interfaces/observable/IObservable.ts +0 -6
- package/src/interfaces/observable/IObserver.ts +0 -3
- package/src/interfaces/persistence-interfaces.ts +0 -12
- package/src/interfaces/schema-settings/ShapeInfos.ts +0 -28
- package/src/model/assetinfo/AssetInfo.ts +0 -13
- package/src/model/assetinfo/CableInfo.ts +0 -8
- package/src/model/assetinfo/OverheadWireInfo.ts +0 -8
- package/src/model/assetinfo/PowerTransformer2WInfo.ts +0 -13
- package/src/model/assetinfo/PowerTransformer3WInfo.ts +0 -18
- package/src/model/assetinfo/PowerTransformerInfo.ts +0 -14
- package/src/model/assetinfo/TapChangerInfo.ts +0 -60
- package/src/model/assetinfo/TransformerEndInfo.ts +0 -38
- package/src/model/assetinfo/WireInfo.ts +0 -22
- package/src/model/assets/AggregateScore.ts +0 -9
- package/src/model/assets/AnalyticScore.ts +0 -41
- package/src/model/assets/Asset.ts +0 -164
- package/src/model/assets/AssetContainer.ts +0 -11
- package/src/model/assets/AssetDeployment.ts +0 -122
- package/src/model/assets/AssetHealthEvent.ts +0 -73
- package/src/model/assets/AssetOrganisationRole.ts +0 -51
- package/src/model/assets/AssetOwner.ts +0 -54
- package/src/model/assets/DeploymentDate.ts +0 -20
- package/src/model/assets/DeploymentStateKind.ts +0 -7
- package/src/model/assets/Facility.ts +0 -107
- package/src/model/assets/FacilityKind.ts +0 -9
- package/src/model/assets/HealthScore.ts +0 -59
- package/src/model/assets/LifecycleDate.ts +0 -17
- package/src/model/assets/RiskScore.ts +0 -7
- package/src/model/assets/TransformerApplicationKind.ts +0 -6
- package/src/model/common/ActivityRecord.ts +0 -93
- package/src/model/common/CoordinateSystem.ts +0 -81
- package/src/model/common/Document.ts +0 -9
- package/src/model/common/Location.ts +0 -237
- package/src/model/common/OrganisationRole.ts +0 -7
- package/src/model/common/PositionPoint.ts +0 -121
- package/src/model/common/Status.ts +0 -11
- package/src/model/core/ACDCTerminal.ts +0 -63
- package/src/model/core/BaseVoltage.ts +0 -129
- package/src/model/core/Bay.ts +0 -178
- package/src/model/core/ConductingEquipment.ts +0 -182
- package/src/model/core/ConnectivityNode.ts +0 -417
- package/src/model/core/ConnectivityNodeContainer.ts +0 -26
- package/src/model/core/Curve.ts +0 -55
- package/src/model/core/CurveData.ts +0 -74
- package/src/model/core/CurveStyle.ts +0 -4
- package/src/model/core/Equipment.ts +0 -184
- package/src/model/core/EquipmentContainer.ts +0 -40
- package/src/model/core/Feeder.ts +0 -186
- package/src/model/core/GeographicalRegion.ts +0 -34
- package/src/model/core/IdentifiedObject.ts +0 -393
- package/src/model/core/PSRType.ts +0 -164
- package/src/model/core/PhaseCode.ts +0 -23
- package/src/model/core/PowerSystemResource.ts +0 -109
- package/src/model/core/SubGeographicalRegion.ts +0 -58
- package/src/model/core/Substation.ts +0 -290
- package/src/model/core/Terminal.ts +0 -422
- package/src/model/core/VoltageLevel.ts +0 -192
- package/src/model/dc/ACDCConverter.ts +0 -66
- package/src/model/dc/ACDCConverterDCTerminal.ts +0 -64
- package/src/model/dc/CsConverter.ts +0 -68
- package/src/model/dc/CsOperatingModeKind.ts +0 -4
- package/src/model/dc/CsPpccControlKind.ts +0 -5
- package/src/model/dc/DCBaseTerminal.ts +0 -30
- package/src/model/dc/DCConductingEquipment.ts +0 -8
- package/src/model/dc/DCConverterOperatingModeKind.ts +0 -6
- package/src/model/dc/DCConverterUnit.ts +0 -60
- package/src/model/dc/DCEquipmentContainer.ts +0 -8
- package/src/model/dc/DCLine.ts +0 -56
- package/src/model/dc/DCLineSegment.ts +0 -81
- package/src/model/dc/DCNode.ts +0 -49
- package/src/model/dc/DCPolarityKind.ts +0 -5
- package/src/model/dc/DCTerminal.ts +0 -45
- package/src/model/dc/VsConverter.ts +0 -48
- package/src/model/dc/VsPpccControlKind.ts +0 -7
- package/src/model/dc/VsQpccControlKind.ts +0 -5
- package/src/model/diagram/Diagram.ts +0 -136
- package/src/model/diagram/DiagramObject.ts +0 -338
- package/src/model/diagram/DiagramObjectPoint.ts +0 -196
- package/src/model/diagram/DiagramStyle.ts +0 -32
- package/src/model/diagram/OrientationKind.ts +0 -4
- package/src/model/domain/ActivePower.ts +0 -14
- package/src/model/domain/AngleDegrees.ts +0 -14
- package/src/model/domain/ApparentPower.ts +0 -14
- package/src/model/domain/Capacitance.ts +0 -15
- package/src/model/domain/CapacitancePerLength.ts +0 -15
- package/src/model/domain/ConductancePerLength.ts +0 -14
- package/src/model/domain/CurrentFlow.ts +0 -14
- package/src/model/domain/Reactance.ts +0 -15
- package/src/model/domain/ReactancePerLength.ts +0 -14
- package/src/model/domain/ReactivePower.ts +0 -14
- package/src/model/domain/Resistance.ts +0 -14
- package/src/model/domain/ResistancePerLength.ts +0 -14
- package/src/model/domain/UnitMultiplier.ts +0 -13
- package/src/model/domain/UnitSymbol.ts +0 -30
- package/src/model/domain/Voltage.ts +0 -14
- package/src/model/equivalents/EquivalentBranch.ts +0 -203
- package/src/model/equivalents/EquivalentEquipment.ts +0 -8
- package/src/model/extensions/amprion/core/AMPRIONBay.ts +0 -106
- package/src/model/extensions/amprion/core/AMPRIONConnectivityNode.ts +0 -51
- package/src/model/extensions/amprion/model/AmprionModel.ts +0 -92
- package/src/model/extensions/amprion/project/AMPRIONConstructionProject.ts +0 -174
- package/src/model/extensions/amprion/project/AMPRIONConstructionProjectBundle.ts +0 -89
- package/src/model/extensions/amprion/project/AMPRIONConstructionProjectPlan.ts +0 -64
- package/src/model/extensions/amprion/project/AMPRIONErpProject.ts +0 -21
- package/src/model/extensions/amprion/project/AMPRIONErpProjectPhase.ts +0 -89
- package/src/model/extensions/amprion/project/AMPRIONErpProjectStructure.ts +0 -36
- package/src/model/extensions/amprion/project/AMPRIONProjectPriorityKind.ts +0 -5
- package/src/model/extensions/amprion/wires/AMPRIONSeriesCompensator.ts +0 -53
- package/src/model/extensions/enervance/assets/EVImportanceScore.ts +0 -58
- package/src/model/extensions/enervance/core/EVTerminal.ts +0 -63
- package/src/model/extensions/enervance/operations/EVTerminalAction.ts +0 -144
- package/src/model/extensions/neplan-westnetz/assets/WNFacility.ts +0 -121
- package/src/model/extensions/neplan-westnetz/core/WNConnectivityNode.ts +0 -344
- package/src/model/extensions/neplan-westnetz/core/WNFeeder.ts +0 -133
- package/src/model/extensions/neplan-westnetz/faults/WNFaultConnectivityNode.ts +0 -113
- package/src/model/extensions/neplan-westnetz/operations/WNOutage.ts +0 -111
- package/src/model/extensions/neplan-westnetz/wires/WNEnergyConsumer.ts +0 -451
- package/src/model/faults/EquipmentFault.ts +0 -9
- package/src/model/faults/Fault.ts +0 -41
- package/src/model/faults/LineFault.ts +0 -10
- package/src/model/generation/FossilFuel.ts +0 -53
- package/src/model/generation/FuelType.ts +0 -8
- package/src/model/generation/GeneratingUnit.ts +0 -157
- package/src/model/generation/GeneratorControlSource.ts +0 -6
- package/src/model/generation/HydroEnergyConversionKind.ts +0 -4
- package/src/model/generation/HydroGeneratingUnit.ts +0 -14
- package/src/model/generation/HydroPlantStorageKind.ts +0 -5
- package/src/model/generation/HydroPowerPlant.ts +0 -13
- package/src/model/generation/HydroPump.ts +0 -13
- package/src/model/generation/NuclearGeneratingUnit.ts +0 -8
- package/src/model/generation/SolarGeneratingUnit.ts +0 -8
- package/src/model/generation/ThermalGeneratingUnit.ts +0 -42
- package/src/model/generation/WindGenUnitKind.ts +0 -4
- package/src/model/generation/WindGeneratingUnit.ts +0 -84
- package/src/model/loadmodel/ConformLoad.ts +0 -34
- package/src/model/model/Model.ts +0 -1253
- package/src/model/operationallimits/CurrentLimit.ts +0 -92
- package/src/model/operationallimits/ENTSOEOperationalLimitType.ts +0 -5
- package/src/model/operationallimits/LimitTypeKind.ts +0 -9
- package/src/model/operationallimits/OperationalLimit.ts +0 -68
- package/src/model/operationallimits/OperationalLimitDirectionKind.ts +0 -5
- package/src/model/operationallimits/OperationalLimitSet.ts +0 -124
- package/src/model/operationallimits/OperationalLimitType.ts +0 -94
- package/src/model/operations/Outage.ts +0 -68
- package/src/model/operations/SwitchAction.ts +0 -121
- package/src/model/operations/SwitchActionKind.ts +0 -6
- package/src/model/operations/SwitchingAction.ts +0 -43
- package/src/model/operations/SwitchingPlan.ts +0 -141
- package/src/model/operations/UnplannedOutage.ts +0 -9
- package/src/model/statevariables/StateVariable.ts +0 -28
- package/src/model/statevariables/SvPowerFlow.ts +0 -75
- package/src/model/statevariables/SvStatus.ts +0 -51
- package/src/model/statevariables/SvTapStep.ts +0 -54
- package/src/model/statevariables/SvVoltage.ts +0 -74
- package/src/model/topology/TopologicalIsland.ts +0 -57
- package/src/model/topology/TopologicalNode.ts +0 -203
- package/src/model/wires/ACLineSegment.ts +0 -309
- package/src/model/wires/AsynchronousMachine.ts +0 -93
- package/src/model/wires/AsynchronousMachineKind.ts +0 -5
- package/src/model/wires/Breaker.ts +0 -82
- package/src/model/wires/BusbarSection.ts +0 -70
- package/src/model/wires/Clamp.ts +0 -33
- package/src/model/wires/CompositeSwitch.ts +0 -13
- package/src/model/wires/Conductor.ts +0 -55
- package/src/model/wires/Connector.ts +0 -16
- package/src/model/wires/Cut.ts +0 -7
- package/src/model/wires/Disconnector.ts +0 -120
- package/src/model/wires/EarthFaultCompensator.ts +0 -20
- package/src/model/wires/EnergyConsumer.ts +0 -255
- package/src/model/wires/EnergySource.ts +0 -337
- package/src/model/wires/ExternalNetworkInjection.ts +0 -276
- package/src/model/wires/Ground.ts +0 -40
- package/src/model/wires/GroundDisconnector.ts +0 -39
- package/src/model/wires/Jumper.ts +0 -8
- package/src/model/wires/Junction.ts +0 -57
- package/src/model/wires/Line.ts +0 -117
- package/src/model/wires/LoadBreakSwitch.ts +0 -107
- package/src/model/wires/PetersenCoilModeKind.ts +0 -5
- package/src/model/wires/Plant.ts +0 -12
- package/src/model/wires/PowerTransformer.ts +0 -231
- package/src/model/wires/PowerTransformerEnd.ts +0 -168
- package/src/model/wires/ProtectedSwitch.ts +0 -9
- package/src/model/wires/RatioTapChanger.ts +0 -96
- package/src/model/wires/RatioTapChangerTable.ts +0 -35
- package/src/model/wires/RatioTapChangerTablePoint.ts +0 -45
- package/src/model/wires/ReactiveCapabilityCurve.ts +0 -35
- package/src/model/wires/Recloser.ts +0 -32
- package/src/model/wires/RegulatingCondEq.ts +0 -67
- package/src/model/wires/RegulatingControl.ts +0 -217
- package/src/model/wires/RegulatingControlModeKind.ts +0 -11
- package/src/model/wires/RotatingMachine.ts +0 -172
- package/src/model/wires/SeriesCompensator.ts +0 -166
- package/src/model/wires/ShortCircuitRotorKind.ts +0 -6
- package/src/model/wires/Switch.ts +0 -230
- package/src/model/wires/SynchronousMachine.ts +0 -267
- package/src/model/wires/SynchronousMachineKind.ts +0 -9
- package/src/model/wires/SynchronousMachineOperatingMode.ts +0 -5
- package/src/model/wires/TapChanger.ts +0 -55
- package/src/model/wires/TapChangerControl.ts +0 -32
- package/src/model/wires/TapChangerTablePoint.ts +0 -41
- package/src/model/wires/TransformerControlMode.ts +0 -4
- package/src/model/wires/TransformerEnd.ts +0 -143
- package/src/model/wires/WindingConnection.ts +0 -9
- package/src/package.json +0 -16
- package/src/util/datatype-converter.ts +0 -48
- package/src/util/sparql/sparql-building-block.ts +0 -43
- package/src/util/sparql/sparql-utils.ts +0 -150
- package/src/util/util-create.ts +0 -148
- package/src/util/util-search.ts +0 -40
- package/src/util/util-topology.ts +0 -175
- package/src/util/utils.ts +0 -255
- package/src/util/xml/utils.parser.ts +0 -29
- package/src/util/xml/xml.parser.ts +0 -107
- package/src/util/xml/xml.serializer.ts +0 -245
- package/test/apache-jena-fuseki-interface/apache-jena-fuseki-neplan-1.tests.sp-ec.ts +0 -838
- package/test/apache-jena-fuseki-interface/apache-jena-fuseki-neplan-2.tests.sp-ec.ts +0 -216
- package/test/apache-jena-fuseki-interface/apache-jena-fuseki-neplan-katarina-ruhrau.tests.spec.ts +0 -223
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/LICENSE +0 -617
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/NOTICE +0 -216
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/README +0 -62
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/bin/s-delete +0 -725
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/bin/s-get +0 -725
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/bin/s-head +0 -725
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/bin/s-post +0 -725
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/bin/s-put +0 -725
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/bin/s-query +0 -725
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/bin/s-update +0 -725
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/bin/s-update-form +0 -725
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/bin/soh +0 -725
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/fuseki +0 -512
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/fuseki-backup +0 -34
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/fuseki-server +0 -95
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/fuseki-server.bat +0 -28
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/fuseki-server.jar +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/fuseki.service +0 -59
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/fuseki.war +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/config.ttl +0 -30
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/configuration/test.ttl +0 -50
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/shiro.ini +0 -38
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/GOSP.dat +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/GOSP.idn +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/GPOS.dat +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/GPOS.idn +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/GSPO.dat +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/GSPO.idn +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/OSP.dat +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/OSP.idn +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/OSPG.dat +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/OSPG.idn +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/POS.dat +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/POS.idn +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/POSG.dat +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/POSG.idn +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/SPO.dat +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/SPO.idn +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/SPOG.dat +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/SPOG.idn +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/journal.jrnl +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/node2id.dat +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/node2id.idn +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/nodes.dat +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/prefix2id.dat +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/prefix2id.idn +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/prefixIdx.dat +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/prefixIdx.idn +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/prefixes.dat +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/system/tdb.cfg +0 -32
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/templates/config-mem +0 -27
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/templates/config-service +0 -23
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/templates/config-tdb +0 -31
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/templates/config-tdb-dir +0 -30
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/templates/config-tdb-mem +0 -30
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/templates/config-tdb2 +0 -31
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/templates/config-tdb2-dir +0 -30
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/run/templates/config-tdb2-mem +0 -30
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/WEB-INF/web.xml +0 -332
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/admin-logs.html +0 -73
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/css/bootstrap-select.min.css +0 -7
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/css/bootstrap-theme.css.map +0 -1
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/css/bootstrap-theme.min.css +0 -7
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/css/bootstrap.css.map +0 -1
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/css/bootstrap.min.css +0 -7
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/css/codemirror.css +0 -301
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/css/codemirror.min.css +0 -1
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/css/font-awesome.min.css +0 -4
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/css/fui.css +0 -191
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/css/jquery.dataTables.css +0 -220
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/css/jquery.fileupload-noscript.css +0 -22
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/css/jquery.fileupload-ui-noscript.css +0 -17
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/css/jquery.fileupload-ui.css +0 -57
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/css/jquery.fileupload.css +0 -36
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/css/pivot.min.css +0 -1
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/css/qonsole.css +0 -172
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/css/yasqe.min.css +0 -1
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/css/yasr.min.css +0 -1
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/dataset.html +0 -247
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/documentation.html +0 -83
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/fonts/FontAwesome.otf +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/fonts/fontawesome-webfont.eot +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/fonts/fontawesome-webfont.svg +0 -504
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/fonts/fontawesome-webfont.ttf +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/fonts/fontawesome-webfont.woff +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/fonts/glyphicons-halflings-regular.eot +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/fonts/glyphicons-halflings-regular.svg +0 -229
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/fonts/glyphicons-halflings-regular.ttf +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/fonts/glyphicons-halflings-regular.woff +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/images/back_disabled.png +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/images/back_enabled.png +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/images/back_enabled_hover.png +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/images/favicon.ico +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/images/forward_disabled.png +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/images/forward_enabled.png +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/images/forward_enabled_hover.png +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/images/jena-logo-notext-small.png +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/images/sort_asc.png +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/images/sort_asc_disabled.png +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/images/sort_both.png +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/images/sort_desc.png +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/images/sort_desc_disabled.png +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/images/wait30.gif +0 -0
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/index.html +0 -101
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/controllers/dataset-controller.js +0 -69
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/controllers/index-controller.js +0 -50
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/controllers/manage-controller.js +0 -39
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/controllers/query-controller.js +0 -72
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/controllers/upload-controller.js +0 -42
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/controllers/validation-controller.js +0 -38
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/fui.js +0 -33
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/main.dataset.js +0 -31
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/main.index.js +0 -24
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/main.manage.js +0 -27
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/main.validation.js +0 -24
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/models/dataset-stats.js +0 -102
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/models/dataset.js +0 -262
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/models/fuseki-server.js +0 -180
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/models/task.js +0 -105
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/models/validation-options.js +0 -85
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/qonsole-config.js +0 -27
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/services/ping-service.js +0 -54
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/services/validation-service.js +0 -98
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/templates/dataset-edit.tpl +0 -58
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/templates/dataset-info.tpl +0 -40
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/templates/dataset-management.tpl +0 -62
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/templates/dataset-selection-list.tpl +0 -22
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/templates/dataset-selector.tpl +0 -15
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/templates/dataset-simple-create.tpl +0 -85
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/templates/dataset-stats.tpl +0 -14
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/templates/file-upload.tpl +0 -46
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/templates/uploadable-file.tpl +0 -23
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/util/page-utils.js +0 -33
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/views/dataset-edit.js +0 -205
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/views/dataset-info.js +0 -76
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/views/dataset-management.js +0 -173
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/views/dataset-selection-list.js +0 -58
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/views/dataset-selector.js +0 -84
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/views/dataset-simple-create.js +0 -102
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/views/dataset-stats.js +0 -41
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/views/datasets-dropdown-list.js +0 -43
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/views/file-upload.js +0 -225
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/views/tabbed-view-manager.js +0 -63
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/views/uploadable-file.js +0 -39
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/app/views/validation-options.js +0 -54
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/common-config.js +0 -94
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/addon/fold/brace-fold.js +0 -105
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/addon/fold/comment-fold.js +0 -57
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/addon/fold/foldcode.js +0 -145
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/addon/fold/foldgutter.js +0 -134
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/addon/fold/xml-fold.js +0 -181
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/backbone-min.js +0 -2
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/backbone.js +0 -1581
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/backbone.marionette.js +0 -2385
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/bootstrap-select.min.js +0 -8
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/bootstrap.min.js +0 -6
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/html5shiv.js +0 -8
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/jquery-1.10.2.js +0 -9789
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/jquery-1.10.2.min.js +0 -6
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/jquery-ui.min.js +0 -7
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/jquery.dataTables.min.js +0 -157
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/jquery.fileupload.js +0 -1426
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/jquery.fileupload.local.js +0 -1428
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/jquery.form.js +0 -1278
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/jquery.iframe-transport.js +0 -214
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/jquery.ui.widget.js +0 -530
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/jquery.xdomainrequest.js +0 -90
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/lib/codemirror.js +0 -7638
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/mode/javascript/javascript.js +0 -683
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/mode/sparql/sparql.js +0 -160
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/mode/turtle/turtle.js +0 -160
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/mode/xml/xml.js +0 -384
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/pivot.js +0 -1363
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/pivot.min.js +0 -2
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/pivot.min.js.map +0 -1
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/plugins/text.js +0 -386
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/qonsole.js +0 -577
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/refresh.sh +0 -21
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/require.js +0 -2076
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/require.min.js +0 -36
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/respond.min.js +0 -6
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/sprintf-0.7-beta1.js +0 -183
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/underscore.js +0 -1276
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/yasqe.min.js +0 -9
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/yasqe.min.js.map +0 -1
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/yasr.min.js +0 -8
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/js/lib/yasr.min.js.map +0 -1
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/manage.html +0 -110
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/services.html +0 -76
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/test/test-fuseki-config.ttl +0 -27
- package/test/apache-jena-fuseki-interface/data/apache-jena-fuseki-3.12.0/webapp/validate.html +0 -147
- package/test/apache-jena-fuseki-interface/data/json/PersistData.json +0 -111
- package/test/apache-jena-fuseki-interface/data/xml/AssetHealthEvent.xml +0 -45
- package/test/apache-jena-fuseki-interface/data/xml/AssetOwner.xml +0 -11
- package/test/apache-jena-fuseki-interface/data/xml/Outages.xml +0 -69
- package/test/apache-jena-fuseki-interface/data/xml/PsrType.xml +0 -80
- package/test/apache-jena-fuseki-interface/data/xml/finnentrop/Finnentrop_Rootnet_Area 1_EQ_V1.xml +0 -20867
- package/test/apache-jena-fuseki-interface/data/xml/finnentrop/Finnentrop_Rootnet_Area 1_SSH_V1.xml +0 -3784
- package/test/apache-jena-fuseki-interface/data/xml/neplan-eslohe/Eslohe_Rootnet_Area_1_EQ_V1.xml +0 -15755
- package/test/apache-jena-fuseki-interface/data/xml/neplan-eslohe/Eslohe_Rootnet_Area_1_EQ_V1_feeder_ext.xml +0 -54
- package/test/apache-jena-fuseki-interface/data/xml/neplan-eslohe/Eslohe_Rootnet_Area_1_SSH_V1.xml +0 -2796
- package/test/apache-jena-fuseki-interface/data/xml/ruhrau-katharina/Ruhrau_Katharina_Rootnet_Area 1_EQ_V1.xml +0 -42569
- package/test/apache-jena-fuseki-interface/data/xml/ruhrau-katharina/Ruhrau_Katharina_Rootnet_Area 1_SSH_V1.xml +0 -10108
- package/test/apache-jena-fuseki-interface/data/xml/ruhrau-katharina/Ruhrau_Katharina_Rootnet_Area 1_SV_V1.xml +0 -6234
- package/test/apache-jena-fuseki-interface/data/xml-rdf-data.xml +0 -84
- package/test/cim-xml-rdf-parser/cim-xml-rdf-parser.tests.spec.ts +0 -23
- package/test/cim-xml-rdf-parser/data/rdfxml_serialisation.xml +0 -192
- package/test/integral7-converter/integral7-converter.tests.spec.ts +0 -195
- package/test/power-system-data-model-converter/data/fixed_feed_in_input.csv +0 -72
- package/test/power-system-data-model-converter/data/line_input.csv +0 -1910
- package/test/power-system-data-model-converter/data/line_type_input.csv +0 -5
- package/test/power-system-data-model-converter/data/load_input.csv +0 -1829
- package/test/power-system-data-model-converter/data/node_input.csv +0 -2835
- package/test/power-system-data-model-converter/data/time_series_mapping.csv +0 -878
- package/test/power-system-data-model-converter/data/transformer_2_w_input.csv +0 -1047
- package/test/power-system-data-model-converter/data/transformer_2_w_type_input.csv +0 -5
- package/test/power-system-data-model-converter/power-system-data-model-converter.tests.spec.ts +0 -310
- package/tsconfig.json +0 -24
- package/webpack.config.js +0 -24
|
@@ -1,337 +0,0 @@
|
|
|
1
|
-
import { ConductingEquipment } from '../core/ConductingEquipment';
|
|
2
|
-
import { Voltage } from '../domain/Voltage';
|
|
3
|
-
import { Model } from '../model/Model';
|
|
4
|
-
import { ConnectivityNode } from '../core/ConnectivityNode';
|
|
5
|
-
|
|
6
|
-
import { DiagramObject } from '../diagram/DiagramObject';
|
|
7
|
-
import { IRectangleShapeInfo, ISchemaSettings } from '../../interfaces/schema-settings/ShapeInfos';
|
|
8
|
-
import { getValue, writeElement, writeElementAttribute } from '../../util/utils';
|
|
9
|
-
import { CIM_CLASS_NAMES } from '../../constants/cim-class-names';
|
|
10
|
-
|
|
11
|
-
import {
|
|
12
|
-
NS_PREFIX_AFN,
|
|
13
|
-
NS_PREFIX_APF,
|
|
14
|
-
NS_PREFIX_CIM,
|
|
15
|
-
NS_PREFIX_ENERVANCE,
|
|
16
|
-
NS_PREFIX_ENTSOE,
|
|
17
|
-
NS_PREFIX_RDF,
|
|
18
|
-
} from '../../util/sparql/sparql-building-block';
|
|
19
|
-
import { convertValue } from '../../util/datatype-converter';
|
|
20
|
-
import XMLWriter from 'xml-writer';
|
|
21
|
-
import { RDF_XML } from '../../constants/rdf-xml';
|
|
22
|
-
import { IConnectivityNode, IdentifiedObject } from "../..";
|
|
23
|
-
|
|
24
|
-
export class EnergySource extends ConductingEquipment {
|
|
25
|
-
|
|
26
|
-
public static sparqlQuery: string = `
|
|
27
|
-
${NS_PREFIX_CIM}
|
|
28
|
-
${NS_PREFIX_ENERVANCE}
|
|
29
|
-
${NS_PREFIX_ENTSOE}
|
|
30
|
-
${NS_PREFIX_RDF}
|
|
31
|
-
${NS_PREFIX_RDF}
|
|
32
|
-
${NS_PREFIX_ENTSOE}
|
|
33
|
-
${NS_PREFIX_APF}
|
|
34
|
-
${NS_PREFIX_AFN}
|
|
35
|
-
|
|
36
|
-
SELECT (strafter(strafter(str(?esUUID), '#'), '_') AS ?uuid)
|
|
37
|
-
(CONCAT(STRBEFORE(STR(?esUUID), '#_'), '#_') AS ?baseIRI)
|
|
38
|
-
?name ?shortName ?description ?aggregate ?activePower ?reactivePower
|
|
39
|
-
?r ?r0 ?rx ?x ?x0 ?xn ?nominalVoltage ?voltageMagnitude
|
|
40
|
-
?voltageAngle
|
|
41
|
-
(strafter(strafter(str(?ecUUID), '#'), '_') AS ?equipmentContainerUUID)
|
|
42
|
-
(strafter(strafter(str(?ptUUID), '#'), '_') AS ?psrTypeUUID)
|
|
43
|
-
(group_concat(STRAFTER(str(?aecUUIDs), '#_');separator=',') as ?additionalEquipmentContainerUUIDs)
|
|
44
|
-
|
|
45
|
-
WHERE {
|
|
46
|
-
GRAPH <http://default/>{
|
|
47
|
-
?esUUID rdf:type cim:EnergySource .
|
|
48
|
-
OPTIONAL{?esUUID cim:IdentifiedObject.name ?name .}
|
|
49
|
-
OPTIONAL{?esUUID entsoe:IdentifiedObject.shortName ?shortName .}
|
|
50
|
-
OPTIONAL{?esUUID cim:IdentifiedObject.description ?description .}
|
|
51
|
-
OPTIONAL{?esUUID cim:Equipment.aggregate ?aggregate .}
|
|
52
|
-
OPTIONAL{?esUUID cim:EnergySource.activePower ?activePower .}
|
|
53
|
-
OPTIONAL{?esUUID cim:EnergySource.reactivePower ?reactivePower .}
|
|
54
|
-
OPTIONAL{?esUUID cim:EnergySource.r ?r .}
|
|
55
|
-
OPTIONAL{?esUUID cim:EnergySource.r0 ?r0 .}
|
|
56
|
-
OPTIONAL{?esUUID cim:EnergySource.rn ?rn .}
|
|
57
|
-
OPTIONAL{?esUUID cim:EnergySource.x ?x .}
|
|
58
|
-
OPTIONAL{?esUUID cim:EnergySource.x0 ?x0 .}
|
|
59
|
-
OPTIONAL{?esUUID cim:EnergySource.xn ?xn .}
|
|
60
|
-
OPTIONAL{?esUUID cim:EnergySource.nominalVoltage ?nominalVoltage .}
|
|
61
|
-
OPTIONAL{?esUUID cim:EnergySource.voltageMagnitude ?voltageMagnitude .}
|
|
62
|
-
OPTIONAL{?esUUID cim:EnergySource.voltageAngle ?voltageAngle .}
|
|
63
|
-
OPTIONAL{?esUUID cim:Equipment.EquipmentContainer ?ecUUID .}
|
|
64
|
-
OPTIONAL{?esUUID cim:PowerSystemResource.PSRType ?ptUUID .}
|
|
65
|
-
OPTIONAL {?esUUID cim:Equipment.AdditionalEquipmentContainer ?aecUUIDs .}
|
|
66
|
-
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
GROUP BY ?esUUID ?baseIRI ?name ?shortName ?description ?aggregate ?activePower ?reactivePower
|
|
70
|
-
?r ?r0 ?rx ?x ?x0 ?xn ?nominalVoltage ?voltageMagnitude ?voltageAngle ?ecUUID ?ptUUID
|
|
71
|
-
`
|
|
72
|
-
|
|
73
|
-
activePower: number;
|
|
74
|
-
reactivePower: number;
|
|
75
|
-
|
|
76
|
-
r: number;
|
|
77
|
-
r0: number;
|
|
78
|
-
rn: number;
|
|
79
|
-
x: number;
|
|
80
|
-
x0: number;
|
|
81
|
-
xn: number;
|
|
82
|
-
|
|
83
|
-
nominalVoltage: Voltage;
|
|
84
|
-
nominalVoltageValue: number;
|
|
85
|
-
//voltageMagnitude
|
|
86
|
-
//voltageAngle
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
constructor(uuid?: string, name?: string, shortName?: string, description?: string) {
|
|
90
|
-
super(uuid, name, shortName, description);
|
|
91
|
-
|
|
92
|
-
this.prop2namespacePrefix.set('activePower', 'cim'); // zur Generierung der Insert-Statements
|
|
93
|
-
this.prop2Class.set('activePower', 'EnergySource');
|
|
94
|
-
this.prop2Datatype.set('activePower', 'number');
|
|
95
|
-
|
|
96
|
-
this.prop2namespacePrefix.set('reactivePower', 'cim'); // zur Generierung der Insert-Statements
|
|
97
|
-
this.prop2Class.set('reactivePower', 'EnergySource');
|
|
98
|
-
this.prop2Datatype.set('reactivePower', 'number');
|
|
99
|
-
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
public print() {
|
|
103
|
-
super.print();
|
|
104
|
-
console.log('\tactivePower ' + this.activePower + ' reactivePower ' + this.reactivePower);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
public toGeoJSON(geoJSON: any, profile: string, schemaSettings: ISchemaSettings, diagramObject?: DiagramObject): any {
|
|
109
|
-
|
|
110
|
-
const coordinates: number[] = diagramObject.computeRectBounds(diagramObject);
|
|
111
|
-
const shapeInfos: IRectangleShapeInfo = schemaSettings.getRectangleShapeInfo(profile);
|
|
112
|
-
|
|
113
|
-
const x = coordinates[0];
|
|
114
|
-
const y = coordinates[1] * -1;
|
|
115
|
-
const width = coordinates[2] == 1 ? +shapeInfos.width : coordinates[2];
|
|
116
|
-
const height = (coordinates[3] == 1 ? +shapeInfos.height : coordinates[3]) * -1;
|
|
117
|
-
const offsetX = width == 1 ? +width / 2 : 0;
|
|
118
|
-
const offsetY = height == 1 ? +height / 2 : 0;
|
|
119
|
-
|
|
120
|
-
if (x != 0 && y != 0 && width != 0 && height != 0) {
|
|
121
|
-
super.toGeoJSON(geoJSON, profile, schemaSettings, diagramObject);
|
|
122
|
-
|
|
123
|
-
const pointsPolygon: number[][][] = [
|
|
124
|
-
[
|
|
125
|
-
[x - offsetX, y - offsetY],
|
|
126
|
-
[x + width, y],
|
|
127
|
-
[x + width, y + height],
|
|
128
|
-
[x, y + height],
|
|
129
|
-
[x - offsetX, y - offsetY]
|
|
130
|
-
]
|
|
131
|
-
];
|
|
132
|
-
geoJSON['geometry'] = {
|
|
133
|
-
type: 'Polygon',
|
|
134
|
-
coordinates: pointsPolygon
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
geoJSON['properties'] = {
|
|
138
|
-
diagramObjectUUID: diagramObject.mrid,
|
|
139
|
-
objectType: this.constructor.name,
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
return geoJSON;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
public static getQuerySPARQL(graphURI: string): string {
|
|
146
|
-
if (graphURI.length > 0) {
|
|
147
|
-
return EnergySource.sparqlQuery.replace('<http://default/>', graphURI);
|
|
148
|
-
}
|
|
149
|
-
return EnergySource.sparqlQuery;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
public static resolveClassFusekiJSON(data: any, cimModel: Model) {
|
|
153
|
-
data.results.bindings.forEach((value: any) => {
|
|
154
|
-
const newClass = new EnergySource();
|
|
155
|
-
newClass.resolveAttributesFusekiJSON(value);
|
|
156
|
-
cimModel.addEnergySource(newClass);
|
|
157
|
-
});
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
protected resolveAttributesFusekiJSON(value: any) {
|
|
161
|
-
super.resolveAttributesFusekiJSON(value);
|
|
162
|
-
this.activePower = +getValue(value, 'activePower');
|
|
163
|
-
this.reactivePower = +getValue(value, 'reactivePower');
|
|
164
|
-
this.nominalVoltageValue = +getValue(value, 'nominalVoltage');
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
public resolveParsedAssociations(cimModel: Model) {
|
|
168
|
-
super.resolveParsedAssociations(cimModel);
|
|
169
|
-
const voltage = cimModel.getVoltage(this.nominalVoltageValue)
|
|
170
|
-
this.nominalVoltage = voltage;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
public toJSON() {
|
|
175
|
-
super.toJSON();
|
|
176
|
-
this.toJSONAttributes();
|
|
177
|
-
this.toJSONAssociations();
|
|
178
|
-
return this.json;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
public toJSONAttributes() {
|
|
182
|
-
super.toJSONAttributes();
|
|
183
|
-
this.json['activePower'] = this.activePower;
|
|
184
|
-
this.json['reactivePower'] = this.reactivePower;
|
|
185
|
-
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
public toJSONAssociations() {
|
|
189
|
-
super.toJSONAssociations();
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
public determineGridIslands(networkElements: any []) {
|
|
193
|
-
super.determineGridIslands(networkElements);
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
public breadthFirstSearch(networkElements: any[]) {
|
|
197
|
-
if (!this.visited) {
|
|
198
|
-
this.addNetworkElement(networkElements);
|
|
199
|
-
super.breadthFirstSearch(networkElements);
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
//hier endet der Aufruf
|
|
204
|
-
public determineTopologicalNodes(connNodes: IConnectivityNode[]) {
|
|
205
|
-
return;
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
public isLoadOrFeed(): boolean {
|
|
209
|
-
return true;
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
public getApparentPower() {
|
|
213
|
-
return Math.sqrt(Math.pow(this.activePower ? this.activePower : 0, 2) +
|
|
214
|
-
Math.pow(this.reactivePower ? this.reactivePower : 0, 2));
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
/** die Methode bestimmen den Datentyp, konvertiert und weist den Wert zu */
|
|
218
|
-
/* public setProperty(cimModel: Model, propName: string, propertyValue: any){
|
|
219
|
-
const dataType: string = this.prop2Datatype.get(propName);
|
|
220
|
-
|
|
221
|
-
if(dataType) {
|
|
222
|
-
if(CIM_CLASS_NAMES[dataType]) { // komplexer Datentyp
|
|
223
|
-
this.setAssociation(cimModel, propName, propertyValue);
|
|
224
|
-
} else { // primitiver Datentyp
|
|
225
|
-
this[propName] = convertValue(dataType, propertyValue);
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
}*/
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
/** die Methode gibt basierend auf der aktuellen Ausprägung des übergebenen Property
|
|
232
|
-
* ein SPARQL-INSERT Statement zurück.
|
|
233
|
-
* 2 Szearien:
|
|
234
|
-
* Löschen der aktuellen Ausprägung -> wird im DELETE DATA Block platziert.
|
|
235
|
-
* Einfügen der aktuellen Ausprägung -> wird im INSERT DATA Block platziert. */
|
|
236
|
-
|
|
237
|
-
/* public getUpdateSPARQL(className: string, propName: string): string {
|
|
238
|
-
if(this.constructor.name === className) {
|
|
239
|
-
const dataType: string = this.prop2Datatype.get(propName);
|
|
240
|
-
if(CIM_CLASS_NAMES[dataType]) { // komplexer Datentyp
|
|
241
|
-
return super.getUpdateSPARQL(className, propName);
|
|
242
|
-
} else {
|
|
243
|
-
const propValue = String(this[propName]); // aktuelle Ausprägung auslesen
|
|
244
|
-
|
|
245
|
-
const propNS = this.prop2namespacePrefix.get(String(propName));
|
|
246
|
-
const propClassName = this.prop2Class.get(String(propName));
|
|
247
|
-
if(propNS) {
|
|
248
|
-
return `<${this.baseIRI}${this.mrid}> ${propNS}:${propClassName}.${propName} \'${propValue}\' . `;
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
} else {
|
|
252
|
-
//TODO überarbeiten
|
|
253
|
-
return super.getUpdateSPARQL(className, propName);
|
|
254
|
-
}
|
|
255
|
-
return;
|
|
256
|
-
}*/
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
/** CIM RDF/XML Serialisierung */
|
|
260
|
-
public toCIMXML(xmlWriter: XMLWriter, profile: string) {
|
|
261
|
-
let defaultValues = '';
|
|
262
|
-
this.checkMandatoryAttributes(profile, defaultValues);
|
|
263
|
-
this.description += defaultValues;
|
|
264
|
-
if (profile === RDF_XML.PROFILE_EQ) {
|
|
265
|
-
const suffixID = this.getSuffixID(profile);
|
|
266
|
-
const prefixUUID = this.getPrefixUUID(suffixID);
|
|
267
|
-
xmlWriter.startElementNS(RDF_XML.CIM_NS_PREFIX, this.constructor.name, RDF_XML.CIM_NS_16);
|
|
268
|
-
writeElementAttribute(xmlWriter, suffixID, `${prefixUUID}${this.mrid}`);
|
|
269
|
-
this.toCIMXMLAttributes(xmlWriter, profile);
|
|
270
|
-
this.toCIMXMLAssociations(xmlWriter, profile);
|
|
271
|
-
xmlWriter.endElement();
|
|
272
|
-
} else if (profile === RDF_XML.PROFILE_SSH && this.checkExportData(profile)) {
|
|
273
|
-
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
protected toCIMXMLAttributes(xmlWriter: XMLWriter, profile: string) {
|
|
278
|
-
super.toCIMXMLAttributes(xmlWriter, profile);
|
|
279
|
-
if (profile === RDF_XML.PROFILE_SSH && this.checkExportData(profile)) {
|
|
280
|
-
writeElement(xmlWriter, `${RDF_XML.CIM_NS_PREFIX}:${this.constructor.name}.activePower`, this.activePower);
|
|
281
|
-
writeElement(xmlWriter, `${RDF_XML.CIM_NS_PREFIX}:${this.constructor.name}.reactivePower`, this.reactivePower);
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
protected toCIMXMLAssociations(xmlWriter: XMLWriter, profile: string) {
|
|
286
|
-
super.toCIMXMLAssociations(xmlWriter, profile);
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
/** Die Methode überprüft, ob für die übergebene ProfilURI
|
|
290
|
-
* relevante Informationen gepflegt sind.
|
|
291
|
-
* @param profile URI des Profils. */
|
|
292
|
-
checkExportData(profile: string): boolean {
|
|
293
|
-
if (profile === RDF_XML.PROFILE_SSH) {
|
|
294
|
-
if (this.activePower || !this.reactivePower) {
|
|
295
|
-
return true;
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
return false;
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
checkMandatoryAttributes(profile: string, defaultValues: string) {
|
|
302
|
-
super.checkMandatoryAttributes(profile, defaultValues);
|
|
303
|
-
if (profile === RDF_XML.PROFILE_SSH) {
|
|
304
|
-
if (!this.activePower) {
|
|
305
|
-
this.activePower = 0;
|
|
306
|
-
defaultValues += 'activePower,'
|
|
307
|
-
}
|
|
308
|
-
if (!this.reactivePower) {
|
|
309
|
-
this.reactivePower = 0;
|
|
310
|
-
defaultValues += 'reactivePower,'
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
/** CIM XML Parser */
|
|
316
|
-
public static resolveClassRDFXML(uuid: string, cimModel: Model): IdentifiedObject | undefined {
|
|
317
|
-
const newClass = new EnergySource(uuid);
|
|
318
|
-
cimModel.addEnergySource(newClass);
|
|
319
|
-
return newClass;
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
public resolveAttributesRDFXML(className: string, attrName: string, value: string) {
|
|
323
|
-
if (className === 'EnergySource') {
|
|
324
|
-
|
|
325
|
-
} else {
|
|
326
|
-
super.resolveAttributesRDFXML(className, attrName, value);
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
public resolveAssociationRDFXML(className: string, resourceName: string, resourceUUID: string) {
|
|
331
|
-
if (className === 'EnergySource') {
|
|
332
|
-
|
|
333
|
-
} else {
|
|
334
|
-
super.resolveAssociationRDFXML(className, resourceName, resourceUUID);
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
}
|
|
@@ -1,276 +0,0 @@
|
|
|
1
|
-
import { RegulatingCondEq } from './RegulatingCondEq';
|
|
2
|
-
import { Model } from '../model/Model';
|
|
3
|
-
import { ConnectivityNode } from '../core/ConnectivityNode';
|
|
4
|
-
import { IdentifiedObject } from '../core/IdentifiedObject';
|
|
5
|
-
import { DiagramObject } from '../diagram/DiagramObject';
|
|
6
|
-
import {IRectangleShapeInfo, ISchemaSettings} from '../../interfaces/schema-settings/ShapeInfos';
|
|
7
|
-
import { getValue, writeElement, writeElementAttribute } from '../../util/utils';
|
|
8
|
-
import { convertValue } from '../../util/datatype-converter';
|
|
9
|
-
import { RDF_XML } from '../../constants/rdf-xml';
|
|
10
|
-
|
|
11
|
-
import XMLWriter from 'xml-writer';
|
|
12
|
-
import { IConnectivityNode } from '../../interfaces/model/core/IConnectivityNode';
|
|
13
|
-
|
|
14
|
-
export class ExternalNetworkInjection extends RegulatingCondEq {
|
|
15
|
-
|
|
16
|
-
ikSecond: boolean;
|
|
17
|
-
maxInitialSymShCCurrent: number;
|
|
18
|
-
maxR0ToX0Ratio: number;
|
|
19
|
-
maxR1ToX1Ratio: number;
|
|
20
|
-
maxZ0ToZ1Ratio: number;
|
|
21
|
-
minInitialSymShCCurrent: number;
|
|
22
|
-
minR0ToX0Ratio: number;
|
|
23
|
-
minR1ToX1Ratio: number;
|
|
24
|
-
minZ0ToZ1Ratio: number;
|
|
25
|
-
voltageFactor: number;
|
|
26
|
-
maxP: number;
|
|
27
|
-
maxQ: number;
|
|
28
|
-
minP: number;
|
|
29
|
-
minQ: number;
|
|
30
|
-
governorSCD: number;
|
|
31
|
-
|
|
32
|
-
p: number;
|
|
33
|
-
q: number;
|
|
34
|
-
referencePriority: number;
|
|
35
|
-
|
|
36
|
-
constructor(uuid?: string, name?: string, shortName?: string, description?: string){
|
|
37
|
-
super(uuid, name, shortName, description);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
public static sparqlQuery : string = `
|
|
42
|
-
PREFIX cim: <http://iec.ch/TC57/2013/CIM-schema-cim16#>
|
|
43
|
-
PREFIX enervance: <http://enervance.com/CIM/Extensions#>
|
|
44
|
-
PREFIX entsoe: <http://entsoe.eu/CIM/SchemaExtension/3/1#>
|
|
45
|
-
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
|
46
|
-
PREFIX amp: <http://amprion.net/2018/cim_extensions#>
|
|
47
|
-
PREFIX apf: <http://jena.hpl.hp.com/ARQ/property#>
|
|
48
|
-
PREFIX afn: <http://jena.apache.org/ARQ/function#>
|
|
49
|
-
|
|
50
|
-
SELECT (strafter(strafter(str(?eneUUID), '#'), '_') AS ?uuid) ?name ?shortName ?description ?aggregate ?p ?q ?referencePriority ?controlEnabled ?maxInitialSymShCCurrent ?maxR0ToX0Ratio
|
|
51
|
-
?maxR1ToX1Ratio ?maxZ0ToZ1Ratio ?minR0ToX0Ratio ?minR1ToX1Ratio ?minZ0ToZ1Ratio ?maxP ?maxQ ?minP ?minQ ?governorSCD
|
|
52
|
-
(strafter(strafter(str(?regCntrUUID), '#'), '_') AS ?regulatingControlUUID)
|
|
53
|
-
(strafter(strafter(str(?ecUUID), '#'), '_') AS ?equipmentContainerUUID)
|
|
54
|
-
|
|
55
|
-
WHERE {
|
|
56
|
-
GRAPH <http://default/>{
|
|
57
|
-
?eneUUID rdf:type cim:ExternalNetworkInjection .
|
|
58
|
-
OPTIONAL{?eneUUID cim:IdentifiedObject.name ?name .}
|
|
59
|
-
OPTIONAL{?eneUUID entsoe:IdentifiedObject.shortName ?shortName .}
|
|
60
|
-
OPTIONAL{?eneUUID cim:IdentifiedObject.description ?description .}
|
|
61
|
-
OPTIONAL{?eneUUID cim:Equipment.aggregate ?aggregate .}
|
|
62
|
-
OPTIONAL{?eneUUID cim:ExternalNetworkInjection.p ?p .}
|
|
63
|
-
OPTIONAL{?eneUUID cim:ExternalNetworkInjection.q ?q .}
|
|
64
|
-
OPTIONAL{?eneUUID cim:ExternalNetworkInjection.referencePriority ?referencePriority .}
|
|
65
|
-
OPTIONAL{?eneUUID cim:RegulatingCondEq.controlEnabled ?controlEnabled .}
|
|
66
|
-
OPTIONAL{?eneUUID cim:ExternalNetworkInjection.maxInitialSymShCCurrent ?maxInitialSymShCCurrent .}
|
|
67
|
-
OPTIONAL{?eneUUID cim:ExternalNetworkInjection.maxR0ToX0Ratio ?maxR0ToX0Ratio .}
|
|
68
|
-
OPTIONAL{?eneUUID cim:ExternalNetworkInjection.maxR1ToX1Ratio ?maxR1ToX1Ratio .}
|
|
69
|
-
OPTIONAL{?eneUUID cim:ExternalNetworkInjection.maxZ0ToZ1Ratio ?maxZ0ToZ1Ratio .}
|
|
70
|
-
OPTIONAL{?eneUUID cim:ExternalNetworkInjection.minR0ToX0Ratio ?minR0ToX0Ratio .}
|
|
71
|
-
OPTIONAL{?eneUUID cim:ExternalNetworkInjection.minR1ToX1Ratio ?minR1ToX1Ratio .}
|
|
72
|
-
OPTIONAL{?eneUUID cim:ExternalNetworkInjection.minZ0ToZ1Ratio ?minZ0ToZ1Ratio .}
|
|
73
|
-
OPTIONAL{?eneUUID cim:ExternalNetworkInjection.voltageFactor ?voltageFactor .}
|
|
74
|
-
OPTIONAL{?eneUUID cim:ExternalNetworkInjection.maxP ?maxP .}
|
|
75
|
-
OPTIONAL{?eneUUID cim:ExternalNetworkInjection.maxQ ?maxQ .}
|
|
76
|
-
|
|
77
|
-
OPTIONAL{?eneUUID cim:ExternalNetworkInjection.minP ?minP .}
|
|
78
|
-
OPTIONAL{?eneUUID cim:ExternalNetworkInjection.minQ ?minQ .}
|
|
79
|
-
OPTIONAL{?eneUUID cim:ExternalNetworkInjection.governorSCD ?governorSCD .}
|
|
80
|
-
OPTIONAL{?eneUUID cim:RegulatingCondEq.RegulatingControl ?regCntrUUID .}
|
|
81
|
-
OPTIONAL{?eneUUID cim:Equipment.EquipmentContainer ?ecUUID .}
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
`
|
|
85
|
-
public static getQuerySPARQL(graphURI : string) : string{
|
|
86
|
-
if(graphURI.length > 0){
|
|
87
|
-
return ExternalNetworkInjection.sparqlQuery.replace('<http://default/>', graphURI);
|
|
88
|
-
}
|
|
89
|
-
return ExternalNetworkInjection.sparqlQuery;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
public static resolveClassFusekiJSON(data: any, cimModel: Model){
|
|
93
|
-
data.results.bindings.forEach((value: any) => {
|
|
94
|
-
const newClass = new ExternalNetworkInjection();
|
|
95
|
-
newClass.resolveAttributesFusekiJSON(value);
|
|
96
|
-
cimModel.addExternalNetworkInjection(newClass);
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
protected resolveAttributesFusekiJSON(value: any){
|
|
101
|
-
super.resolveAttributesFusekiJSON(value);
|
|
102
|
-
this.p = +getValue(value, 'p');
|
|
103
|
-
this.q = +getValue(value, 'q');
|
|
104
|
-
this.referencePriority = +getValue(value, 'referencePriority');
|
|
105
|
-
|
|
106
|
-
}
|
|
107
|
-
public resolveParsedAssociations(cimModel: Model){
|
|
108
|
-
super.resolveParsedAssociations(cimModel);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
public toJSON(){
|
|
112
|
-
super.toJSON();
|
|
113
|
-
this.toJSONAttributes();
|
|
114
|
-
this.toJSONAssociations();
|
|
115
|
-
return this.json;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
public toJSONAttributes(){
|
|
120
|
-
super.toJSONAttributes();
|
|
121
|
-
//this.json['baseVoltageUUID'] = this.baseVoltage.nominalVoltage.value;
|
|
122
|
-
this.json['p'] = this.p;
|
|
123
|
-
this.json['q'] = this.q;
|
|
124
|
-
this.json['referencePriority'] = this.referencePriority;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
public toJSONAssociations(){
|
|
128
|
-
super.toJSONAssociations();
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
/* Graphalgorithmen */
|
|
132
|
-
public determineGridIslands(networkElements: any[]){
|
|
133
|
-
super.determineGridIslands(networkElements);
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
public breadthFirstSearch(networkElements: any[]){
|
|
137
|
-
if(!this.visited){
|
|
138
|
-
//console.log(this.constructor.name + ' ' + this.mrid)
|
|
139
|
-
this.addNetworkElement(networkElements);
|
|
140
|
-
super.breadthFirstSearch(networkElements);
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
//hier endet der Aufruf
|
|
145
|
-
public determineTopologicalNodes(connNodes: IConnectivityNode[]){
|
|
146
|
-
return;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
/* Bestimmt alle zum Slack gehörende Netzelemente (CN, Terminals Sammelschienen, Trafos)*/
|
|
151
|
-
public determineSlackNodes(slackElemenets: IdentifiedObject[]){
|
|
152
|
-
if(!this.visited) {
|
|
153
|
-
this.addNetworkElement(slackElemenets);
|
|
154
|
-
// 0 = key, 1 = value
|
|
155
|
-
for (const entry of this.terminals.entries()){
|
|
156
|
-
const value = entry[1];
|
|
157
|
-
value.determineSlackNodes(slackElemenets);
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
public isLoadOrFeed(): boolean{
|
|
163
|
-
return true;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
public toGeoJSON (geoJSON: any, profile: string, schemaSettings: ISchemaSettings, diagramObject?: DiagramObject): any {
|
|
167
|
-
|
|
168
|
-
const coordinates : number[] = diagramObject.computeRectBounds(diagramObject);
|
|
169
|
-
const shapeInfos: IRectangleShapeInfo = schemaSettings.getRectangleShapeInfo(profile);
|
|
170
|
-
|
|
171
|
-
const x = coordinates[0];
|
|
172
|
-
const y = coordinates[1] * -1;
|
|
173
|
-
const width = coordinates[2] == 1 ? +shapeInfos.width : coordinates[2];
|
|
174
|
-
const height = (coordinates[3] == 1 ? +shapeInfos.height : coordinates[3]) * -1;
|
|
175
|
-
const offsetX = width == 1 ? +width/2 : 0;
|
|
176
|
-
const offsetY = height == 1 ? +height/2 : 0;
|
|
177
|
-
|
|
178
|
-
if(x != 0 && y != 0 && width != 0 && height != 0) {
|
|
179
|
-
super.toGeoJSON(geoJSON, profile, schemaSettings, diagramObject);
|
|
180
|
-
|
|
181
|
-
const pointsPolygon : number[][][] = [
|
|
182
|
-
[
|
|
183
|
-
[x - offsetX, y - offsetY],
|
|
184
|
-
[x + width, y],
|
|
185
|
-
[x + width, y + height],
|
|
186
|
-
[x, y + height],
|
|
187
|
-
[x - offsetX, y - offsetY]
|
|
188
|
-
]
|
|
189
|
-
];
|
|
190
|
-
geoJSON['geometry'] = {
|
|
191
|
-
type: 'Polygon',
|
|
192
|
-
coordinates: pointsPolygon
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
geoJSON['properties'] = {
|
|
196
|
-
diagramObjectUUID: diagramObject.mrid,
|
|
197
|
-
objectType: this.constructor.name,
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
return geoJSON;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
// Persistierung
|
|
205
|
-
/** die Methode bestimmen den Datentyp, konvertiert und weist den Wert zu */
|
|
206
|
-
/* public setProperty(cimModel: Model, propName: string, propertyValue: any){
|
|
207
|
-
if(propName === 'targetValue'){
|
|
208
|
-
return this.regulatingControl.setProperty(cimModel, propName, propertyValue);
|
|
209
|
-
}
|
|
210
|
-
}*/
|
|
211
|
-
/** die Methode gibt basierend auf der aktuellen Ausprägung des übergebenen Property
|
|
212
|
-
* ein SPARQL-INSERT Statemant zurück.
|
|
213
|
-
* 2 Szearien:
|
|
214
|
-
* Löschen der aktuellen Ausprägung -> wird im DELETE DATA Block platziert.
|
|
215
|
-
* Einfügen der aktuellen Ausprägung -> wird im INSERT DATA Block platziert. */
|
|
216
|
-
/* public getUpdateSPARQL(className: string, propName: string): string {
|
|
217
|
-
if(this.constructor.name === className) {
|
|
218
|
-
if(propName === 'targetValue'){ // RegulatingControl
|
|
219
|
-
return this.regulatingControl.getUpdateSPARQL('RegulatingControl', propName);
|
|
220
|
-
}
|
|
221
|
-
} else {
|
|
222
|
-
return super.getUpdateSPARQL(className, propName);
|
|
223
|
-
}
|
|
224
|
-
return;
|
|
225
|
-
}*/
|
|
226
|
-
|
|
227
|
-
// Für SlackKnoten im PowerFlow
|
|
228
|
-
getSlackVoltage(): number {
|
|
229
|
-
if(this.regulatingControl) {
|
|
230
|
-
const targetVoltage= this.regulatingControl.targetValue; // z.B. 10.5 kV
|
|
231
|
-
for (const terminal of this.terminals.values()) {
|
|
232
|
-
if(terminal.connectivityNode) {
|
|
233
|
-
const voltage = terminal.connectivityNode.getBaseVoltageAsNumber();
|
|
234
|
-
if(voltage === 0 || targetVoltage === 0) continue;
|
|
235
|
-
return Math.abs(targetVoltage / voltage);
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
return 1;
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
/** CIM RDF/XML Serialisierung */
|
|
243
|
-
public toCIMXML(xmlWriter: XMLWriter, profile: string) {
|
|
244
|
-
if(profile === RDF_XML.PROFILE_EQ || profile === RDF_XML.PROFILE_SSH) {
|
|
245
|
-
const suffixID = this.getSuffixID(profile);
|
|
246
|
-
const prefixUUID = this.getPrefixUUID(suffixID);
|
|
247
|
-
xmlWriter.startElementNS(RDF_XML.CIM_NS_PREFIX, this.constructor.name, RDF_XML.CIM_NS_16);
|
|
248
|
-
writeElementAttribute(xmlWriter, suffixID, `${prefixUUID}${this.mrid}`);
|
|
249
|
-
this.toCIMXMLAttributes(xmlWriter, profile);
|
|
250
|
-
this.toCIMXMLAssociations(xmlWriter, profile);
|
|
251
|
-
xmlWriter.endElement();
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
protected toCIMXMLAttributes(xmlWriter: XMLWriter, profile: string) {
|
|
256
|
-
super.toCIMXMLAttributes(xmlWriter, profile);
|
|
257
|
-
if(profile === RDF_XML.PROFILE_EQ) {
|
|
258
|
-
writeElement(xmlWriter, `${RDF_XML.CIM_NS_PREFIX}:${this.constructor.name}.ikSecond`, this.ikSecond);
|
|
259
|
-
writeElement(xmlWriter, `${RDF_XML.CIM_NS_PREFIX}:${this.constructor.name}.voltageFactor`, this.voltageFactor);
|
|
260
|
-
writeElement(xmlWriter, `${RDF_XML.CIM_NS_PREFIX}:${this.constructor.name}.maxInitialSymShCCurrent`, this.maxInitialSymShCCurrent);
|
|
261
|
-
writeElement(xmlWriter, `${RDF_XML.CIM_NS_PREFIX}:${this.constructor.name}.maxP`, this.maxP);
|
|
262
|
-
writeElement(xmlWriter, `${RDF_XML.CIM_NS_PREFIX}:${this.constructor.name}.maxQ`, this.maxQ);
|
|
263
|
-
writeElement(xmlWriter, `${RDF_XML.CIM_NS_PREFIX}:${this.constructor.name}.minP`, this.minP);
|
|
264
|
-
writeElement(xmlWriter, `${RDF_XML.CIM_NS_PREFIX}:${this.constructor.name}.minQ`, this.minQ);
|
|
265
|
-
writeElement(xmlWriter, `${RDF_XML.CIM_NS_PREFIX}:${this.constructor.name}.governorSCD`, this.governorSCD);
|
|
266
|
-
} else if(profile === RDF_XML.PROFILE_SSH) {
|
|
267
|
-
writeElement(xmlWriter, `${RDF_XML.CIM_NS_PREFIX}:${this.constructor.name}.p`, this.p);
|
|
268
|
-
writeElement(xmlWriter, `${RDF_XML.CIM_NS_PREFIX}:${this.constructor.name}.q`, this.q);
|
|
269
|
-
writeElement(xmlWriter, `${RDF_XML.CIM_NS_PREFIX}:${this.constructor.name}.referencePriority`, this.referencePriority);
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
protected toCIMXMLAssociations(xmlWriter: XMLWriter, profile: string) {
|
|
274
|
-
super.toCIMXMLAssociations(xmlWriter, profile);
|
|
275
|
-
}
|
|
276
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { ConductingEquipment } from '../core/ConductingEquipment';
|
|
2
|
-
import { ConnectivityNode } from '../core/ConnectivityNode';
|
|
3
|
-
import { IConnectivityNode } from '../../interfaces/model/core/IConnectivityNode';
|
|
4
|
-
|
|
5
|
-
export class Ground extends ConductingEquipment{
|
|
6
|
-
|
|
7
|
-
constructor(uuid: string, name: string, shortName : string, description : string){
|
|
8
|
-
super(uuid, name, shortName, description);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
public static sparqlQuery : string = `
|
|
12
|
-
PREFIX cim: <http://iec.ch/TC57/2013/CIM-schema-cim16#>
|
|
13
|
-
PREFIX enervance: <http://enervance.com/CIM/Extensions#>
|
|
14
|
-
PREFIX entsoe: <http://entsoe.eu/CIM/SchemaExtension/3/1#>
|
|
15
|
-
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
|
16
|
-
PREFIX amp: <http://amprion.net/2018/cim_extensions#>
|
|
17
|
-
PREFIX apf: <http://jena.hpl.hp.com/ARQ/property#>
|
|
18
|
-
PREFIX afn: <http://jena.apache.org/ARQ/function#>
|
|
19
|
-
|
|
20
|
-
SELECT (strafter(strafter(str(?vlUUID), '#'), '_') AS ?uuid) ?name
|
|
21
|
-
|
|
22
|
-
WHERE {
|
|
23
|
-
GRAPH <http://default/>{
|
|
24
|
-
?vlUUID rdf:type cim:Ground .
|
|
25
|
-
?vlUUID cim:IdentifiedObject.name ?name .
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
`
|
|
29
|
-
public static getQuerySPARQL(graphURI : string) : string{
|
|
30
|
-
if(graphURI.length > 0){
|
|
31
|
-
return Ground.sparqlQuery.replace('<http://default/>', graphURI);
|
|
32
|
-
}
|
|
33
|
-
return Ground.sparqlQuery;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
//hier endet der Aufruf
|
|
37
|
-
public determineTopologicalNodes(connNodes: IConnectivityNode[]){
|
|
38
|
-
return;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { Switch } from './Switch';
|
|
2
|
-
import { ConnectivityNode } from '../core/ConnectivityNode';
|
|
3
|
-
import { IConnectivityNode } from '../../interfaces/model/core/IConnectivityNode';
|
|
4
|
-
export class GroundDisconnector extends Switch{
|
|
5
|
-
|
|
6
|
-
constructor(uuid: string, name: string, shortName : string, description : string, normalOpen: boolean, retained: boolean){
|
|
7
|
-
super(uuid, name, shortName, description, normalOpen, retained);
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
public static sparqlQuery : string = `
|
|
11
|
-
PREFIX cim: <http://iec.ch/TC57/2013/CIM-schema-cim16#>
|
|
12
|
-
PREFIX enervance: <http://enervance.com/CIM/Extensions#>
|
|
13
|
-
PREFIX entsoe: <http://entsoe.eu/CIM/SchemaExtension/3/1#>
|
|
14
|
-
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
|
15
|
-
PREFIX amp: <http://amprion.net/2018/cim_extensions#>
|
|
16
|
-
PREFIX apf: <http://jena.hpl.hp.com/ARQ/property#>
|
|
17
|
-
PREFIX afn: <http://jena.apache.org/ARQ/function#>
|
|
18
|
-
|
|
19
|
-
SELECT (strafter(strafter(str(?vlUUID), '#'), '_') AS ?uuid) ?name
|
|
20
|
-
|
|
21
|
-
WHERE {
|
|
22
|
-
GRAPH <http://default/>{
|
|
23
|
-
?vlUUID rdf:type cim:GroundDisconnector .
|
|
24
|
-
?vlUUID cim:IdentifiedObject.name ?name .
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
`
|
|
28
|
-
public static getQuerySPARQL(graphURI : string) : string{
|
|
29
|
-
if(graphURI.length > 0){
|
|
30
|
-
return GroundDisconnector.sparqlQuery.replace('<http://default/>', graphURI);
|
|
31
|
-
}
|
|
32
|
-
return GroundDisconnector.sparqlQuery;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
//hier endet der Aufruf
|
|
36
|
-
public determineTopologicalNodes(connNodes: IConnectivityNode[]){
|
|
37
|
-
return;
|
|
38
|
-
}
|
|
39
|
-
}
|