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
- Author:
- Geoffroy Jamgotchian <geoffroy.jamgotchian at rte-france.com>
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
static enum
-
Field Summary
Modifier and TypeFieldDescriptionprotected final LfBus
protected boolean
protected VoltageControl<T>
protected final List<VoltageControl<T>>
protected VoltageControl.MergeStatus
protected int
protected final VoltageControl.Type
Fields inherited from class com.powsybl.openloadflow.network.Control
targetValue
-
Constructor Summary
ModifierConstructorDescriptionprotected
VoltageControl
(double targetValue, VoltageControl.Type type, int priority, LfBus controlledBus) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addControllerElement
(T controllerElement) Find controlled bus which is part of: - the visible voltage control - the main voltage control of the global merged one This controlled bus is important because this is the one that will be targeted by a voltage equation in the equation system.static List<VoltageControl<?>>
Find the list of voltage control with merge status as main, connected to a given bus (so including by traversing non impedant branches).<E extends VoltageControl<T>>
Eprotected int
getType()
boolean
isControllerEnabled
(T controllerElement) boolean
Check is the merged voltage to which this voltage control belongs is disabled.boolean
isHidden()
Check if the merged voltage to which this voltage control belongs is hidden by another one of a different type (generator, transformer or shunt).boolean
void
setDisabled
(boolean disabled) toString()
Methods inherited from class com.powsybl.openloadflow.network.Control
getTargetValue, setTargetValue
-
Field Details
-
type
-
priority
protected int priority -
controlledBus
-
controllerElements
-
mergeStatus
-
mergedDependentVoltageControls
-
mainMergedVoltageControl
-
disabled
protected boolean disabled
-
-
Constructor Details
-
VoltageControl
protected VoltageControl(double targetValue, VoltageControl.Type type, int priority, LfBus controlledBus)
-
-
Method Details
-
getControlledBus
-
getControllerElements
-
addControllerElement
-
isControllerEnabled
-
getMergedDependentVoltageControls
-
getPriority
protected int getPriority() -
getType
-
isDisabled
public boolean isDisabled()Check is the merged voltage to which this voltage control belongs is disabled. Disabled means that there is no more controlled bus or no more controller element. Having a disabled controlled among several controlled bus in a merge voltage control is an open question. Disabling a controlled bus could also lead to removing the associated controller buses from the merge voltage control. The merge status could be updated too. -
setDisabled
public void setDisabled(boolean disabled) -
getMergeStatus
-
getMainVoltageControl
-
getMergedControlledBuses
-
getMergedControllerElements
-
findMainVoltageControlsSortedByPriority
Find the list of voltage control with merge status as main, connected to a given bus (so including by traversing non impedant branches). -
isHidden
public boolean isHidden()Check if the merged voltage to which this voltage control belongs is hidden by another one of a different type (generator, transformer or shunt). The hidden status includes the disable status so a disable voltage control is also hidden. 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. -
isVisible
public boolean isVisible() -
findMainVisibleControlledBus
Find controlled bus which is part of: - the visible voltage control - the main voltage control of the global merged one This controlled bus is important because this is the one that will be targeted by a voltage equation in the equation system. -
toString
-