Class LfBranchImpl
- java.lang.Object
-
- com.powsybl.openloadflow.network.AbstractPropertyBag
-
- com.powsybl.openloadflow.network.AbstractElement
-
- com.powsybl.openloadflow.network.impl.AbstractLfBranch
-
- com.powsybl.openloadflow.network.impl.AbstractImpedantLfBranch
-
- com.powsybl.openloadflow.network.impl.LfBranchImpl
-
- All Implemented Interfaces:
LfBranch
,LfElement
,PropertyBag
public class LfBranchImpl extends AbstractImpedantLfBranch
- Author:
- Geoffroy Jamgotchian
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.powsybl.openloadflow.network.LfBranch
LfBranch.BranchType, LfBranch.LfLimit
-
-
Field Summary
-
Fields inherited from class com.powsybl.openloadflow.network.impl.AbstractImpedantLfBranch
i1, i2, p1, p2, q1, q2
-
Fields inherited from class com.powsybl.openloadflow.network.impl.AbstractLfBranch
a1, acSpanningTreeEdge, acZeroImpedance, dcSpanningTreeEdge, dcZeroImpedance, phaseControl, phaseControlEnabled, piModel, voltageControl, voltageControlEnabled
-
Fields inherited from class com.powsybl.openloadflow.network.AbstractElement
disabled, network, num
-
Fields inherited from class com.powsybl.openloadflow.network.AbstractPropertyBag
properties
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
LfBranchImpl(LfNetwork network, LfBus bus1, LfBus bus2, PiModel piModel, com.powsybl.iidm.network.Branch<?> branch, LfNetworkParameters parameters)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LfBranchImpl
create(com.powsybl.iidm.network.Branch<?> branch, LfNetwork network, LfBus bus1, LfBus bus2, LfNetworkParameters parameters)
com.powsybl.security.results.BranchResult
createBranchResult(double preContingencyBranchP1, double preContingencyBranchOfContingencyP1, boolean createExtension)
LfBranch.BranchType
getBranchType()
String
getId()
List<LfBranch.LfLimit>
getLimits1(com.powsybl.iidm.network.LimitType type)
List<LfBranch.LfLimit>
getLimits2(com.powsybl.iidm.network.LimitType type)
boolean
hasPhaseControllerCapability()
void
updateFlows(double p1, double q1, double p2, double q2)
void
updateState(LfNetworkStateUpdateParameters parameters)
-
Methods inherited from class com.powsybl.openloadflow.network.impl.AbstractImpedantLfBranch
getI1, getI2, getP1, getP2, getQ1, getQ2, setI1, setI2, setP1, setP2, setQ1, setQ2
-
Methods inherited from class com.powsybl.openloadflow.network.impl.AbstractLfBranch
computeApparentPower1, computeApparentPower2, createSortedLimitsList, getA1, getBus1, getBus2, getLimits1, getLimits2, getPhaseControl, getPiModel, getReactivePowerControl, getScaleForLimitType, getType, getVoltageControl, isConnectedAtBothSides, isPhaseControlEnabled, isPhaseControlled, isPhaseController, isSpanningTreeEdge, isVoltageControlEnabled, isVoltageController, isZeroImpedance, setA1, setDisabled, setMinZ, setPhaseControl, setPhaseControlEnabled, setReactivePowerControl, setSpanningTreeEdge, setVoltageControl, setVoltageControlEnabled, updateTapPosition, updateTapPosition
-
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.LfElement
getNetwork, getNum, getOriginalIds, isDisabled, setNum
-
Methods inherited from interface com.powsybl.openloadflow.network.PropertyBag
getProperty, removeProperty, setProperty
-
-
-
-
Constructor Detail
-
LfBranchImpl
protected LfBranchImpl(LfNetwork network, LfBus bus1, LfBus bus2, PiModel piModel, com.powsybl.iidm.network.Branch<?> branch, LfNetworkParameters parameters)
-
-
Method Detail
-
create
public static LfBranchImpl create(com.powsybl.iidm.network.Branch<?> branch, LfNetwork network, LfBus bus1, LfBus bus2, LfNetworkParameters parameters)
-
getId
public String getId()
-
getBranchType
public LfBranch.BranchType getBranchType()
-
hasPhaseControllerCapability
public boolean hasPhaseControllerCapability()
-
createBranchResult
public com.powsybl.security.results.BranchResult createBranchResult(double preContingencyBranchP1, double preContingencyBranchOfContingencyP1, boolean createExtension)
-
getLimits1
public List<LfBranch.LfLimit> getLimits1(com.powsybl.iidm.network.LimitType type)
-
getLimits2
public List<LfBranch.LfLimit> getLimits2(com.powsybl.iidm.network.LimitType type)
-
updateState
public void updateState(LfNetworkStateUpdateParameters parameters)
-
updateFlows
public void updateFlows(double p1, double q1, double p2, double q2)
-
-