Package com.powsybl.iidm.network
Class Importers
- java.lang.Object
-
- com.powsybl.iidm.network.Importers
-
public final class Importers extends Object
A utility class to work with IIDM importers.- Author:
- Geoffroy Jamgotchian
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
importAll(Path dir, Importer importer, boolean parallel, Consumer<Network> consumer)
static void
importAll(Path dir, Importer importer, boolean parallel, Consumer<Network> consumer, Consumer<ReadOnlyDataSource> listener)
static void
importAll(Path dir, Importer importer, boolean parallel, Properties parameters, Consumer<Network> consumer, Consumer<ReadOnlyDataSource> listener, Reporter reporter)
static void
importAll(Path dir, Importer importer, boolean parallel, Properties parameters, Consumer<Network> consumer, Consumer<ReadOnlyDataSource> listener, NetworkFactory networkFactory, Reporter reporter)
static Network
importData(ImportersLoader loader, String format, ReadOnlyDataSource dataSource, Properties parameters, ComputationManager computationManager, ImportConfig config)
static Network
importData(ImportersLoader loader, String format, ReadOnlyDataSource dataSource, Properties parameters, ComputationManager computationManager, ImportConfig config, Reporter reporter)
A convenient method to create a model from data in a given format.static Network
importData(String format, ReadOnlyDataSource dataSource, Properties parameters)
static Network
importData(String format, ReadOnlyDataSource dataSource, Properties parameters, Reporter reporter)
static Network
importData(String format, ReadOnlyDataSource dataSource, Properties parameters, ComputationManager computationManager)
static Network
importData(String format, ReadOnlyDataSource dataSource, Properties parameters, ComputationManager computationManager, Reporter reporter)
static Network
importData(String format, String directory, String baseName, Properties parameters)
A convenient method to create a model from data in a given format.
-
-
-
Method Detail
-
importData
public static Network importData(ImportersLoader loader, String format, ReadOnlyDataSource dataSource, Properties parameters, ComputationManager computationManager, ImportConfig config, Reporter reporter)
A convenient method to create a model from data in a given format.- Parameters:
format
- the import formatdataSource
- data sourceparameters
- some properties to configure the importcomputationManager
- computation manager to use for default post processorsconfig
- the import configurationreporter
- the reporter used for functional logs- Returns:
- the model
-
importData
public static Network importData(ImportersLoader loader, String format, ReadOnlyDataSource dataSource, Properties parameters, ComputationManager computationManager, ImportConfig config)
-
importData
public static Network importData(String format, ReadOnlyDataSource dataSource, Properties parameters, ComputationManager computationManager, Reporter reporter)
-
importData
public static Network importData(String format, ReadOnlyDataSource dataSource, Properties parameters, ComputationManager computationManager)
-
importData
public static Network importData(String format, ReadOnlyDataSource dataSource, Properties parameters, Reporter reporter)
-
importData
public static Network importData(String format, ReadOnlyDataSource dataSource, Properties parameters)
-
importData
public static Network importData(String format, String directory, String baseName, Properties parameters)
A convenient method to create a model from data in a given format.- Parameters:
format
- the import formatdirectory
- the directory where input files arebaseName
- a base name for all input filesparameters
- some properties to configure the import- Returns:
- the model
-
importAll
public static void importAll(Path dir, Importer importer, boolean parallel, Properties parameters, Consumer<Network> consumer, Consumer<ReadOnlyDataSource> listener, Reporter reporter) throws IOException, InterruptedException, ExecutionException
-
importAll
public static void importAll(Path dir, Importer importer, boolean parallel, Properties parameters, Consumer<Network> consumer, Consumer<ReadOnlyDataSource> listener, NetworkFactory networkFactory, Reporter reporter) throws IOException, InterruptedException, ExecutionException
-
importAll
public static void importAll(Path dir, Importer importer, boolean parallel, Consumer<Network> consumer, Consumer<ReadOnlyDataSource> listener) throws IOException, InterruptedException, ExecutionException
-
importAll
public static void importAll(Path dir, Importer importer, boolean parallel, Consumer<Network> consumer) throws IOException, InterruptedException, ExecutionException
-
-