Interface CgmesImportPostProcessor

  • All Known Implementing Classes:
    PhaseAngleClock

    public interface CgmesImportPostProcessor

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

    Example:
       @AutoService(CgmesImportPostProcessor.class)
        public class MyPlugin implements CgmesImportPostProcessor {
    
           @Override
            public String getName() {
                return "MyPlugin";
            }
    
           @Override
            public void process(Network network, TripleStore tripleStore) {
                ...
            }
        }
     
    Author:
    Geoffroy Jamgotchian
    See Also:
    ServiceLoader, AutoService
    • Method Detail

      • getName

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

        void process​(Network network,
                     TripleStore tripleStore)
        Method called after all base data have been processed. It is called one time per CGMES conversion. It is expected in this method to query triple store for additional data and to attach IIDM extensions to network.
        Parameters:
        network - the IIDM network model
        tripleStore - the triple store