Class LN0Adapter


public class LN0Adapter extends AbstractLNAdapter<LN0>
See Also:
  • Field Details

    • BEHAVIOUR_DO_TYPE_NAME

      public static final DoTypeName BEHAVIOUR_DO_TYPE_NAME
    • BEHAVIOUR_DA_TYPE_NAME

      public static final DaTypeName BEHAVIOUR_DA_TYPE_NAME
  • Constructor Details

    • LN0Adapter

      public LN0Adapter(LDeviceAdapter parentAdapter, LN0 ln0)
      Constructor
      Parameters:
      parentAdapter - Parent container reference
      ln0 - Current reference
  • Method Details

    • amChildElementRef

      protected boolean amChildElementRef()
      Check if node is child of the reference node
      Specified by:
      amChildElementRef in class SclElementAdapter<LDeviceAdapter,LN0>
      Returns:
      link parent child existence
    • elementXPath

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

      protected Class<LN0> getElementClassType()
      Gets current LN0 class type
      Specified by:
      getElementClassType in class AbstractLNAdapter<LN0>
      Returns:
      LN0.class
    • getLNClass

      public String getLNClass()
      Gets LNClass enum value of current LNO
      Specified by:
      getLNClass in class AbstractLNAdapter<LN0>
      Returns:
      LNClass value
    • getLNInst

      public String getLNInst()
      Gets LNInst value of current LN0
      Specified by:
      getLNInst in class AbstractLNAdapter<LN0>
      Returns:
      ""
    • getPrefix

      public String getPrefix()
      Gets Prefix value of current LN0
      Specified by:
      getPrefix in class AbstractLNAdapter<LN0>
      Returns:
      ""
    • getInputsAdapter

      public InputsAdapter getInputsAdapter()
      Gets Inputs node as an adapter
      Returns:
      an InputsAdapter
    • matchesDataAttributes

      protected boolean matchesDataAttributes(String dataAttribute)
      Checks if given attibrute corresponds to DataSet or ReportControl or SMVControl or GSEControl in current LN0
      Overrides:
      matchesDataAttributes in class AbstractLNAdapter<LN0>
      Parameters:
      dataAttribute - attribute to check
      Returns:
      Boolean value of check result
    • removeAllControlBlocksAndDatasets

      public void removeAllControlBlocksAndDatasets()
      Remove all SMVControl and GSEControl of current LN0
      Overrides:
      removeAllControlBlocksAndDatasets in class AbstractLNAdapter<LN0>
    • updateLDeviceStatus

      public Optional<SclReportItem> updateLDeviceStatus(List<org.apache.commons.lang3.tuple.Pair<String,String>> iedNameLDeviceInstList)
      Verify and update LDevice status in parent Node
      Parameters:
      iedNameLDeviceInstList - pair of Ied name and LDevice inst attributes
      Returns:
      Set of Errors
    • updateDoInRef

      public List<SclReportItem> updateDoInRef()
      Update DAIs of DO InRef in all LN0 of the SCD using matching ExtRef information.
      Returns:
      A list of SclReport Objects that contain errors