Class PingSourceStats

java.lang.Object
com.biglybt.core.speedmanager.impl.v2.PingSourceStats

public class PingSourceStats extends Object
Keeps the ping time stats for a single source. Should calculate averages for the data.
  • Field Details

  • Constructor Details

  • Method Details

    • madeChange

      public void madeChange()
    • addPingTime

      public void addPingTime(int ping)
    • getTrend

      public int getTrend()
      Speculative method to see if it can determine a trend. The larger the number the stronger the trend.
      Returns:
      current - integer. A positive number is an increasing trend. A negative number is a decreasing trend.
    • getLongTermAve

      public Average getLongTermAve()
      Get the long-term average.
      Returns:
      Average - longTerm
    • getHistory

      public Average getHistory()
      Get the average that should be used for checking ping times.
      Returns:
      - ping time of history.