You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Generating LGOS, DOI@name=GoCBRef and DAI@name=setSrcRef are always populated with the same value
- Generating LSVS, DOI@name=SvCBRef and DAI@name=setSrcRef are always populated with the same value
Signed-off-by: Samir Romdhani <[email protected]>
fix: a lot more LGOS and LSVS than expected
Signed-off-by: Samir Romdhani <[email protected]>
fix: added tests
Signed-off-by: Samir Romdhani <[email protected]>
fix: reviews
Signed-off-by: Samir Romdhani <[email protected]>
fix: review
Signed-off-by: Samir Romdhani <[email protected]>
log.info("Processing %d ExtRefs in LDName=%s of service type %s for LN (lnClass=%s, inst=%s, prefix=%s)".formatted(tExtRefs.size(), ldsuiedLdevice.getLdName(), monitoringLnClassEnum.value(), lgosOrLsvs.getLnClass().getFirst(), lgosOrLsvs.getInst(), lgosOrLsvs.getPrefix()));
256
-
for (inti = 0; i < tExtRefs.size(); i++) {
258
+
log.info("Processing %d IED Source in LDName=%s for LN (lnClass=%s, inst=%s, prefix=%s)".formatted(iedSources.size(), ldsuiedLdevice.getLdName(), lgosOrLsvs.getLnClass().getFirst(), lgosOrLsvs.getInst(), lgosOrLsvs.getPrefix()));
259
+
for (inti = 0; i < iedSources.size(); i++) {
257
260
TLNlnToAdd = copyLn(lgosOrLsvs); //duplicate actual LGOS or LSVS in order to add LDSUIED with extRefs properties
258
-
TExtReftExtRef = tExtRefs.get(i);
259
-
TIEDsourceIed = iedService.findByName(scd, tExtRef.getIedName()).orElseThrow(() -> newScdException("IED.name '" + tExtRef.getIedName() + "' not found in SCD"));
260
-
StringsourceLdName = ldeviceService.findLdevice(sourceIed, tExtRef.getSrcLDInst()).orElseThrow(() -> newScdException(String.format("LDevice.inst '%s' not found in IED '%s'", tExtRef.getSrcLDInst(), tExtRef.getIedName()))).getLdName();
TIEDsourceIed = iedService.findByName(scd, iedSource.iedName()).orElseThrow(() -> newScdException("IED.name '" + iedSource.iedName() + "' not found in SCD"));
263
+
StringsourceLdName = ldeviceService.findLdevice(sourceIed, iedSource.srcLdInst()).orElseThrow(() -> newScdException(String.format("LDevice.inst '%s' not found in IED '%s'", iedSource.srcLdInst(), iedSource.iedName()))).getLdName();
0 commit comments