Class AttachVoltageLevelOnLine
- java.lang.Object
-
- com.powsybl.iidm.modification.topology.AttachVoltageLevelOnLine
-
- All Implemented Interfaces:
NetworkModification
public class AttachVoltageLevelOnLine extends Object implements NetworkModification
This method cuts an existing line in two lines that will be created and attach an existing voltage level at the attachment point. 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
-
-
Constructor Summary
Constructors Constructor Description AttachVoltageLevelOnLine(double percent, String voltageLevelId, String bbsOrBusId, String line1Id, String line1Name, String line2Id, String line2Name, Line line)
Constructor.AttachVoltageLevelOnLine(String voltageLevelId, String bbsOrBusId, Line line)
Constructor.AttachVoltageLevelOnLine(String voltageLevelId, String bbsOrBusId, String line1Id, String line2Id, Line line)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
apply(Network network)
void
apply(Network network, ComputationManager computationManager)
String
getBbsOrBusId()
Line
getLine()
String
getLine1Id()
String
getLine1Name()
String
getLine2Id()
String
getLine2Name()
double
getPercent()
String
getVoltageLevelId()
AttachVoltageLevelOnLine
setLine1Id(String line1Id)
AttachVoltageLevelOnLine
setLine1Name(String line1Name)
AttachVoltageLevelOnLine
setLine2Id(String line2Id)
AttachVoltageLevelOnLine
setLine2Name(String line2Name)
AttachVoltageLevelOnLine
setPercent(double percent)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.powsybl.iidm.modification.NetworkModification
apply, apply
-
-
-
-
Constructor Detail
-
AttachVoltageLevelOnLine
public AttachVoltageLevelOnLine(String voltageLevelId, String bbsOrBusId, Line line)
Constructor.
line1Id is line.getId() + "_1".
line2Id is line.getId() + "_2".
-
AttachVoltageLevelOnLine
public AttachVoltageLevelOnLine(String voltageLevelId, String bbsOrBusId, String line1Id, String line2Id, Line line)
Constructor.
percent is 50.
line1Name is null.
line2Name is null.
-
AttachVoltageLevelOnLine
public AttachVoltageLevelOnLine(double percent, String voltageLevelId, String bbsOrBusId, String line1Id, String line1Name, String line2Id, String line2Name, Line line)
Constructor.- Parameters:
percent
- When the existing line is cut, percent is equal to the ratio between the parameters of the first line and the parameters of the line that is cut multiplied by 100. 100 minus percent is equal to the ratio between the parameters of the second line and the parameters of the line that is cut multiplied by 100.voltageLevelId
- ID of the existing voltage level to be attached on the existing line.bbsOrBusId
- The ID of the configured bus or bus bar section to which the lines will be linked to at the attachment point.line1Id
- The non-null ID of the line segment at side 1.line1Name
- The name of the line segment at side 1.line2Id
- The non-null ID of the line segment at side 2.line2Name
- The name of the line segment at side 2.line
- The line on which the voltage level is to be attached.
-
-
Method Detail
-
setPercent
public AttachVoltageLevelOnLine setPercent(double percent)
-
setLine1Id
public AttachVoltageLevelOnLine setLine1Id(String line1Id)
-
setLine1Name
public AttachVoltageLevelOnLine setLine1Name(String line1Name)
-
setLine2Id
public AttachVoltageLevelOnLine setLine2Id(String line2Id)
-
setLine2Name
public AttachVoltageLevelOnLine setLine2Name(String line2Name)
-
apply
public void apply(Network network)
- Specified by:
apply
in interfaceNetworkModification
-
apply
public void apply(Network network, ComputationManager computationManager)
- Specified by:
apply
in interfaceNetworkModification
-
getVoltageLevelId
public String getVoltageLevelId()
-
getBbsOrBusId
public String getBbsOrBusId()
-
getLine
public Line getLine()
-
getPercent
public double getPercent()
-
getLine1Id
public String getLine1Id()
-
getLine1Name
public String getLine1Name()
-
getLine2Id
public String getLine2Id()
-
getLine2Name
public String getLine2Name()
-
-