Interface CgmesImportPreProcessor

All Known Implementing Classes:
CreateMissingContainersPreProcessor

public interface CgmesImportPreProcessor

Interface for CGMES pre-processor plugins. All CGMES pre-processors have to implement this interface and implementation class has to be annotated with @AutoService(CgmesImportPreProcessor.class).

Example:
   @AutoService(CgmesImportPreProcessor.class)
    public class MyPlugin implements CgmesImportPreProcessor {

       @Override
        public String getName() {
            return "MyPlugin";
        }

       @Override
        public void process(CgmesModel cgmesModel) {
            ...
        }
    }
 
Author:
Luma ZamarreƱo <zamarrenolm at aia.es>
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Get post processor name.
    void
    Method called after initial CGMES model has been read and before starting the conversion.
  • Method Details

    • getName

      String getName()
      Get post processor name. It has to be unique among all CGMES post-processors.
      Returns:
      post processor name
    • process

      void process(CgmesModel cgmes)
      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.
      Parameters:
      cgmes - the CgmesModel to be processed