Class AbstractTreeDataImporter

java.lang.Object
com.powsybl.iidm.serde.AbstractTreeDataImporter
All Implemented Interfaces:
Importer
Direct Known Subclasses:
BinaryImporter, JsonImporter, XMLImporter

public abstract class AbstractTreeDataImporter extends Object implements Importer
Author:
Geoffroy Jamgotchian <geoffroy.jamgotchian at rte-france.com>
  • Field Details

    • THROW_EXCEPTION_IF_EXTENSION_NOT_FOUND

      public static final String THROW_EXCEPTION_IF_EXTENSION_NOT_FOUND
      See Also:
    • EXTENSIONS_LIST

      public static final String EXTENSIONS_LIST
      See Also:
    • WITH_AUTOMATION_SYSTEMS

      public static final String WITH_AUTOMATION_SYSTEMS
      See Also:
    • MISSING_PERMANENT_LIMIT_PERCENTAGE

      public static final String MISSING_PERMANENT_LIMIT_PERCENTAGE
      See Also:
    • MINIMAL_VALIDATION_LEVEL

      public static final String MINIMAL_VALIDATION_LEVEL
      See Also:
    • MISSING_PERMANENT_LIMIT_PERCENTAGE_PARAMETER

      public static final Parameter MISSING_PERMANENT_LIMIT_PERCENTAGE_PARAMETER
    • MINIMAL_VALIDATION_LEVEL_PARAMETER

      public static final Parameter MINIMAL_VALIDATION_LEVEL_PARAMETER
  • Constructor Details

    • AbstractTreeDataImporter

      protected AbstractTreeDataImporter()
    • AbstractTreeDataImporter

      protected AbstractTreeDataImporter(PlatformConfig platformConfig)
  • Method Details

    • getParameters

      public List<Parameter> getParameters()
      Description copied from interface: Importer
      Get a description of import parameters
      Specified by:
      getParameters in interface Importer
      Returns:
    • getExtensions

      protected abstract String[] getExtensions()
    • exists

      public boolean exists(ReadOnlyDataSource dataSource)
      Description copied from interface: Importer
      Check if the data source is importable
      Specified by:
      exists in interface Importer
      Parameters:
      dataSource - the data source
      Returns:
      true if the data source is importable, false otherwise
    • exists

      protected abstract boolean exists(ReadOnlyDataSource dataSource, String ext) throws IOException
      Throws:
      IOException
    • copy

      public void copy(ReadOnlyDataSource fromDataSource, DataSource toDataSource)
      Description copied from interface: Importer
      Copy data from one data source to another.
      Specified by:
      copy in interface Importer
      Parameters:
      fromDataSource - from data source
      toDataSource - destination data source
    • importData

      public Network importData(ReadOnlyDataSource dataSource, NetworkFactory networkFactory, Properties parameters, ReportNode reportNode)
      Description copied from interface: Importer
      Create a model.
      Specified by:
      importData in interface Importer
      Parameters:
      dataSource - data source
      networkFactory - network factory
      parameters - some properties to configure the import
      reportNode - the reportNode used for functional logs
      Returns:
      the model
    • createImportOptions

      protected ImportOptions createImportOptions(Properties parameters)