Package com.powsybl.openloadflow.network
Class GeneratorVoltageControl
- java.lang.Object
-
- com.powsybl.openloadflow.network.Control
-
- com.powsybl.openloadflow.network.VoltageControl<LfBus>
-
- com.powsybl.openloadflow.network.GeneratorVoltageControl
-
public class GeneratorVoltageControl extends VoltageControl<LfBus>
- Author:
- Anne Tilloy
, Florian Dupuy
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.powsybl.openloadflow.network.VoltageControl
VoltageControl.MergeStatus, VoltageControl.Type
-
-
Field Summary
-
Fields inherited from class com.powsybl.openloadflow.network.VoltageControl
controlledBus, controllerElements, mainMergedVoltageControl, mergedDependentVoltageControls, mergeStatus, priority, type
-
Fields inherited from class com.powsybl.openloadflow.network.Control
targetValue
-
-
Constructor Summary
Constructors Constructor Description GeneratorVoltageControl(LfBus controlledBus, double targetValue)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addControllerElement(LfBus controllerBus)
boolean
isControllerEnabled(LfBus controllerElement)
boolean
isLocalControl()
Check if the voltage control is ONLY localboolean
isSharedControl()
Check if the voltage control is sharedvoid
setTargetValue(double targetValue)
void
updateReactiveKeys()
static void
updateReactiveKeys(List<LfBus> controllerBuses)
-
Methods inherited from class com.powsybl.openloadflow.network.VoltageControl
findVoltageControlsSortedByPriority, getControlledBus, getControllerElements, getMainVoltageControl, getMergedControllerElements, getMergedDependentVoltageControls, getMergeStatus, getPriority, getType, isDisabled, isDisabledAndAlsoAllItsDependentVoltageControls, isHidden, toString
-
Methods inherited from class com.powsybl.openloadflow.network.Control
getTargetValue
-
-
-
-
Constructor Detail
-
GeneratorVoltageControl
public GeneratorVoltageControl(LfBus controlledBus, double targetValue)
-
-
Method Detail
-
isControllerEnabled
public boolean isControllerEnabled(LfBus controllerElement)
- Overrides:
isControllerEnabled
in classVoltageControl<LfBus>
-
setTargetValue
public void setTargetValue(double targetValue)
- Overrides:
setTargetValue
in classControl
-
addControllerElement
public void addControllerElement(LfBus controllerBus)
- Overrides:
addControllerElement
in classVoltageControl<LfBus>
-
isLocalControl
public boolean isLocalControl()
Check if the voltage control is ONLY local- Returns:
- true if the voltage control is ONLY local, false otherwise
-
isSharedControl
public boolean isSharedControl()
Check if the voltage control is shared- Returns:
- true if the voltage control is shared, false otherwise
-
updateReactiveKeys
public void updateReactiveKeys()
-
-