Class ExtRefService

java.lang.Object
org.lfenergy.compas.sct.commons.ExtRefService
All Implemented Interfaces:
ExtRefEditor

public class ExtRefService extends Object implements ExtRefEditor
  • Constructor Details

    • ExtRefService

      public ExtRefService()
  • Method Details

    • updateExtRefBinders

      public void updateExtRefBinders(SCL scd, ExtRefInfo extRefInfo) throws ScdException
      Description copied from interface: ExtRefEditor
      Updates ExtRef binding data related to given ExtRef (extRefInfo) in given SCL file
      Specified by:
      updateExtRefBinders in interface ExtRefEditor
      Parameters:
      scd - SCL file in which ExtRef to update should be found
      extRefInfo - ExtRef signal for which we should find possible binders in SCL file
      Throws:
      ScdException - throws when mandatory data of ExtRef are missing
    • updateExtRefSource

      public TExtRef updateExtRefSource(SCL scd, ExtRefInfo extRefInfo) throws ScdException
      Description copied from interface: ExtRefEditor
      Updates ExtRef source binding data's based on given data in extRefInfo
      Specified by:
      updateExtRefSource in interface ExtRefEditor
      Parameters:
      scd - SCL file in which ExtRef source data's to update should be found
      extRefInfo - 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

      public List<SclReportItem> updateAllExtRefIedNames(SCL scd)
      Description copied from interface: ExtRefEditor
      Updates iedName attribute of all ExtRefs in the Scd.
      Specified by:
      updateAllExtRefIedNames in interface ExtRefEditor
      Returns:
      list of encountered errors
    • manageBindingForLDEPF

      public List<SclReportItem> manageBindingForLDEPF(SCL scd, ILDEPFSettings settings)
      Description copied from interface: ExtRefEditor
      ExtRef Binding For LDevice (inst=LDEPF) that matching LDEPF configuration
      Specified by:
      manageBindingForLDEPF in interface ExtRefEditor
      Parameters:
      scd - SCL
      settings - ILDEPFSettings
      Returns:
      list of encountered errors
    • filterDuplicatedExtRefs

      public static List<TExtRef> filterDuplicatedExtRefs(List<TExtRef> tExtRefs)
      Remove ExtRef which are fed by same Control Block
      Returns:
      list ExtRefs without duplication