Package com.powsybl.iidm.serde
Class AbstractTreeDataImporter
java.lang.Object
com.powsybl.iidm.serde.AbstractTreeDataImporter
- All Implemented Interfaces:
Importer
- Direct Known Subclasses:
BinaryImporter
,JsonImporter
,XMLImporter
- Author:
- Geoffroy Jamgotchian <geoffroy.jamgotchian at rte-france.com>
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.powsybl.iidm.network.Importer
Importer.ImporterWrapper
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
protected
AbstractTreeDataImporter
(PlatformConfig platformConfig) -
Method Summary
Modifier and TypeMethodDescriptionvoid
copy
(ReadOnlyDataSource fromDataSource, DataSource toDataSource) Copy data from one data source to another.protected ImportOptions
createImportOptions
(Properties parameters) boolean
exists
(ReadOnlyDataSource dataSource) Check if the data source is importableprotected abstract boolean
exists
(ReadOnlyDataSource dataSource, String ext) protected abstract String[]
Get a description of import parametersimportData
(ReadOnlyDataSource dataSource, NetworkFactory networkFactory, Properties parameters, ReportNode reportNode) Create a model.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.powsybl.iidm.network.Importer
getComment, getFormat, importData, importData
-
Field Details
-
THROW_EXCEPTION_IF_EXTENSION_NOT_FOUND
- See Also:
-
EXTENSIONS_LIST
- See Also:
-
WITH_AUTOMATION_SYSTEMS
- See Also:
-
MISSING_PERMANENT_LIMIT_PERCENTAGE
- See Also:
-
MINIMAL_VALIDATION_LEVEL
- See Also:
-
MISSING_PERMANENT_LIMIT_PERCENTAGE_PARAMETER
-
MINIMAL_VALIDATION_LEVEL_PARAMETER
-
-
Constructor Details
-
AbstractTreeDataImporter
protected AbstractTreeDataImporter() -
AbstractTreeDataImporter
-
-
Method Details
-
getParameters
Description copied from interface:Importer
Get a description of import parameters- Specified by:
getParameters
in interfaceImporter
- Returns:
-
getExtensions
-
exists
Description copied from interface:Importer
Check if the data source is importable -
exists
- Throws:
IOException
-
copy
Description copied from interface:Importer
Copy data from one data source to another. -
importData
public Network importData(ReadOnlyDataSource dataSource, NetworkFactory networkFactory, Properties parameters, ReportNode reportNode) Description copied from interface:Importer
Create a model.- Specified by:
importData
in interfaceImporter
- Parameters:
dataSource
- data sourcenetworkFactory
- network factoryparameters
- some properties to configure the importreportNode
- the reportNode used for functional logs- Returns:
- the model
-
createImportOptions
-