Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

import com.powsybl.commons.report.ReportNode;
import com.powsybl.iidm.modification.topology.CreateCouplingDeviceBuilder;
import com.powsybl.iidm.modification.topology.DefaultNamingStrategy;
import com.powsybl.iidm.modification.topology.NamingStrategy;
import com.powsybl.iidm.network.Network;
import org.gridsuite.modification.ModificationType;
import org.gridsuite.modification.dto.CreateCouplingDeviceInfos;
Expand All @@ -28,11 +30,16 @@ public CreateCouplingDevice(CreateCouplingDeviceInfos createCouplingDeviceInfos)
* @param subReportNode
*/
@Override
public void apply(Network network, ReportNode subReportNode) {
public void apply(Network network, NamingStrategy namingStrategy, ReportNode subReportNode) {
new CreateCouplingDeviceBuilder()
.withBusOrBusbarSectionId1(createCouplingDeviceInfos.getCouplingDeviceInfos().getBusbarSectionId1())
.withBusOrBusbarSectionId2(createCouplingDeviceInfos.getCouplingDeviceInfos().getBusbarSectionId2())
.build().apply(network, false, subReportNode);
.build().apply(network, namingStrategy, false, subReportNode);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove false argument !

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

}

@Override
public void apply(Network network, ReportNode subReportNode) {
apply(network, new DefaultNamingStrategy(), subReportNode);
}

@Override
Expand Down