Class AccessPointAdapter

java.lang.Object
org.lfenergy.compas.sct.commons.scl.SclElementAdapter<IEDAdapter,TAccessPoint>
org.lfenergy.compas.sct.commons.scl.ied.AccessPointAdapter

public class AccessPointAdapter extends SclElementAdapter<IEDAdapter,TAccessPoint>
A representation of the model object AccessPoint.

The following features are supported:

  1. Functions
  • Field Details

    • MAX_OCCURRENCE_NO_LIMIT_VALUE

      public static final long MAX_OCCURRENCE_NO_LIMIT_VALUE
      See Also:
  • Constructor Details

    • AccessPointAdapter

      public AccessPointAdapter(IEDAdapter parentAdapter, TAccessPoint tAccessPoint)
      Constructor
      Parameters:
      parentAdapter - Parent container reference
      tAccessPoint - Current reference
  • Method Details

    • amChildElementRef

      protected boolean amChildElementRef()
      Check if current element is a child of the parent element
      Specified by:
      amChildElementRef in class SclElementAdapter<IEDAdapter,TAccessPoint>
      Returns:
      true if the currentElem is part of the parentAdapter children
    • elementXPath

      protected String elementXPath()
      Description copied from class: SclElementAdapter
      Returns XPath path to current element
      Specified by:
      elementXPath in class SclElementAdapter<IEDAdapter,TAccessPoint>
      Returns:
      message as undefined
    • checkFCDALimitations

      public List<SclReportItem> checkFCDALimitations()
      Checks FCDA number limitation into each LDevice of AccessPoint
      Returns:
      List of errors encountered for LDevices
    • checkControlsLimitation

      public Optional<SclReportItem> checkControlsLimitation(ServicesConfigEnum servicesConfigEnum)
      Checks if occurrences of specified tpe (DataSet, Controls) exceeds config limitation
      Parameters:
      servicesConfigEnum - type of element for which limitation is checked
      Returns:
      Optional of encountered error or empty
    • checkLimitationForBoundIedFcdas

      public Optional<SclReportItem> checkLimitationForBoundIedFcdas(List<TExtRef> tExtRefs)
      Checks FCDA number limitation for bound IED
      Returns:
      Optional of encountered error or empty
    • getAllCoherentExtRefForAnalyze

      public AccessPointAdapter.ExtRefAnalyzeRecord getAllCoherentExtRefForAnalyze()
      Returns all ExtRef of the AccessPoint which have SrcCBName set and ServiceType provided
      Returns:
      ExtRefAnalyzeRecord object containing Set of ExtRefs and errors list for ExtRefs with SrcCBName and without ServiceType provided
    • checkLimitationForBoundIEDControls

      public List<SclReportItem> checkLimitationForBoundIEDControls(List<TExtRef> tExtRefs)
      Checks Control Blocks (Report, Goose, SMV) number limitation for bound IED
      Returns:
      List of errors encountered