com.aelitis.azureus.core.speedmanager.impl.v2
Class SaturatedMode

java.lang.Object
  extended by com.aelitis.azureus.core.speedmanager.impl.v2.SaturatedMode
All Implemented Interfaces:
Comparable

public class SaturatedMode
extends Object
implements Comparable


Field Summary
static SaturatedMode AT_LIMIT
           
static SaturatedMode HIGH
           
static SaturatedMode LOW
           
static SaturatedMode MED
           
static SaturatedMode NONE
           
 
Method Summary
 int compareTo(Object obj)
           
 int compareTo(SaturatedMode satMode)
           
static SaturatedMode getSaturatedMode(int currentRate, int limit)
          From the currentRate and limit determine the mode.
 boolean isGreater(SaturatedMode mode)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Method Detail

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.