Class CreateMissingContainersPreProcessor

java.lang.Object
com.powsybl.cgmes.completion.CreateMissingContainersPreProcessor
All Implemented Interfaces:
CgmesImportPreProcessor

@AutoService(CgmesImportPreProcessor.class) public class CreateMissingContainersPreProcessor extends Object implements CgmesImportPreProcessor

A CGMES pre-processor that defines missing containers in input data.

The pre-processor will analyze the input data and check if there are missing container definitions. It will then create a CIM-XML file with all required objects (voltage levels, substations, regions, ...) that will be used during CGMES import to allow the conversion to PowSyBl Network.

It is assumed that all containers missing are voltage levels. The user can specify the location folder of the output files using the parameter iidm.import.cgmes.fixes-for-missing-containers-folder. The CIM version of the output file will be the same detected for the input data. Because no information about voltage level is available, a default arbitrary value for nominal voltage is used. The user may edit the generated files and reuse them in successive imports.

Author:
Luma ZamarreƱo <zamarrenolm at aia.es>
  • Field Details

  • Constructor Details

    • CreateMissingContainersPreProcessor

      public CreateMissingContainersPreProcessor(PlatformConfig platformConfig)
    • CreateMissingContainersPreProcessor

      public CreateMissingContainersPreProcessor()
  • Method Details

    • getName

      public String getName()
      Description copied from interface: CgmesImportPreProcessor
      Get post processor name. It has to be unique among all CGMES post-processors.
      Specified by:
      getName in interface CgmesImportPreProcessor
      Returns:
      post processor name
    • process

      public void process(CgmesModel cgmes)
      Description copied from interface: CgmesImportPreProcessor
      Method called after initial CGMES model has been read and before starting the conversion. It is called one time per CGMES conversion. In this method we could fix a potentially incomplete CGMES model before the conversion starts.
      Specified by:
      process in interface CgmesImportPreProcessor
      Parameters:
      cgmes - the CgmesModel to be processed