Class ConnectVoltageLevelOnLine
java.lang.Object
com.powsybl.iidm.modification.AbstractNetworkModification
com.powsybl.iidm.modification.topology.ConnectVoltageLevelOnLine
- All Implemented Interfaces:
NetworkModification
This method cuts an existing line in two lines that will be created and connected to an existing voltage level
(also called switching voltage level). The voltage level should be added to the network just before calling this method, and should contains
at least a configured bus in bus/breaker topology or a bus bar section in node/breaker topology.
- Author:
- Miora Vedelago <miora.ralambotiana at rte-france.com>
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(Network network, boolean throwException, ComputationManager computationManager, Reporter reporter) Applies the modification to the given network.protected boolean
failChecks
(Network network, boolean throwException, Reporter reporter, org.slf4j.Logger logger) getLine()
double
setLine1Id
(String line1Id) setLine1Name
(String line1Name) setLine2Id
(String line2Id) setLine2Name
(String line2Name) setPositionPercent
(double positionPercent) Methods inherited from class com.powsybl.iidm.modification.AbstractNetworkModification
apply, apply, apply, apply, apply, logOrThrow
-
Field Details
-
bbsOrBusId
-
line
-
line1Id
-
line1Name
-
line2Id
-
line2Name
-
positionPercent
protected double positionPercent -
voltageLevel
-
-
Method Details
-
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. -
setLine1Id
-
setLine1Name
-
setLine2Id
-
setLine2Name
-
setPositionPercent
-
getPositionPercent
public double getPositionPercent() -
getBbsOrBusId
-
getLine
-
getLine1Id
-
getLine1Name
-
getLine2Id
-
getLine2Name
-
failChecks
-