Class SubNetworkDTO

java.lang.Object
org.lfenergy.compas.sct.commons.dto.SubNetworkDTO

public class SubNetworkDTO extends Object
A representation of the model object Sub Network.

The following features are supported:

See Also:
  • Constructor Details

    • SubNetworkDTO

      public SubNetworkDTO(String name, String type)
      Constructor
      Parameters:
      name - input
      type - input
  • Method Details

    • from

      public static SubNetworkDTO from(SubNetworkAdapter subNetworkAdapter)
      Initializes SubNetworkDTO
      Parameters:
      subNetworkAdapter - input
      Returns:
      SubNetworkDTO object value
    • getConnectedAPs

      public Set<ConnectedApDTO> getConnectedAPs()
      Gets list of ConnectedApDTO of SubNetwork
      Returns:
      Set of ConnectedApDTO object
    • getType

      public String getType()
      Gets SubNetwork type
      Returns:
      string SubNetwork type
    • addConnectedAP

      public void addConnectedAP(ConnectedApDTO cap)
      Add ConnectedApDTO to SubNetwork list of ConnectedAPs'
      Parameters:
      cap - input
    • setName

      public void setName(String sName)
      Sets SubNetwork name
      Parameters:
      sName - input
    • setType

      public void setType(String type)
      Sets SubNetwork Type
      Parameters:
      type - input
    • createDefaultSubnetwork

      public static List<SubNetworkDTO> createDefaultSubnetwork(String iedName, TCommunication communication, List<SubNetworkTypeDTO> subNetworkTypes)
      Create default Subnetwork in Communication node of SCL file
      Parameters:
      iedName - Name of existing IED in SCL
      communication - Communication node in SCL
      subNetworkTypes - Possible name of Subnetwork and corresponding ConnectedAPs
      Returns:
      List of Subnetwork