Class PingSourceStats


  • public class PingSourceStats
    extends java.lang.Object
    Keeps the ping time stats for a single source. Should calculate averages for the data.
    • Method Detail

      • 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 - interger. 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.