Class SaturatedMode
java.lang.Object
com.biglybt.core.speedmanager.impl.v2.SaturatedMode
- All Implemented Interfaces:
Comparable
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SaturatedMode
static final SaturatedMode
static final SaturatedMode
static final SaturatedMode
private final String
static final SaturatedMode
private final float
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(SaturatedMode satMode) int
static SaturatedMode
getSaturatedMode
(int currentRate, int limit) From the currentRate and limit determine the mode.private float
boolean
isGreater
(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:
compareTo
in 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.
-