Class SaturatedMode

java.lang.Object
com.biglybt.core.speedmanager.impl.v2.SaturatedMode
All Implemented Interfaces:
Comparable

public class SaturatedMode extends Object implements Comparable
  • Field Details

  • Constructor Details

    • SaturatedMode

      private SaturatedMode(String _name, float _percent)
  • Method Details

    • getThreshold

      private float getThreshold()
    • 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.