Class ControlBlockAdapter

java.lang.Object
org.lfenergy.compas.sct.commons.scl.SclElementAdapter<AbstractLNAdapter<? extends TAnyLN>,TControl>
org.lfenergy.compas.sct.commons.scl.ied.ControlBlockAdapter

public class ControlBlockAdapter extends SclElementAdapter<AbstractLNAdapter<? extends TAnyLN>,TControl>
See Also:
  • Constructor Details

  • Method Details

    • getControlBlockEnum

      public ControlBlockEnum getControlBlockEnum()
    • amChildElementRef

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

      protected String elementXPath()
      Returns local XPath
      Specified by:
      elementXPath in class SclElementAdapter<AbstractLNAdapter<? extends TAnyLN>,TControl>
      Returns:
      XPath for current element (not including parent XPath)
    • getName

      public String getName()
      Get the name of this ControlBlock
      Returns:
      name of ControlBlock
    • addTargetIfNotExists

      public void addTargetIfNotExists(AbstractLNAdapter<?> targetLn)
      Add a ClientLN to ReportControl or IEDName to GSEControl/SampleValueControl, if it does not already exist.
      Parameters:
      targetLn - target LN (where the target ExtRef is)
    • configureNetwork

      public Optional<SclReportItem> configureNetwork(long appId, String macAddress, Integer vlanId, Byte vlanPriority, TDurationInMilliSec minTime, TDurationInMilliSec maxTime)
      Configure the Communication section for this ControlBlock - Communication/SubNetwork/ConnectedAP/GSE for GSEControl block - Communication/SubNetwork/ConnectedAP/SMV for SampledValueControl block
      Parameters:
      appId - value for P type APPID
      macAddress - value for P type MAC-Address
      vlanId - value for P type VLAN-ID
      vlanPriority - value for P type VLAN-PRIORITY
      minTime - MinTime Element
      maxTime - MaxTime Element
      Returns:
      An empty Optional if network have been configured, else a SclReportItem.
    • getParentIedAdapter

      public IEDAdapter getParentIedAdapter()
      Get parent IED
      Returns:
      ControlBlock's parent IEDAdapter