Class AbstractLfBranch
java.lang.Object
com.powsybl.openloadflow.network.AbstractPropertyBag
com.powsybl.openloadflow.network.AbstractElement
com.powsybl.openloadflow.network.impl.AbstractLfBranch
- All Implemented Interfaces:
LfBranch
,LfElement
,PropertyBag
- Direct Known Subclasses:
AbstractImpedantLfBranch
,LfSwitch
- Author:
- Geoffroy Jamgotchian <geoffroy.jamgotchian at rte-france.com>
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.powsybl.openloadflow.network.LfBranch
LfBranch.BranchType, LfBranch.LfLimit
-
Field Summary
Modifier and TypeFieldDescriptionprotected Evaluable
protected LfAsymLine
protected TransformerPhaseControl
protected boolean
protected final PiModel
protected TransformerVoltageControl
protected boolean
protected final Map<LoadFlowModel,
com.powsybl.openloadflow.network.impl.AbstractLfBranch.ZeroImpedanceContext> Fields inherited from class com.powsybl.openloadflow.network.AbstractElement
disabled, network, num
Fields inherited from class com.powsybl.openloadflow.network.AbstractPropertyBag
properties
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractLfBranch
(LfNetwork network, LfBus bus1, LfBus bus2, PiModel piModel, LfNetworkParameters parameters) -
Method Summary
Modifier and TypeMethodDescriptiondouble
double
protected static List<LfBranch.LfLimit>
createSortedLimitsList
(com.powsybl.iidm.network.LoadingLimits loadingLimits, LfBus bus) getA1()
getBus1()
getBus2()
getLimits1
(com.powsybl.iidm.network.LimitType type, com.powsybl.iidm.network.LoadingLimits loadingLimits) getLimits2
(com.powsybl.iidm.network.LimitType type, com.powsybl.iidm.network.LoadingLimits loadingLimits) protected static double
getScaleForLimitType
(com.powsybl.iidm.network.LimitType type, LfBus bus) getType()
boolean
boolean
boolean
boolean
boolean
boolean
isSpanningTreeEdge
(LoadFlowModel loadFlowModel) boolean
boolean
boolean
isZeroImpedance
(LoadFlowModel loadFlowModel) void
void
setAsymLine
(LfAsymLine asymLine) void
setDisabled
(boolean disabled) void
setMinZ
(double lowImpedanceThreshold) void
setPhaseControl
(TransformerPhaseControl phaseControl) void
setPhaseControlEnabled
(boolean phaseControlEnabled) void
setReactivePowerControl
(ReactivePowerControl pReactivePowerControl) void
setSpanningTreeEdge
(LoadFlowModel loadFlowModel, boolean spanningTreeEdge) void
setVoltageControl
(TransformerVoltageControl transformerVoltageControl) void
setVoltageControlEnabled
(boolean voltageControlEnabled) protected void
updateTapPosition
(com.powsybl.iidm.network.PhaseTapChanger ptc) protected void
updateTapPosition
(com.powsybl.iidm.network.RatioTapChanger rtc, double ptcRho, double rho) Methods inherited from class com.powsybl.openloadflow.network.AbstractElement
getNetwork, getNum, getOriginalIds, isDisabled, notifyDisable, setNum, toString
Methods inherited from class com.powsybl.openloadflow.network.AbstractPropertyBag
getProperty, removeProperty, setProperty
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.powsybl.openloadflow.network.LfBranch
createBranchResult, getBranchType, getI1, getI2, getLimits1, getLimits2, getP1, getP2, getQ1, getQ2, hasPhaseControllerCapability, setI1, setI2, setP1, setP2, setQ1, setQ2, updateFlows, updateState
Methods inherited from interface com.powsybl.openloadflow.network.LfElement
getId, getNetwork, getNum, getOriginalIds, isDisabled, setNum
Methods inherited from interface com.powsybl.openloadflow.network.PropertyBag
getProperty, removeProperty, setProperty
-
Field Details
-
piModel
-
phaseControl
-
phaseControlEnabled
protected boolean phaseControlEnabled -
voltageControl
-
voltageControlEnabled
protected boolean voltageControlEnabled -
zeroImpedanceContextByModel
protected final Map<LoadFlowModel,com.powsybl.openloadflow.network.impl.AbstractLfBranch.ZeroImpedanceContext> zeroImpedanceContextByModel -
a1
-
asymLine
-
-
Constructor Details
-
AbstractLfBranch
protected AbstractLfBranch(LfNetwork network, LfBus bus1, LfBus bus2, PiModel piModel, LfNetworkParameters parameters)
-
-
Method Details
-
createSortedLimitsList
protected static List<LfBranch.LfLimit> createSortedLimitsList(com.powsybl.iidm.network.LoadingLimits loadingLimits, LfBus bus) -
getType
-
getBus1
-
getBus2
-
getLimits1
public List<LfBranch.LfLimit> getLimits1(com.powsybl.iidm.network.LimitType type, com.powsybl.iidm.network.LoadingLimits loadingLimits) -
getLimits2
public List<LfBranch.LfLimit> getLimits2(com.powsybl.iidm.network.LimitType type, com.powsybl.iidm.network.LoadingLimits loadingLimits) -
getPiModel
- Specified by:
getPiModel
in interfaceLfBranch
-
getPhaseControl
- Specified by:
getPhaseControl
in interfaceLfBranch
-
setPhaseControl
- Specified by:
setPhaseControl
in interfaceLfBranch
-
isPhaseController
public boolean isPhaseController()- Specified by:
isPhaseController
in interfaceLfBranch
-
isPhaseControlled
public boolean isPhaseControlled()- Specified by:
isPhaseControlled
in interfaceLfBranch
-
isPhaseControlEnabled
public boolean isPhaseControlEnabled()- Specified by:
isPhaseControlEnabled
in interfaceLfBranch
-
setPhaseControlEnabled
public void setPhaseControlEnabled(boolean phaseControlEnabled) - Specified by:
setPhaseControlEnabled
in interfaceLfBranch
-
updateTapPosition
protected void updateTapPosition(com.powsybl.iidm.network.PhaseTapChanger ptc) -
updateTapPosition
protected void updateTapPosition(com.powsybl.iidm.network.RatioTapChanger rtc, double ptcRho, double rho) -
getScaleForLimitType
-
getVoltageControl
- Specified by:
getVoltageControl
in interfaceLfBranch
-
isVoltageController
public boolean isVoltageController()- Specified by:
isVoltageController
in interfaceLfBranch
-
setVoltageControl
- Specified by:
setVoltageControl
in interfaceLfBranch
-
isVoltageControlEnabled
public boolean isVoltageControlEnabled()- Specified by:
isVoltageControlEnabled
in interfaceLfBranch
-
setVoltageControlEnabled
public void setVoltageControlEnabled(boolean voltageControlEnabled) - Specified by:
setVoltageControlEnabled
in interfaceLfBranch
-
computeApparentPower1
public double computeApparentPower1()- Specified by:
computeApparentPower1
in interfaceLfBranch
-
computeApparentPower2
public double computeApparentPower2()- Specified by:
computeApparentPower2
in interfaceLfBranch
-
isZeroImpedance
- Specified by:
isZeroImpedance
in interfaceLfBranch
-
setSpanningTreeEdge
- Specified by:
setSpanningTreeEdge
in interfaceLfBranch
-
isSpanningTreeEdge
- Specified by:
isSpanningTreeEdge
in interfaceLfBranch
-
getA1
-
setA1
-
getReactivePowerControl
- Specified by:
getReactivePowerControl
in interfaceLfBranch
-
setReactivePowerControl
- Specified by:
setReactivePowerControl
in interfaceLfBranch
-
isConnectedAtBothSides
public boolean isConnectedAtBothSides()- Specified by:
isConnectedAtBothSides
in interfaceLfBranch
-
setMinZ
public void setMinZ(double lowImpedanceThreshold) -
setDisabled
public void setDisabled(boolean disabled) - Specified by:
setDisabled
in interfaceLfElement
- Overrides:
setDisabled
in classAbstractElement
-
getAsymLine
- Specified by:
getAsymLine
in interfaceLfBranch
-
setAsymLine
- Specified by:
setAsymLine
in interfaceLfBranch
-
isAsymmetric
public boolean isAsymmetric()- Specified by:
isAsymmetric
in interfaceLfBranch
-