Package com.powsybl.openloadflow.network
Class VoltageControl<T extends LfElement>
- java.lang.Object
-
- com.powsybl.openloadflow.network.Control
-
- com.powsybl.openloadflow.network.VoltageControl<T>
-
- Direct Known Subclasses:
DiscreteVoltageControl
,GeneratorVoltageControl
public class VoltageControl<T extends LfElement> extends Control
- Author:
- Geoffroy Jamgotchian
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VoltageControl.MergeStatus
static class
VoltageControl.Type
-
Field Summary
Fields Modifier and Type Field Description protected LfBus
controlledBus
protected List<T>
controllerElements
protected VoltageControl<T>
mainMergedVoltageControl
protected List<VoltageControl<T>>
mergedDependentVoltageControls
protected VoltageControl.MergeStatus
mergeStatus
protected int
priority
protected VoltageControl.Type
type
-
Fields inherited from class com.powsybl.openloadflow.network.Control
targetValue
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
VoltageControl(double targetValue, VoltageControl.Type type, int priority, LfBus controlledBus)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addControllerElement(T controllerElement)
static List<VoltageControl<?>>
findVoltageControlsSortedByPriority(LfBus bus)
LfBus
getControlledBus()
List<T>
getControllerElements()
<E extends VoltageControl<T>>
EgetMainVoltageControl()
List<T>
getMergedControllerElements()
List<VoltageControl<T>>
getMergedDependentVoltageControls()
VoltageControl.MergeStatus
getMergeStatus()
protected int
getPriority()
VoltageControl.Type
getType()
boolean
isControllerEnabled(T controllerElement)
boolean
isDisabled()
boolean
isDisabledAndAlsoAllItsDependentVoltageControls()
boolean
isHidden()
FIXME: take into account controllers status to have a proper definition For generator voltage control, isGeneratorVoltageControlEnabled() should be called.String
toString()
-
Methods inherited from class com.powsybl.openloadflow.network.Control
getTargetValue, setTargetValue
-
-
-
-
Field Detail
-
type
protected final VoltageControl.Type type
-
priority
protected int priority
-
controlledBus
protected final LfBus controlledBus
-
mergeStatus
protected VoltageControl.MergeStatus mergeStatus
-
mergedDependentVoltageControls
protected final List<VoltageControl<T extends LfElement>> mergedDependentVoltageControls
-
mainMergedVoltageControl
protected VoltageControl<T extends LfElement> mainMergedVoltageControl
-
-
Constructor Detail
-
VoltageControl
protected VoltageControl(double targetValue, VoltageControl.Type type, int priority, LfBus controlledBus)
-
-
Method Detail
-
getControlledBus
public LfBus getControlledBus()
-
addControllerElement
public void addControllerElement(T controllerElement)
-
isControllerEnabled
public boolean isControllerEnabled(T controllerElement)
-
getMergedDependentVoltageControls
public List<VoltageControl<T>> getMergedDependentVoltageControls()
-
getPriority
protected int getPriority()
-
getType
public VoltageControl.Type getType()
-
isDisabled
public boolean isDisabled()
-
getMergeStatus
public VoltageControl.MergeStatus getMergeStatus()
-
getMainVoltageControl
public <E extends VoltageControl<T>> E getMainVoltageControl()
-
findVoltageControlsSortedByPriority
public static List<VoltageControl<?>> findVoltageControlsSortedByPriority(LfBus bus)
-
isHidden
public boolean isHidden()
FIXME: take into account controllers status to have a proper definition For generator voltage control, isGeneratorVoltageControlEnabled() should be called. For transformer voltage control, isVoltageControlEnabled() should be called. For shunt voltage control, isVoltageControlEnabled() should be called.
-
isDisabledAndAlsoAllItsDependentVoltageControls
public boolean isDisabledAndAlsoAllItsDependentVoltageControls()
-
-