public interface Importer
Importer
lookup is based on the ServiceLoader
architecture so do not forget to create a
META-INF/services/com.powsybl.iidm.importData.Importer
file
with the fully qualified name of your Importer
implementation.
ServiceLoader
,
Importers
Modifier and Type | Method and Description |
---|---|
default void |
copy(ReadOnlyDataSource fromDataSource,
DataSource toDataSource)
Copy data from one data source to another.
|
boolean |
exists(ReadOnlyDataSource dataSource)
Check if the data source is importable
|
java.lang.String |
getComment()
Get some information about this importer.
|
java.lang.String |
getFormat()
Get a unique identifier of the format.
|
default java.util.List<Parameter> |
getParameters()
Get a description of import parameters
|
Network |
importData(ReadOnlyDataSource dataSource,
java.util.Properties parameters)
Create a model.
|
java.lang.String getFormat()
default java.util.List<Parameter> getParameters()
java.lang.String getComment()
boolean exists(ReadOnlyDataSource dataSource)
dataSource
- the data sourceNetwork importData(ReadOnlyDataSource dataSource, java.util.Properties parameters)
dataSource
- data sourceparameters
- some properties to configure the importdefault void copy(ReadOnlyDataSource fromDataSource, DataSource toDataSource)
fromDataSource
- from data sourcetoDataSource
- destination data source