Package org.lfenergy.compas.sct.commons
Class ExtRefService
java.lang.Object
org.lfenergy.compas.sct.commons.ExtRefService
- All Implemented Interfaces:
ExtRefEditor
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfilterDuplicatedExtRefs
(List<TExtRef> tExtRefs) Remove ExtRef which are fed by same Control BlockmanageBindingForLDEPF
(SCL scd, ILDEPFSettings settings) ExtRef Binding For LDevice (inst=LDEPF) that matching LDEPF configurationUpdates iedName attribute of all ExtRefs in the Scd.void
updateExtRefBinders
(SCL scd, ExtRefInfo extRefInfo) Updates ExtRef binding data related to given ExtRef (extRefInfo) in given SCL fileupdateExtRefSource
(SCL scd, ExtRefInfo extRefInfo) Updates ExtRef source binding data's based on given data in extRefInfo
-
Constructor Details
-
ExtRefService
public ExtRefService()
-
-
Method Details
-
updateExtRefBinders
Description copied from interface:ExtRefEditor
Updates ExtRef binding data related to given ExtRef (extRefInfo) in given SCL file- Specified by:
updateExtRefBinders
in interfaceExtRefEditor
- Parameters:
scd
- SCL file in which ExtRef to update should be foundextRefInfo
- ExtRef signal for which we should find possible binders in SCL file- Throws:
ScdException
- throws when mandatory data of ExtRef are missing
-
updateExtRefSource
Description copied from interface:ExtRefEditor
Updates ExtRef source binding data's based on given data in extRefInfo- Specified by:
updateExtRefSource
in interfaceExtRefEditor
- Parameters:
scd
- SCL file in which ExtRef source data's to update should be foundextRefInfo
- new data for ExtRef source binding data- Returns:
- TExtRef object as update ExtRef with new source binding data
- Throws:
ScdException
- throws when mandatory data of ExtRef are missing
-
updateAllExtRefIedNames
Description copied from interface:ExtRefEditor
Updates iedName attribute of all ExtRefs in the Scd.- Specified by:
updateAllExtRefIedNames
in interfaceExtRefEditor
- Returns:
- list of encountered errors
-
manageBindingForLDEPF
Description copied from interface:ExtRefEditor
ExtRef Binding For LDevice (inst=LDEPF) that matching LDEPF configuration- Specified by:
manageBindingForLDEPF
in interfaceExtRefEditor
- Parameters:
scd
- SCLsettings
- ILDEPFSettings- Returns:
- list of encountered errors
-
filterDuplicatedExtRefs
Remove ExtRef which are fed by same Control Block- Returns:
- list ExtRefs without duplication
-