Class CurrentLimitsImpl

java.lang.Object
com.powsybl.iidm.network.impl.CurrentLimitsImpl
All Implemented Interfaces:
CurrentLimits, LoadingLimits, OperationalLimits

public class CurrentLimitsImpl extends Object implements CurrentLimits
Author:
Geoffroy Jamgotchian <geoffroy.jamgotchian at rte-france.com>
  • Field Details

  • Method Details

    • remove

      public void remove()
      Specified by:
      remove in interface OperationalLimits
    • getPermanentLimit

      public double getPermanentLimit()
      Description copied from interface: LoadingLimits
      Get the permanent limit.
      Specified by:
      getPermanentLimit in interface LoadingLimits
      Returns:
      the permanent limit.
    • setPermanentLimit

      public CurrentLimitsImpl setPermanentLimit(double permanentLimit)
      Description copied from interface: LoadingLimits
      Set the permanent limit
      Specified by:
      setPermanentLimit in interface LoadingLimits
      Parameters:
      permanentLimit - the permanent limit
      Returns:
      itself for method chaining
    • setTemporaryLimitValue

      public CurrentLimitsImpl setTemporaryLimitValue(int acceptableDuration, double temporaryLimitValue)
      Description copied from interface: LoadingLimits
      Set the temporary limit value.

      Throws an exception when no temporary limit of the given acceptable duration is found, and changes the value but logs a warning when the new value is not valid.

      Specified by:
      setTemporaryLimitValue in interface LoadingLimits
      Parameters:
      acceptableDuration - the acceptable duration
      temporaryLimitValue - the temporary limit value
      Returns:
      itself for method chaining
    • isTemporaryLimitValueValid

      protected boolean isTemporaryLimitValueValid(Map.Entry<Integer,LoadingLimits.TemporaryLimit> biggerDurationEntry, Map.Entry<Integer,LoadingLimits.TemporaryLimit> smallerDurationEntry, int acceptableDuration, double temporaryLimitValue)
    • getTemporaryLimits

      public Collection<LoadingLimits.TemporaryLimit> getTemporaryLimits()
      Description copied from interface: LoadingLimits
      Get a list of temporary limits ordered by descending duration.
      Specified by:
      getTemporaryLimits in interface LoadingLimits
      Returns:
      a list of temporary limits ordered by descending duration
    • getTemporaryLimit

      public LoadingLimits.TemporaryLimit getTemporaryLimit(int acceptableDuration)
      Description copied from interface: LoadingLimits
      Get a temporary limit from its acceptable duration. Return null if there is non temporary limit with this acceptable duration.
      Specified by:
      getTemporaryLimit in interface LoadingLimits
      Parameters:
      acceptableDuration - acceptable duration in second
      Returns:
      the temporary limit
    • getTemporaryLimitValue

      public double getTemporaryLimitValue(int acceptableDuration)
      Description copied from interface: LoadingLimits
      Get a temporary limit value from its acceptable duration. Return NaN if there is non temporary limit with this acceptable duration.
      Specified by:
      getTemporaryLimitValue in interface LoadingLimits
      Parameters:
      acceptableDuration - acceptable duration in second
      Returns:
      the temporary limit value or NaN if there is no temporary limit for this acceptable duration