Class AttachNewLineOnLine
- java.lang.Object
-
- com.powsybl.iidm.modification.topology.AttachNewLineOnLine
-
- All Implemented Interfaces:
NetworkModification
public class AttachNewLineOnLine extends Object implements NetworkModification
Connect an existing voltage level (in practice a voltage level where we have some loads or generations) to a point of an existing line. This method cuts an existing line in two, creating a fictitious voltage level between them. Then it links an existing voltage level to this fictitious voltage level in creating a new line created from a given line adder.- Author:
- Miora Vedelago
-
-
Constructor Summary
Constructors Constructor Description AttachNewLineOnLine(double percent, String voltageLevelId, String bbsOrBusId, String fictitiousVlId, String fictitiousVlName, boolean createFictSubstation, String fictitiousSubstationId, String fictitiousSubstationName, String line1Id, String line1Name, String line2Id, String line2Name, Line line, LineAdder lineAdder)
Constructor.AttachNewLineOnLine(double percent, String voltageLevelId, String bbsOrBusId, String fictitiousVlId, String line1Id, String line2Id, Line line, LineAdder lineAdder)
Constructor.AttachNewLineOnLine(String voltageLevelId, String bbsOrBusId, Line line, LineAdder lineAdder)
Constructor.
-
Method Summary
-
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
-
AttachNewLineOnLine
public AttachNewLineOnLine(String voltageLevelId, String bbsOrBusId, Line line, LineAdder lineAdder)
Constructor.
percent is 50.
fictitiousVlId is line.getId() + "_VL".
line1Id is line.getId() + "_1"
line2Id is line.getId() + "_2".
-
AttachNewLineOnLine
public AttachNewLineOnLine(double percent, String voltageLevelId, String bbsOrBusId, String fictitiousVlId, String line1Id, String line2Id, Line line, LineAdder lineAdder)
Constructor.
fictitiousVlName is null
createFictitiousSubstation is false.
fictitiousSubstationId is line.getId() + "_S"
fictitiousSubstationName is null.
line1Name is null.
line2Name is null.
-
AttachNewLineOnLine
public AttachNewLineOnLine(double percent, String voltageLevelId, String bbsOrBusId, String fictitiousVlId, String fictitiousVlName, boolean createFictSubstation, String fictitiousSubstationId, String fictitiousSubstationName, String line1Id, String line1Name, String line2Id, String line2Name, Line line, LineAdder lineAdder)
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
- The voltage level with the given ID that we want to connect to the initial line.bbsOrBusId
- The ID of the existing bus or bus bar section of the voltage level voltageLevelId where we want to connect the line that will be between this voltage level and the fictitious voltage level. Please note that there will be switches between this bus or bus bar section and the connection point of the line.fictitiousVlId
- ID of the created voltage level at the attachment point of the initial line. Please note that this voltage level is fictitious.fictitiousVlName
- Name of the created voltage level at the attachment point of the initial line. Please note that this voltage level is fictitious.createFictSubstation
- If true, a fictitious substation at the attachment point will be created. Else, the created voltage level will be contained directly in the network.fictitiousSubstationId
- If createFictSubstation is true, the fictitious substation is given a non-null given ID.fictitiousSubstationName
- If createdFictSubstation is true, the fictitious substation is given a given name.line1Id
- When the initial line is cut, the line segment at side 1 has a non-null given ID.line1Name
- When the initial line is cut, the line segment at side 1 has a given name.line2Id
- When the initial line is cut, the line segment at side 2 has a non-null given ID.line2Name
- When the initial line is cut, the line segment at side 2 has a given name.line
- The initial line to be cut.lineAdder
- The line adder from which the line between the fictitious voltage level and the voltage level voltageLevelId is created.
-
-
Method Detail
-
setPercent
public AttachNewLineOnLine setPercent(double percent)
-
setFictitiousVlId
public AttachNewLineOnLine setFictitiousVlId(String fictitiousVlId)
-
setFictitiousVlName
public AttachNewLineOnLine setFictitiousVlName(String fictitiousVlName)
-
setCreateFictSubstation
public AttachNewLineOnLine setCreateFictSubstation(boolean createFictSubstation)
-
setFictitiousSubstationId
public AttachNewLineOnLine setFictitiousSubstationId(String fictitiousSubstationId)
-
setFictitiousSubstationName
public AttachNewLineOnLine setFictitiousSubstationName(String fictitiousSubstationName)
-
setLine1Id
public AttachNewLineOnLine setLine1Id(String line1Id)
-
setLine1Name
public AttachNewLineOnLine setLine1Name(String line1Name)
-
setLine2Id
public AttachNewLineOnLine setLine2Id(String line2Id)
-
setLine2Name
public AttachNewLineOnLine setLine2Name(String line2Name)
-
apply
public void apply(Network network, ComputationManager computationManager)
- Specified by:
apply
in interfaceNetworkModification
-
apply
public void apply(Network network)
- Specified by:
apply
in interfaceNetworkModification
-
getVoltageLevelId
public String getVoltageLevelId()
-
getBbsOrBusId
public String getBbsOrBusId()
-
getLine
public Line getLine()
-
getLineAdder
public LineAdder getLineAdder()
-
getPercent
public double getPercent()
-
getFictitiousVlId
public String getFictitiousVlId()
-
getFictitiousVlName
public String getFictitiousVlName()
-
isCreateFictSubstation
public boolean isCreateFictSubstation()
-
getFictitiousSubstationId
public String getFictitiousSubstationId()
-
getFictitiousSubstationName
public String getFictitiousSubstationName()
-
getLine1Id
public String getLine1Id()
-
getLine1Name
public String getLine1Name()
-
getLine2Id
public String getLine2Id()
-
getLine2Name
public String getLine2Name()
-
-