Package com.powsybl.cgmes.conversion
Class CgmesImport
- java.lang.Object
-
- com.powsybl.cgmes.conversion.CgmesImport
-
- All Implemented Interfaces:
Importer
@AutoService(Importer.class) public class CgmesImport extends Object implements Importer
- Author:
- Luma ZamarreƱo
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.powsybl.iidm.import_.Importer
Importer.ImporterWrapper
-
-
Field Summary
Fields Modifier and Type Field Description static String
ALLOW_UNSUPPORTED_TAP_CHANGERS
static String
BOUNDARY_LOCATION
static String
CHANGE_SIGN_FOR_SHUNT_REACTIVE_POWER_FLOW_INITIAL_STATE
static String
CONVERT_BOUNDARY
static String
CONVERT_SV_INJECTIONS
static String
CREATE_BUSBAR_SECTION_FOR_EVERY_CONNECTIVITY_NODE
static String
CREATE_CGMES_EXPORT_MAPPING
static String
ENSURE_ID_ALIAS_UNICITY
static String
ID_MAPPING_FILE_NAMING_STRATEGY
static String
ID_MAPPING_FILE_PATH
static String
IMPORT_CONTROL_AREAS
static String
POST_PROCESSORS
static String
POWSYBL_TRIPLESTORE
static String
PROFILE_FOR_INITIAL_VALUES_SHUNT_SECTIONS_TAP_POSITIONS
static String
SOURCE_FOR_IIDM_ID
static String
SOURCE_FOR_IIDM_ID_MRID
static String
SOURCE_FOR_IIDM_ID_RDFID
static String
STORE_CGMES_CONVERSION_CONTEXT_AS_NETWORK_EXTENSION
static String
STORE_CGMES_MODEL_AS_NETWORK_EXTENSION
-
Constructor Summary
Constructors Constructor Description CgmesImport()
CgmesImport(PlatformConfig platformConfig)
CgmesImport(PlatformConfig platformConfig, List<CgmesImportPostProcessor> postProcessors)
CgmesImport(List<CgmesImportPostProcessor> postProcessors)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
copy(ReadOnlyDataSource from, DataSource to)
Copy data from one data source to another.boolean
exists(ReadOnlyDataSource ds)
Check if the data source is importableString
getComment()
Get some information about this importer.String
getFormat()
Get a unique identifier of the format.List<Parameter>
getParameters()
Get a description of import parametersNetwork
importData(ReadOnlyDataSource ds, NetworkFactory networkFactory, Properties p)
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.import_.Importer
importData, importData
-
-
-
-
Field Detail
-
ALLOW_UNSUPPORTED_TAP_CHANGERS
public static final String ALLOW_UNSUPPORTED_TAP_CHANGERS
- See Also:
- Constant Field Values
-
BOUNDARY_LOCATION
public static final String BOUNDARY_LOCATION
- See Also:
- Constant Field Values
-
CHANGE_SIGN_FOR_SHUNT_REACTIVE_POWER_FLOW_INITIAL_STATE
public static final String CHANGE_SIGN_FOR_SHUNT_REACTIVE_POWER_FLOW_INITIAL_STATE
- See Also:
- Constant Field Values
-
CONVERT_BOUNDARY
public static final String CONVERT_BOUNDARY
- See Also:
- Constant Field Values
-
CONVERT_SV_INJECTIONS
public static final String CONVERT_SV_INJECTIONS
- See Also:
- Constant Field Values
-
CREATE_BUSBAR_SECTION_FOR_EVERY_CONNECTIVITY_NODE
public static final String CREATE_BUSBAR_SECTION_FOR_EVERY_CONNECTIVITY_NODE
- See Also:
- Constant Field Values
-
CREATE_CGMES_EXPORT_MAPPING
public static final String CREATE_CGMES_EXPORT_MAPPING
- See Also:
- Constant Field Values
-
ENSURE_ID_ALIAS_UNICITY
public static final String ENSURE_ID_ALIAS_UNICITY
- See Also:
- Constant Field Values
-
ID_MAPPING_FILE_PATH
public static final String ID_MAPPING_FILE_PATH
- See Also:
- Constant Field Values
-
ID_MAPPING_FILE_NAMING_STRATEGY
public static final String ID_MAPPING_FILE_NAMING_STRATEGY
- See Also:
- Constant Field Values
-
IMPORT_CONTROL_AREAS
public static final String IMPORT_CONTROL_AREAS
- See Also:
- Constant Field Values
-
POST_PROCESSORS
public static final String POST_PROCESSORS
- See Also:
- Constant Field Values
-
POWSYBL_TRIPLESTORE
public static final String POWSYBL_TRIPLESTORE
- See Also:
- Constant Field Values
-
PROFILE_FOR_INITIAL_VALUES_SHUNT_SECTIONS_TAP_POSITIONS
public static final String PROFILE_FOR_INITIAL_VALUES_SHUNT_SECTIONS_TAP_POSITIONS
- See Also:
- Constant Field Values
-
SOURCE_FOR_IIDM_ID
public static final String SOURCE_FOR_IIDM_ID
- See Also:
- Constant Field Values
-
STORE_CGMES_MODEL_AS_NETWORK_EXTENSION
public static final String STORE_CGMES_MODEL_AS_NETWORK_EXTENSION
- See Also:
- Constant Field Values
-
STORE_CGMES_CONVERSION_CONTEXT_AS_NETWORK_EXTENSION
public static final String STORE_CGMES_CONVERSION_CONTEXT_AS_NETWORK_EXTENSION
- See Also:
- Constant Field Values
-
SOURCE_FOR_IIDM_ID_MRID
public static final String SOURCE_FOR_IIDM_ID_MRID
- See Also:
- Constant Field Values
-
SOURCE_FOR_IIDM_ID_RDFID
public static final String SOURCE_FOR_IIDM_ID_RDFID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CgmesImport
public CgmesImport(PlatformConfig platformConfig, List<CgmesImportPostProcessor> postProcessors)
-
CgmesImport
public CgmesImport(PlatformConfig platformConfig)
-
CgmesImport
public CgmesImport(List<CgmesImportPostProcessor> postProcessors)
-
CgmesImport
public CgmesImport()
-
-
Method Detail
-
getParameters
public List<Parameter> getParameters()
Description copied from interface:Importer
Get a description of import parameters- Specified by:
getParameters
in interfaceImporter
- Returns:
-
exists
public boolean exists(ReadOnlyDataSource ds)
Description copied from interface:Importer
Check if the data source is importable
-
getComment
public String getComment()
Description copied from interface:Importer
Get some information about this importer.- Specified by:
getComment
in interfaceImporter
-
getFormat
public String getFormat()
Description copied from interface:Importer
Get a unique identifier of the format.
-
importData
public Network importData(ReadOnlyDataSource ds, NetworkFactory networkFactory, Properties p)
Description copied from interface:Importer
Create a model.- Specified by:
importData
in interfaceImporter
- Parameters:
ds
- data sourcenetworkFactory
- network factoryp
- some properties to configure the import- Returns:
- the model
-
copy
public void copy(ReadOnlyDataSource from, DataSource to)
Description copied from interface:Importer
Copy data from one data source to another.
-
-