Skip to content

Migration guide v3.8.0

MioRtia edited this page Nov 26, 2020 · 6 revisions

ExecutionReport

The ExecutionReport::ok method has been removed in the PR #1511, because the default implementation need to access to the temporary directory created by the ComputationManager to read the standard output and error streams. This methods was used only in unit tests.

If you were using it, you can create a DefaultExecutionReport instance instead:

new DefaultExecutionReport(workingDir);

TieLineAdder

To reuse a TieLineAdder twice, the TieLineAdder interface has been updated in the PR #1507. A new HalfLineAdder interface is now used to build a HalfLine, and methods line1 and line2 was renamed as newHalfLine1 and newHalfLine2. Note that you have to call the new add method to create the half-line.

If you were using it, note that:

TieLineAdder adder = network.newTieLine()
                            .line1()
                                .setId("")
                                .setName("")
                                .setR(0.0)
                                .setX(0.0)
                                .setG1(0.0)
                                .setG2(0.0)
                                .setB1(0.0)
                                .setB2(0.0)
                                .setXnodeP(0)
                                .setXnodeQ(0)
                            .line2()
                                .setId("")
                                .setName("")
                                .setR(0.0)
                                .setX(0.0)
                                .setG1(0.0)
                                .setG2(0.0)
                                .setB1(0.0)
                                .setB2(0.0)
                                .setXnodeP(0)
                                .setXnodeQ(0);

will not work anymore. Please replace it by:

TieLineAdder adder = network.newTieLine()
                            .newHalfLine1()
                                .setId("")
                                .setName("")
                                .setR(0.0)
                                .setX(0.0)
                                .setG1(0.0)
                                .setG2(0.0)
                                .setB1(0.0)
                                .setB2(0.0)
                                .setXnodeP(0)
                                .setXnodeQ(0)
                                .add()
                            .newHalfLine2()
                                .setId("")
                                .setName("")
                                .setR(0.0)
                                .setX(0.0)
                                .setG1(0.0)
                                .setG2(0.0)
                                .setB1(0.0)
                                .setB2(0.0)
                                .setXnodeP(0)
                                .setXnodeQ(0)
                                .add();

Ensuring IDs and aliases unicity in CGMES import

While trying to import CGMES files with duplicated CGMES IDs with the default configuration, an exception will now be thrown. To prevent that, use the iidm.import.cgmes.ensure-id-alias-unicity property in import-export-parameters-default-value configuration module (documentation here) and set it to true. Please be aware that might create inconsistencies in files generated by CGMES export afterwards.

Clone this wiki locally