Class CurrentLimitsImpl

    • Method Detail

      • 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 L 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
      • 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