Package com.powsybl.iidm.xml
Class XMLExporter
- java.lang.Object
-
- com.powsybl.iidm.xml.XMLExporter
-
- All Implemented Interfaces:
Exporter
@AutoService(Exporter.class) public class XMLExporter extends Object implements Exporter
XML export of an IIDM model.property name comment possible values iidm.export.xml.indent if true write indented xml (4 spaces) true or false iidm.export.xml.with-branch-state-variables if true export branches state (active and reactive flow) true or false iidm.export.xml.only-main-cc if true only export equipments of the main connected component true or false iidm.export.xml.anonymised if true then exported network is anonymous true or false iidm.export.xml.iidm-version-incompatibility-behavior behavior when there is an IIDM version incompatibility THROW_EXCEPTION or LOG_ERROR iidm.export.xml.topology-level the detail level used in the export of voltage levels NODE_BREAKER, BUS_BREAKER, BUS_BRANCH iidm.export.xml.throw-exception-if-extension-not-found if true throw exception when extension not found true or false iidm.export.xml.extensions list of exported extensions comma-separated string iidm.export.xml.sorted sort export output file true or false iidm.export.xml.version version in which files will be generated 1.5 or 1.4 etc - Author:
- Geoffroy Jamgotchian
-
-
Field Summary
Fields Modifier and Type Field Description static String
ANONYMISED
static String
EXTENSIONS_LIST
static String
IIDM_VERSION_INCOMPATIBILITY_BEHAVIOR
static String
INDENT
static String
ONLY_MAIN_CC
static String
SORTED
static String
THROW_EXCEPTION_IF_EXTENSION_NOT_FOUND
static String
TOPOLOGY_LEVEL
static String
VERSION
static String
WITH_BRANCH_STATE_VARIABLES
-
Constructor Summary
Constructors Constructor Description XMLExporter()
XMLExporter(PlatformConfig platformConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
export(Network network, Properties parameters, DataSource dataSource)
Export a model.String
getComment()
Get some information about this exporter.String
getFormat()
Get a unique identifier of the format.List<Parameter>
getParameters()
Get a description of export parameters
-
-
-
Field Detail
-
INDENT
public static final String INDENT
- See Also:
- Constant Field Values
-
WITH_BRANCH_STATE_VARIABLES
public static final String WITH_BRANCH_STATE_VARIABLES
- See Also:
- Constant Field Values
-
ONLY_MAIN_CC
public static final String ONLY_MAIN_CC
- See Also:
- Constant Field Values
-
ANONYMISED
public static final String ANONYMISED
- See Also:
- Constant Field Values
-
IIDM_VERSION_INCOMPATIBILITY_BEHAVIOR
public static final String IIDM_VERSION_INCOMPATIBILITY_BEHAVIOR
- See Also:
- Constant Field Values
-
TOPOLOGY_LEVEL
public static final String TOPOLOGY_LEVEL
- See Also:
- Constant Field Values
-
THROW_EXCEPTION_IF_EXTENSION_NOT_FOUND
public static final String THROW_EXCEPTION_IF_EXTENSION_NOT_FOUND
- See Also:
- Constant Field Values
-
EXTENSIONS_LIST
public static final String EXTENSIONS_LIST
- See Also:
- Constant Field Values
-
SORTED
public static final String SORTED
- See Also:
- Constant Field Values
-
VERSION
public static final String VERSION
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
XMLExporter
public XMLExporter()
-
XMLExporter
public XMLExporter(PlatformConfig platformConfig)
-
-
Method Detail
-
getFormat
public String getFormat()
Description copied from interface:Exporter
Get a unique identifier of the format.
-
getComment
public String getComment()
Description copied from interface:Exporter
Get some information about this exporter.- Specified by:
getComment
in interfaceExporter
-
export
public void export(Network network, Properties parameters, DataSource dataSource)
Description copied from interface:Exporter
Export a model.
-
getParameters
public List<Parameter> getParameters()
Description copied from interface:Exporter
Get a description of export parameters- Specified by:
getParameters
in interfaceExporter
- Returns:
-
-