Class BoundedTimeSeries<T extends ITimeSeriesPoint>

java.lang.Object
kieker.analysis.util.timeseries.TimeSeries<T>
kieker.analysis.util.timeseries.BoundedTimeSeries<T>
Type Parameters:
T - Type of the elements in this time series.
All Implemented Interfaces:
Iterable<T>, IBackwardsIterable<T>

public class BoundedTimeSeries<T extends ITimeSeriesPoint> extends TimeSeries<T>
A TimeSeries with a maximum time span. If something is added to this time series and the time span between earliest and latest point in this time series is larger than the allowed time span, the earliest points are discarded.
Since:
1.14
Author:
Sören Henning
  • Constructor Details

    • BoundedTimeSeries

      public BoundedTimeSeries(Duration capacity)
    • BoundedTimeSeries

      public BoundedTimeSeries(Duration capacity, TimeSeries<T> timeSeries)
    • BoundedTimeSeries

      public BoundedTimeSeries(BoundedTimeSeries<T> timeSeries)
  • Method Details

    • appendBegin

      public void appendBegin(T timeSeriesPoint)
      Description copied from class: TimeSeries
      Appends a point at the end of this time series, so the point is the new earliest point in this time series.
      Overrides:
      appendBegin in class TimeSeries<T extends ITimeSeriesPoint>
    • appendEnd

      public void appendEnd(T timeSeriesPoint)
      Description copied from class: TimeSeries
      Appends a point at the end of this time series, so the point is the new latest point in this time series.
      Overrides:
      appendEnd in class TimeSeries<T extends ITimeSeriesPoint>
    • getCapacity

      public Duration getCapacity()