Class RevertCreateLineOnLine
- java.lang.Object
-
- com.powsybl.iidm.modification.AbstractNetworkModification
-
- com.powsybl.iidm.modification.topology.RevertCreateLineOnLine
-
- All Implemented Interfaces:
NetworkModification
public class RevertCreateLineOnLine extends AbstractNetworkModification
This method reverses the action done in theCreateLineOnLine
class : it replaces 3 existing lines (with the same voltage level at one of their side) with a new line, and eventually removes the existing voltage levels (tee point and tapped voltage level), if they contain no equipments anymore, except bus or bus bar section
Before modification:VL1 --------------------- tee point -------------------- VL2 (lineToBeMerged1Id) | (lineToBeMerged2Id) | | (lineToBeDeletedId) | tapped voltage level
After modification:VL1 ----------------------------- VL2 (mergedLineId)
- 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
getLineToBeDeletedId()
String
getLineToBeMerged1Id()
String
getLineToBeMerged2Id()
String
getMergedLineId()
String
getMergedLineName()
RevertCreateLineOnLine
setLineToBeDeletedId(String lineToBeDeletedId)
RevertCreateLineOnLine
setLineToBeMerged1Id(String lineToBeMerged1Id)
RevertCreateLineOnLine
setLineToBeMerged2Id(String lineToBeMerged2Id)
RevertCreateLineOnLine
setMergedLineId(String mergedLineId)
RevertCreateLineOnLine
setMergedLineName(String mergedLineName)
-
Methods inherited from class com.powsybl.iidm.modification.AbstractNetworkModification
apply, apply, apply, apply, apply, logOrThrow
-
-
-
-
Method Detail
-
setLineToBeMerged1Id
public RevertCreateLineOnLine setLineToBeMerged1Id(String lineToBeMerged1Id)
-
setLineToBeMerged2Id
public RevertCreateLineOnLine setLineToBeMerged2Id(String lineToBeMerged2Id)
-
setLineToBeDeletedId
public RevertCreateLineOnLine setLineToBeDeletedId(String lineToBeDeletedId)
-
setMergedLineId
public RevertCreateLineOnLine setMergedLineId(String mergedLineId)
-
setMergedLineName
public RevertCreateLineOnLine setMergedLineName(String mergedLineName)
-
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.
-
getLineToBeMerged1Id
public String getLineToBeMerged1Id()
-
getLineToBeMerged2Id
public String getLineToBeMerged2Id()
-
getLineToBeDeletedId
public String getLineToBeDeletedId()
-
getMergedLineId
public String getMergedLineId()
-
getMergedLineName
public String getMergedLineName()
-
-