Class TimeSeries


  • public class TimeSeries
    extends java.lang.Object
    Represents a time series which can be graphed in the UI.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      class  TimeSeries.DataPoint
      Represents a datapoint in a time series.
    • Constructor Summary

      Constructors 
      Constructor Description
      TimeSeries​(java.lang.String name)
      Create a new time series with the given name and no data.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.google.common.collect.EvictingQueue<TimeSeries.DataPoint> getDataPoints()  
      java.lang.String getName()  
      void record​(double value)
      Record a value at the current time.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TimeSeries

        public TimeSeries​(java.lang.String name)
        Create a new time series with the given name and no data.
        Parameters:
        name - name of the time series
    • Method Detail

      • record

        public void record​(double value)
        Record a value at the current time.
        Parameters:
        value - value to record
      • getName

        public java.lang.String getName()
        Returns:
        the name of the time series
      • getDataPoints

        public com.google.common.collect.EvictingQueue<TimeSeries.DataPoint> getDataPoints()
        Returns:
        the data of the time series