Package com.powsybl.openloadflow.lf
Class AbstractEquationSystemUpdater<V extends Enum<V> & Quantity,E extends Enum<E> & Quantity>
- java.lang.Object
-
- com.powsybl.openloadflow.network.AbstractLfNetworkListener
-
- com.powsybl.openloadflow.lf.AbstractEquationSystemUpdater<V,E>
-
- All Implemented Interfaces:
LfNetworkListener
- Direct Known Subclasses:
AcEquationSystemUpdater
,DcEquationSystemUpdater
public abstract class AbstractEquationSystemUpdater<V extends Enum<V> & Quantity,E extends Enum<E> & Quantity> extends AbstractLfNetworkListener
- Author:
- Geoffroy Jamgotchian
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
dc
protected EquationSystem<V,E>
equationSystem
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractEquationSystemUpdater(EquationSystem<V,E> equationSystem, boolean dc)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected static void
checkSlackBus(LfBus bus, boolean disabled)
void
onZeroImpedanceNetworkSpanningTreeChange(LfBranch branch, boolean dc, boolean spanningTree)
protected void
updateElementEquations(LfElement element, boolean enable)
protected abstract void
updateNonImpedantBranchEquations(LfBranch branch, boolean enable)
-
Methods inherited from class com.powsybl.openloadflow.network.AbstractLfNetworkListener
onDisableChange, onGenerationActivePowerTargetChange, onGenerationReactivePowerTargetChange, onGeneratorVoltageControlChange, onGeneratorVoltageControlTargetChange, onLoadActivePowerTargetChange, onLoadReactivePowerTargetChange, onShuntSusceptanceChange, onShuntVoltageControlChange, onTapPositionChange, onTransformerPhaseControlChange, onTransformerVoltageControlChange, onZeroImpedanceNetworkMerge, onZeroImpedanceNetworkSplit
-
-
-
-
Constructor Detail
-
AbstractEquationSystemUpdater
protected AbstractEquationSystemUpdater(EquationSystem<V,E> equationSystem, boolean dc)
-
-
Method Detail
-
checkSlackBus
protected static void checkSlackBus(LfBus bus, boolean disabled)
-
updateNonImpedantBranchEquations
protected abstract void updateNonImpedantBranchEquations(LfBranch branch, boolean enable)
-
onZeroImpedanceNetworkSpanningTreeChange
public void onZeroImpedanceNetworkSpanningTreeChange(LfBranch branch, boolean dc, boolean spanningTree)
- Specified by:
onZeroImpedanceNetworkSpanningTreeChange
in interfaceLfNetworkListener
- Overrides:
onZeroImpedanceNetworkSpanningTreeChange
in classAbstractLfNetworkListener
-
updateElementEquations
protected void updateElementEquations(LfElement element, boolean enable)
-
-