Class SaturatedMode
java.lang.Object
com.biglybt.core.speedmanager.impl.v2.SaturatedMode
- All Implemented Interfaces:
Comparable
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SaturatedModestatic final SaturatedModestatic final SaturatedModestatic final SaturatedModeprivate final Stringstatic final SaturatedModeprivate final float -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(SaturatedMode satMode) intstatic SaturatedModegetSaturatedMode(long currentRate, long limit) From the currentRate and limit determine the mode.private floatbooleanisGreater(SaturatedMode mode) toString()
-
Field Details
-
AT_LIMIT
-
HIGH
-
MED
-
LOW
-
NONE
-
name
-
percentCapacity
private final float percentCapacity
-
-
Constructor Details
-
SaturatedMode
-
-
Method Details
-
getThreshold
private float getThreshold() -
getSaturatedMode
From the currentRate and limit determine the mode.- Parameters:
currentRate- -limit- -- Returns:
- - SaturatedMode
-
toString
-
isGreater
- Parameters:
mode-- Returns:
-
compareTo
- Parameters:
satMode- the SaturatedMode to be compared.- Returns:
- a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
-
compareTo
- Specified by:
compareToin interfaceComparable- Parameters:
obj- the Object to be compared.- Returns:
- a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
- Throws:
ClassCastException- if the specified object's type prevents it from being compared to this Object.
-