Class CoordinatedReactiveControlImpl
- java.lang.Object
-
- com.powsybl.commons.extensions.AbstractExtension<T>
-
- com.powsybl.iidm.network.impl.AbstractMultiVariantIdentifiableExtension<Generator>
-
- com.powsybl.iidm.network.impl.extensions.CoordinatedReactiveControlImpl
-
- All Implemented Interfaces:
Extension<Generator>
,CoordinatedReactiveControl
,MultiVariantObject
public class CoordinatedReactiveControlImpl extends AbstractMultiVariantIdentifiableExtension<Generator> implements CoordinatedReactiveControl
- Author:
- Miora Ralambotiana
-
-
Field Summary
-
Fields inherited from interface com.powsybl.iidm.network.extensions.CoordinatedReactiveControl
NAME
-
-
Constructor Summary
Constructors Constructor Description CoordinatedReactiveControlImpl(Generator generator, double qPercent)
-
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.double
getQPercent()
Get the percent of the coordinated reactive control that comes from the generator to which this extension is linked.void
reduceVariantArraySize(int number)
Called to reduce the variant array.void
setQPercent(double qPercent)
Set the percent of the coordinated reactive control that comes from the generator to which this extension is linked.-
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.iidm.network.extensions.CoordinatedReactiveControl
getName
-
Methods inherited from interface com.powsybl.commons.extensions.Extension
getExtendable, setExtendable
-
-
-
-
Constructor Detail
-
CoordinatedReactiveControlImpl
public CoordinatedReactiveControlImpl(Generator generator, double qPercent)
-
-
Method Detail
-
getQPercent
public double getQPercent()
Description copied from interface:CoordinatedReactiveControl
Get the percent of the coordinated reactive control that comes from the generator to which this extension is linked.- Specified by:
getQPercent
in interfaceCoordinatedReactiveControl
-
setQPercent
public void setQPercent(double qPercent)
Description copied from interface:CoordinatedReactiveControl
Set the percent of the coordinated reactive control that comes from the generator to which this extension is linked.- Specified by:
setQPercent
in interfaceCoordinatedReactiveControl
-
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
-
-