public class CurrentLimitsImpl extends java.lang.Object implements CurrentLimits
CurrentLimits.TemporaryLimit
Modifier and Type | Method and Description |
---|---|
double |
getPermanentLimit()
Get the permanent limit in A.
|
CurrentLimits.TemporaryLimit |
getTemporaryLimit(int acceptableDuration)
Get a temporary limit from its acceptable duration.
|
java.util.Collection<CurrentLimits.TemporaryLimit> |
getTemporaryLimits()
Get a list of temporary limits ordered by descending duration.
|
double |
getTemporaryLimitValue(int acceptableDuration)
Get a temporary limit value from its acceptable duration.
|
CurrentLimitsImpl |
setPermanentLimit(double permanentLimit)
Set the permanent limit in A.
|
public double getPermanentLimit()
CurrentLimits
getPermanentLimit
in interface CurrentLimits
public CurrentLimitsImpl setPermanentLimit(double permanentLimit)
CurrentLimits
setPermanentLimit
in interface CurrentLimits
permanentLimit
- the permanent limit in Apublic java.util.Collection<CurrentLimits.TemporaryLimit> getTemporaryLimits()
CurrentLimits
getTemporaryLimits
in interface CurrentLimits
public CurrentLimits.TemporaryLimit getTemporaryLimit(int acceptableDuration)
CurrentLimits
getTemporaryLimit
in interface CurrentLimits
acceptableDuration
- acceptable duration in secondpublic double getTemporaryLimitValue(int acceptableDuration)
CurrentLimits
getTemporaryLimitValue
in interface CurrentLimits
acceptableDuration
- acceptable duration in second