Package kieker.analysis.util.timeseries
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:
java.lang.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 Summary
Constructors Constructor Description BoundedTimeSeries(java.time.Duration capacity)
BoundedTimeSeries(java.time.Duration capacity, TimeSeries<T> timeSeries)
BoundedTimeSeries(BoundedTimeSeries<T> timeSeries)
-
Method Summary
Modifier and Type Method Description void
appendBegin(T timeSeriesPoint)
Appends a point at the end of this time series, so the point is the new earliest point in this time series.void
appendEnd(T timeSeriesPoint)
Appends a point at the end of this time series, so the point is the new latest point in this time series.java.time.Duration
getCapacity()
Methods inherited from class kieker.analysis.util.timeseries.TimeSeries
backwardsIterator, getBegin, getEnd, isEmpty, iterator, removeBegin, removeEnd, size, stream, toString
-
Constructor Details
-
BoundedTimeSeries
public BoundedTimeSeries(java.time.Duration capacity) -
BoundedTimeSeries
-
BoundedTimeSeries
-
-
Method Details
-
appendBegin
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 classTimeSeries<T extends ITimeSeriesPoint>
-
appendEnd
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 classTimeSeries<T extends ITimeSeriesPoint>
-
getCapacity
public java.time.Duration getCapacity()
-