Class CreateLineOnLine
- java.lang.Object
-
- com.powsybl.iidm.modification.AbstractNetworkModification
-
- com.powsybl.iidm.modification.topology.CreateLineOnLine
-
- All Implemented Interfaces:
NetworkModification
public class CreateLineOnLine extends AbstractNetworkModification
Connect an existing voltage level (in practice a voltage level where we have some loads or generations) to an existing line through a tee point. This method cuts an existing line in two, creating a fictitious voltage level between them (the tee point). Then it links an existing voltage level to this fictitious voltage level in creating a new line from a given line adder.- Author:
- Miora Vedelago
-
-
Field Summary
Fields Modifier and Type Field Description protected String
bbsOrBusId
protected Line
line
protected String
line1Id
protected String
line1Name
protected String
line2Id
protected String
line2Name
protected double
positionPercent
protected VoltageLevel
voltageLevel
-
Method Summary
-
-
-
Field Detail
-
bbsOrBusId
protected final String bbsOrBusId
-
line
protected final Line line
-
line1Id
protected String line1Id
-
line1Name
protected String line1Name
-
line2Id
protected String line2Id
-
line2Name
protected String line2Name
-
positionPercent
protected double positionPercent
-
voltageLevel
protected VoltageLevel voltageLevel
-
-
Method Detail
-
setFictitiousVlId
public CreateLineOnLine setFictitiousVlId(String fictitiousVlId)
-
setFictitiousVlName
public CreateLineOnLine setFictitiousVlName(String fictitiousVlName)
-
setCreateFictSubstation
public CreateLineOnLine setCreateFictSubstation(boolean createFictSubstation)
-
setFictitiousSubstationId
public CreateLineOnLine setFictitiousSubstationId(String fictitiousSubstationId)
-
setFictitiousSubstationName
public CreateLineOnLine setFictitiousSubstationName(String fictitiousSubstationName)
-
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.
-
getLineAdder
public LineAdder getLineAdder()
-
getFictitiousVlId
public String getFictitiousVlId()
-
getFictitiousVlName
public String getFictitiousVlName()
-
isCreateFictSubstation
public boolean isCreateFictSubstation()
-
getFictitiousSubstationId
public String getFictitiousSubstationId()
-
getFictitiousSubstationName
public String getFictitiousSubstationName()
-
setLine1Id
public M setLine1Id(String line1Id)
-
setLine1Name
public M setLine1Name(String line1Name)
-
setLine2Id
public M setLine2Id(String line2Id)
-
setLine2Name
public M setLine2Name(String line2Name)
-
setPositionPercent
public M setPositionPercent(double positionPercent)
-
getPositionPercent
public double getPositionPercent()
-
getBbsOrBusId
public String getBbsOrBusId()
-
getLine
public Line getLine()
-
getLine1Id
public String getLine1Id()
-
getLine1Name
public String getLine1Name()
-
getLine2Id
public String getLine2Id()
-
getLine2Name
public String getLine2Name()
-
-