Class CoordinatedReactiveControlImpl

All Implemented Interfaces:
Extension<Generator>, CoordinatedReactiveControl, MultiVariantObject

public class CoordinatedReactiveControlImpl extends AbstractMultiVariantIdentifiableExtension<Generator> implements CoordinatedReactiveControl
Author:
Miora Ralambotiana <miora.ralambotiana at rte-france.com>
  • Constructor Details

    • CoordinatedReactiveControlImpl

      public CoordinatedReactiveControlImpl(Generator generator, double qPercent)
  • Method Details

    • 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 interface CoordinatedReactiveControl
    • 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 interface CoordinatedReactiveControl
    • 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 interface MultiVariantObject
      Parameters:
      initVariantArraySize - initial variant array size
      number - number of element to add
      sourceIndex - 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 interface MultiVariantObject
      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 interface MultiVariantObject
      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 interface MultiVariantObject
      Parameters:
      indexes - the indexes of the variant array to allocate
      sourceIndex - the variant index to use to initialize new variants