Class RemoteReactivePowerControlImpl
- java.lang.Object
-
- com.powsybl.commons.extensions.AbstractExtension<T>
-
- com.powsybl.iidm.network.impl.AbstractMultiVariantIdentifiableExtension<Generator>
-
- com.powsybl.iidm.network.impl.extensions.RemoteReactivePowerControlImpl
-
- All Implemented Interfaces:
Extension<Generator>
,RemoteReactivePowerControl
,MultiVariantObject
public class RemoteReactivePowerControlImpl extends AbstractMultiVariantIdentifiableExtension<Generator> implements RemoteReactivePowerControl
- Author:
- Bertrand Rix
-
-
Field Summary
-
Fields inherited from interface com.powsybl.iidm.network.extensions.RemoteReactivePowerControl
NAME
-
-
Constructor Summary
Constructors Constructor Description RemoteReactivePowerControlImpl(Generator generator, double targetQ, Terminal regulatingTerminal, boolean enabled)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
allocateVariantArrayElement(int[] indexes, int sourceIndex)
Called to allocate a variant array element.void
deleteVariantArrayElement(int index)
Called to delete a variant array element.void
extendVariantArraySize(int initVariantArraySize, int number, int sourceIndex)
Called to extend the variant array.Terminal
getRegulatingTerminal()
Get the regulating terminal where the reactive power should be controlled.double
getTargetQ()
Get the reactive power target in MVar, at the remote regulating terminal.boolean
isEnabled()
Says if the control is active or not.void
reduceVariantArraySize(int number)
Called to reduce the variant array.RemoteReactivePowerControl
setEnabled(boolean enabled)
RemoteReactivePowerControl
setTargetQ(double targetQ)
-
Methods inherited from class com.powsybl.iidm.network.impl.AbstractMultiVariantIdentifiableExtension
getVariantIndex, getVariantManagerHolder
-
Methods inherited from class com.powsybl.commons.extensions.AbstractExtension
getExtendable, setExtendable
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.powsybl.commons.extensions.Extension
getExtendable, setExtendable
-
Methods inherited from interface com.powsybl.iidm.network.extensions.RemoteReactivePowerControl
getName
-
-
-
-
Method Detail
-
getTargetQ
public double getTargetQ()
Description copied from interface:RemoteReactivePowerControl
Get the reactive power target in MVar, at the remote regulating terminal. It is not the local target of the generator.- Specified by:
getTargetQ
in interfaceRemoteReactivePowerControl
-
setTargetQ
public RemoteReactivePowerControl setTargetQ(double targetQ)
- Specified by:
setTargetQ
in interfaceRemoteReactivePowerControl
-
setEnabled
public RemoteReactivePowerControl setEnabled(boolean enabled)
- Specified by:
setEnabled
in interfaceRemoteReactivePowerControl
-
getRegulatingTerminal
public Terminal getRegulatingTerminal()
Description copied from interface:RemoteReactivePowerControl
Get the regulating terminal where the reactive power should be controlled. The regulating terminal should be the terminal of a branch or the terminal of a dangling line that will be merged later. It is not the regulating terminal of the generator used for voltage control that is less restrictive.- Specified by:
getRegulatingTerminal
in interfaceRemoteReactivePowerControl
-
isEnabled
public boolean isEnabled()
Description copied from interface:RemoteReactivePowerControl
Says if the control is active or not.- Specified by:
isEnabled
in interfaceRemoteReactivePowerControl
-
extendVariantArraySize
public void extendVariantArraySize(int initVariantArraySize, int number, int sourceIndex)
Description copied from interface:MultiVariantObject
Called to extend the variant array.- Specified by:
extendVariantArraySize
in interfaceMultiVariantObject
- Parameters:
initVariantArraySize
- initial variant array sizenumber
- number of element to addsourceIndex
- the variant index to use to initialize new variants
-
reduceVariantArraySize
public void reduceVariantArraySize(int number)
Description copied from interface:MultiVariantObject
Called to reduce the variant array.- Specified by:
reduceVariantArraySize
in interfaceMultiVariantObject
- Parameters:
number
- number of element to remove
-
deleteVariantArrayElement
public void deleteVariantArrayElement(int index)
Description copied from interface:MultiVariantObject
Called to delete a variant array element.- Specified by:
deleteVariantArrayElement
in interfaceMultiVariantObject
- Parameters:
index
- the index of the variant array to delete
-
allocateVariantArrayElement
public void allocateVariantArrayElement(int[] indexes, int sourceIndex)
Description copied from interface:MultiVariantObject
Called to allocate a variant array element. All new variants will be initialize using values of the variant sourceIndex.- Specified by:
allocateVariantArrayElement
in interfaceMultiVariantObject
- Parameters:
indexes
- the indexes of the variant array to allocatesourceIndex
- the variant index to use to initialize new variants
-
-