Class SubstationAdapter

java.lang.Object
org.lfenergy.compas.sct.commons.scl.SclElementAdapter<SclRootAdapter,TSubstation>
org.lfenergy.compas.sct.commons.scl.sstation.SubstationAdapter

public class SubstationAdapter extends SclElementAdapter<SclRootAdapter,TSubstation>
A representation of the model object SubstationAdapter.

The following features are supported:

  1. Adapter
  2. Principal functions
  3. XPATH Example :

               Substation[@name="SUBSTATION"]
           

See Also:
  • Constructor Details

    • SubstationAdapter

      public SubstationAdapter(SclRootAdapter parentAdapter)
      Constructor
      Parameters:
      parentAdapter - Parent container reference
    • SubstationAdapter

      public SubstationAdapter(SclRootAdapter parentAdapter, TSubstation currentElem)
      Constructor
      Parameters:
      parentAdapter - Parent container reference
      currentElem - Current reference
    • SubstationAdapter

      public SubstationAdapter(SclRootAdapter parentAdapter, String ssName) throws ScdException
      Constructor
      Parameters:
      parentAdapter - Parent container reference
      ssName - Substation name reference
      Throws:
      ScdException
  • Method Details

    • amChildElementRef

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

      protected String elementXPath()
      Returns XPath path to current Substation
      Specified by:
      elementXPath in class SclElementAdapter<SclRootAdapter,TSubstation>
      Returns:
      path to current Substation
    • getVoltageLevelAdapter

      public Optional<VoltageLevelAdapter> getVoltageLevelAdapter(String vLevelName)
      Gets Voltage Level from current Substation
      Parameters:
      vLevelName - name of Voltage Level to get
      Returns:
      optional of VoltageLevelAdapter object
    • streamVoltageLevelAdapters

      public Stream<VoltageLevelAdapter> streamVoltageLevelAdapters()
      Gets Voltage Level in Stream from current Substation
      Returns:
      Stream of VoltageLevelAdapter object from Substation
    • getIedAndLDeviceNamesForLN0FromLNode

      public List<org.apache.commons.lang3.tuple.Pair<String,String>> getIedAndLDeviceNamesForLN0FromLNode()
      Gets a pair of IedName and LDevice inst from Substation LNodes for LN0 type object
      Returns:
      a pair of Ied name and LDevice inst attributes