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
|
String |
getComment()
Get some information about this importer.
|
String |
getFormat()
Get a unique identifier of the format.
|
default List<Parameter> |
getParameters()
Get a description of import parameters
|
default Network |
importData(ReadOnlyDataSource dataSource,
NetworkFactory networkFactory,
Properties parameters)
Create a model.
|
default Network |
importData(ReadOnlyDataSource dataSource,
Properties parameters)
Deprecated.
|
String getFormat()
default List<Parameter> getParameters()
String getComment()
boolean exists(ReadOnlyDataSource dataSource)
dataSource
- the data source@Deprecated default Network importData(ReadOnlyDataSource dataSource, Properties parameters)
importData(ReadOnlyDataSource, NetworkFactory, Properties)
instead.default Network importData(ReadOnlyDataSource dataSource, NetworkFactory networkFactory, Properties parameters)
dataSource
- data sourcenetworkFactory
- network factoryparameters
- some properties to configure the importdefault void copy(ReadOnlyDataSource fromDataSource, DataSource toDataSource)
fromDataSource
- from data sourcetoDataSource
- destination data sourceCopyright © 2020. All rights reserved.