Package com.powsybl.openloadflow.network
Class AbstractLfBranch
- java.lang.Object
-
- com.powsybl.openloadflow.network.AbstractElement
-
- com.powsybl.openloadflow.network.AbstractLfBranch
-
- Direct Known Subclasses:
AbstractFictitiousLfBranch
,LfBranchImpl
,LfSwitch
public abstract class AbstractLfBranch extends AbstractElement implements LfBranch
- Author:
- Geoffroy Jamgotchian
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AbstractLfBranch.LfLimit
-
Field Summary
Fields Modifier and Type Field Description protected boolean
disabled
protected DiscreteVoltageControl
discreteVoltageControl
protected DiscretePhaseControl
phaseControl
protected boolean
spanningTreeEdge
-
Fields inherited from class com.powsybl.openloadflow.network.AbstractElement
network, num
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractLfBranch(LfNetwork network, LfBus bus1, LfBus bus2, PiModel piModel)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
checkTargetDeadband(double p)
protected void
checkTargetDeadband(com.powsybl.iidm.network.RatioTapChanger rtc)
double
computeApparentPower1()
double
computeApparentPower2()
protected static List<AbstractLfBranch.LfLimit>
createSortedLimitsList(com.powsybl.iidm.network.LoadingLimits loadingLimits, LfBus bus)
LfBus
getBus1()
LfBus
getBus2()
Optional<DiscretePhaseControl>
getDiscretePhaseControl()
Optional<DiscreteVoltageControl>
getDiscreteVoltageControl()
List<AbstractLfBranch.LfLimit>
getLimits1(com.powsybl.iidm.network.LimitType type, com.powsybl.iidm.network.LoadingLimits loadingLimits)
List<AbstractLfBranch.LfLimit>
getLimits2(com.powsybl.iidm.network.LimitType type, com.powsybl.iidm.network.LoadingLimits loadingLimits)
PiModel
getPiModel()
protected static double
getScaleForLimitType(com.powsybl.iidm.network.LimitType type, LfBus bus)
ElementType
getType()
boolean
isDisabled()
boolean
isPhaseControlled()
boolean
isPhaseControlled(DiscretePhaseControl.ControlledSide controlledSide)
boolean
isPhaseController()
boolean
isSpanningTreeEdge()
boolean
isVoltageController()
void
setDisabled(boolean disabled)
void
setDiscretePhaseControl(DiscretePhaseControl discretePhaseControl)
void
setDiscreteVoltageControl(DiscreteVoltageControl discreteVoltageControl)
void
setSpanningTreeEdge(boolean spanningTreeEdge)
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, setNum
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.powsybl.openloadflow.network.LfBranch
createBranchResult, getI1, getI2, getLimits1, getLimits2, getP1, getP2, getQ1, getQ2, hasPhaseControlCapability, setI1, setI2, setP1, setP2, setQ1, setQ2, updateState
-
Methods inherited from interface com.powsybl.openloadflow.network.LfElement
getId, getNetwork, getNum, setNum
-
-
-
-
Field Detail
-
phaseControl
protected DiscretePhaseControl phaseControl
-
discreteVoltageControl
protected DiscreteVoltageControl discreteVoltageControl
-
disabled
protected boolean disabled
-
spanningTreeEdge
protected boolean spanningTreeEdge
-
-
Method Detail
-
createSortedLimitsList
protected static List<AbstractLfBranch.LfLimit> createSortedLimitsList(com.powsybl.iidm.network.LoadingLimits loadingLimits, LfBus bus)
-
getType
public ElementType getType()
-
getLimits1
public List<AbstractLfBranch.LfLimit> getLimits1(com.powsybl.iidm.network.LimitType type, com.powsybl.iidm.network.LoadingLimits loadingLimits)
-
getLimits2
public List<AbstractLfBranch.LfLimit> getLimits2(com.powsybl.iidm.network.LimitType type, com.powsybl.iidm.network.LoadingLimits loadingLimits)
-
getPiModel
public PiModel getPiModel()
- Specified by:
getPiModel
in interfaceLfBranch
-
getDiscretePhaseControl
public Optional<DiscretePhaseControl> getDiscretePhaseControl()
- Specified by:
getDiscretePhaseControl
in interfaceLfBranch
-
setDiscretePhaseControl
public void setDiscretePhaseControl(DiscretePhaseControl discretePhaseControl)
- Specified by:
setDiscretePhaseControl
in interfaceLfBranch
-
isPhaseController
public boolean isPhaseController()
- Specified by:
isPhaseController
in interfaceLfBranch
-
isPhaseControlled
public boolean isPhaseControlled()
- Specified by:
isPhaseControlled
in interfaceLfBranch
-
isPhaseControlled
public boolean isPhaseControlled(DiscretePhaseControl.ControlledSide controlledSide)
- Specified by:
isPhaseControlled
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)
-
checkTargetDeadband
protected void checkTargetDeadband(double p)
-
checkTargetDeadband
protected void checkTargetDeadband(com.powsybl.iidm.network.RatioTapChanger rtc)
-
getScaleForLimitType
protected static double getScaleForLimitType(com.powsybl.iidm.network.LimitType type, LfBus bus)
-
getDiscreteVoltageControl
public Optional<DiscreteVoltageControl> getDiscreteVoltageControl()
- Specified by:
getDiscreteVoltageControl
in interfaceLfBranch
-
isVoltageController
public boolean isVoltageController()
- Specified by:
isVoltageController
in interfaceLfBranch
-
setDiscreteVoltageControl
public void setDiscreteVoltageControl(DiscreteVoltageControl discreteVoltageControl)
- Specified by:
setDiscreteVoltageControl
in interfaceLfBranch
-
isDisabled
public boolean isDisabled()
- Specified by:
isDisabled
in interfaceLfBranch
-
setDisabled
public void setDisabled(boolean disabled)
- Specified by:
setDisabled
in interfaceLfBranch
-
computeApparentPower1
public double computeApparentPower1()
- Specified by:
computeApparentPower1
in interfaceLfBranch
-
computeApparentPower2
public double computeApparentPower2()
- Specified by:
computeApparentPower2
in interfaceLfBranch
-
setSpanningTreeEdge
public void setSpanningTreeEdge(boolean spanningTreeEdge)
- Specified by:
setSpanningTreeEdge
in interfaceLfBranch
-
isSpanningTreeEdge
public boolean isSpanningTreeEdge()
- Specified by:
isSpanningTreeEdge
in interfaceLfBranch
-
-