Class SlackTerminalImpl

All Implemented Interfaces:
Extension<VoltageLevel>, SlackTerminal, MultiVariantObject

public class SlackTerminalImpl extends AbstractMultiVariantIdentifiableExtension<VoltageLevel> implements SlackTerminal
Author:
Florian Dupuy <florian.dupuy at rte-france.com>
  • Method Details

    • getTerminal

      public Terminal getTerminal()
      Description copied from interface: SlackTerminal
      Get the terminal pointed by the current SlackTerminal
      Specified by:
      getTerminal in interface SlackTerminal
      Returns:
      the corresponding terminal
    • setTerminal

      public SlackTerminal setTerminal(Terminal terminal)
      Description copied from interface: SlackTerminal
      Set the terminal pointed by the current SlackTerminal
      Specified by:
      setTerminal in interface SlackTerminal
      Parameters:
      terminal - the corresponding terminal
      Returns:
      the current SlackTerminal
    • isEmpty

      public boolean isEmpty()
      Description copied from interface: SlackTerminal
      Returns true if the current SlackTerminal is empty, meaning that this extension is unused
      Specified by:
      isEmpty in interface SlackTerminal
    • 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