Class SubstationService

java.lang.Object
org.lfenergy.compas.sct.commons.SubstationService
All Implemented Interfaces:
SubstationEditor

public class SubstationService extends Object implements SubstationEditor
  • Constructor Details

    • SubstationService

      public SubstationService()
  • Method Details

    • addSubstation

      public void addSubstation(@NonNull @NonNull SCL scd, @NonNull @NonNull SCL ssd) throws ScdException
      Description copied from interface: SubstationEditor
      Adds or Updates Substation section in SCL
      Specified by:
      addSubstation in interface SubstationEditor
      Parameters:
      scd - SCL file in which Substation should be added/updated
      ssd - SCL file from which Substation should be copied
      Throws:
      ScdException - throws when SCD contents already another Substation, or with different name, or contents more than one Substation