Class RevertConnectVoltageLevelOnLine
- java.lang.Object
-
- com.powsybl.iidm.modification.AbstractNetworkModification
-
- com.powsybl.iidm.modification.topology.RevertConnectVoltageLevelOnLine
-
- All Implemented Interfaces:
NetworkModification
public class RevertConnectVoltageLevelOnLine extends AbstractNetworkModification
This method reverses the action done in the ConnectVoltageLevelOnLine class : it replaces 2 existing lines (with the same voltage level at one of their side) with a new line, and eventually removes the voltage level in common (switching voltage level), if it contains no equipments anymore, except bus or bus bar sectionBefore modification:
VL1 ----------- switching voltage level ----------- VL2 (line1) (line2)
After modification:VL1 ------------------------- VL2 (line)
- Author:
- Franck Lecuyer
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
apply(Network network, boolean throwException, ComputationManager computationManager, Reporter reporter)
Applies the modification to the given network.String
getLine1Id()
String
getLine2Id()
String
getLineId()
String
getLineName()
-
-
-
Method Detail
-
apply
public void apply(Network network, boolean throwException, ComputationManager computationManager, Reporter reporter)
Description copied from interface:NetworkModification
Applies the modification to the given network. If throwException is set to true, then in case of error, an exception will be thrown. Otherwise, computation will continue but the injection will not be added to the network in case of error.
-
getLine1Id
public String getLine1Id()
-
getLine2Id
public String getLine2Id()
-
getLineId
public String getLineId()
-
getLineName
public String getLineName()
-
-