com.aelitis.azureus.core.speedmanager.impl.v2
Class SaturatedMode
java.lang.Object
com.aelitis.azureus.core.speedmanager.impl.v2.SaturatedMode
- All Implemented Interfaces:
- Comparable
public class SaturatedMode
- extends Object
- implements Comparable
AT_LIMIT
public static final SaturatedMode AT_LIMIT
HIGH
public static final SaturatedMode HIGH
MED
public static final SaturatedMode MED
LOW
public static final SaturatedMode LOW
NONE
public static final SaturatedMode NONE
getSaturatedMode
public static SaturatedMode getSaturatedMode(int currentRate,
int limit)
- From the currentRate and limit determine the mode.
- Parameters:
currentRate
- -limit
- -
- Returns:
- - SaturatedMode
toString
public String toString()
- Overrides:
toString
in class Object
isGreater
public boolean isGreater(SaturatedMode mode)
- Parameters:
mode
-
- Returns:
compareTo
public int compareTo(SaturatedMode satMode)
- 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
public int compareTo(Object obj)
- Specified by:
compareTo
in interface Comparable
- 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.