T - The type of the time series.public class TimeSeries<T> extends java.lang.Object implements ITimeSeries<T>
INFINITE_CAPACITY| Constructor and Description | 
|---|
| TimeSeries(long startTime,
          java.util.concurrent.TimeUnit timeUnit,
          long deltaTime)Constructor using the timeunit as unit for internal usage and deltatime time unit. | 
| TimeSeries(long startTime,
          java.util.concurrent.TimeUnit timeUnit,
          long deltaTime,
          int frequency) | 
| TimeSeries(long startTime,
          java.util.concurrent.TimeUnit timeUnit,
          long deltaTime,
          int frequency,
          int capacity)Constructor using the timeunit as unit for internal usage and deltatime time unit. | 
| TimeSeries(long startTime,
          java.util.concurrent.TimeUnit timeSeriesTimeUnit,
          long deltaTime,
          java.util.concurrent.TimeUnit deltaTimeUnit) | 
| TimeSeries(long startTime,
          java.util.concurrent.TimeUnit timeSeriesTimeUnit,
          long deltaTime,
          java.util.concurrent.TimeUnit deltaTimeUnit,
          int capacity) | 
| TimeSeries(long startTime,
          java.util.concurrent.TimeUnit timeSeriesTimeUnit,
          long deltaTime,
          java.util.concurrent.TimeUnit deltaTimeUnit,
          int frequency,
          int capacity) | 
| Modifier and Type | Method and Description | 
|---|---|
| ITimeSeriesPoint<T> | append(T value)Appends the given value to the time series. | 
| java.util.List<ITimeSeriesPoint<T>> | appendAll(T[] values)Appends the given value to the time series. | 
| int | getCapacity()Returns the maximum number of elements held in this time series. | 
| long | getDeltaTime()Returns the temporal distance between to time series values with respect to the configured  TimeUnitITimeSeries.getDeltaTime(). | 
| java.util.concurrent.TimeUnit | getDeltaTimeUnit()The  TimeUnitused to specify the temporal distance between to values (ITimeSeries.getDeltaTime()). | 
| long | getEndTime()Returns the time corresponding to the most recent value in the time series. | 
| int | getFrequency()Returns the frequency of the time series (how many time series points add up to an time unit of interest)
 needed to improve forecast accuracy
 e.g. | 
| java.util.List<ITimeSeriesPoint<T>> | getPoints()Returns the  ITimeSeriesPoints of this time series. | 
| long | getStartTime()Returns the start of the time series, i.e., the time of the first value. | 
| long | getStepSize()Returns the step size between each item in the timeseries. | 
| java.util.concurrent.TimeUnit | getTimeSeriesTimeUnit()The  TimeUnitused to specify the temporal distance between to values (ITimeSeries.getStartTime()). | 
| java.util.List<T> | getValues()Returns a list of all  getPoints()getValues(). | 
| int | size()Returns the number of value contained in the time series. | 
| java.lang.String | toString() | 
public TimeSeries(long startTime,
          java.util.concurrent.TimeUnit timeSeriesTimeUnit,
          long deltaTime,
          java.util.concurrent.TimeUnit deltaTimeUnit,
          int frequency,
          int capacity)
startTime - start time of TimeseriestimeSeriesTimeUnit - time unit of the startTimedeltaTime - time of timeseriesdeltaTimeUnit - Time unitcapacity - length of timeseriespublic TimeSeries(long startTime,
          java.util.concurrent.TimeUnit timeSeriesTimeUnit,
          long deltaTime,
          java.util.concurrent.TimeUnit deltaTimeUnit,
          int capacity)
startTime - start time of TimeseriestimeSeriesTimeUnit - time unit of the startTimedeltaTime - time of timeseriesdeltaTimeUnit - Time unitcapacity - length of timeseriespublic TimeSeries(long startTime,
          java.util.concurrent.TimeUnit timeSeriesTimeUnit,
          long deltaTime,
          java.util.concurrent.TimeUnit deltaTimeUnit)
startTime - start time of TimeseriestimeSeriesTimeUnit - time unit of the startTimedeltaTime - time of timeseriesdeltaTimeUnit - Time unitpublic TimeSeries(long startTime,
          java.util.concurrent.TimeUnit timeUnit,
          long deltaTime)
public TimeSeries(long startTime,
          java.util.concurrent.TimeUnit timeUnit,
          long deltaTime,
          int frequency,
          int capacity)
public TimeSeries(long startTime,
          java.util.concurrent.TimeUnit timeUnit,
          long deltaTime,
          int frequency)
public long getStartTime()
ITimeSeriesgetStartTime in interface ITimeSeries<T>public java.util.concurrent.TimeUnit getTimeSeriesTimeUnit()
ITimeSeriesTimeUnit used to specify the temporal distance between to values (ITimeSeries.getStartTime()).getTimeSeriesTimeUnit in interface ITimeSeries<T>public long getDeltaTime()
ITimeSeriesTimeUnit ITimeSeries.getDeltaTime().getDeltaTime in interface ITimeSeries<T>public java.util.concurrent.TimeUnit getDeltaTimeUnit()
ITimeSeriesTimeUnit used to specify the temporal distance between to values (ITimeSeries.getDeltaTime()).getDeltaTimeUnit in interface ITimeSeries<T>public long getStepSize()
TimeUnit of the stepSize is equal to the timeSeriesTimeUnit.public ITimeSeriesPoint<T> append(T value)
ITimeSeriesappend in interface ITimeSeries<T>value - value which should append to timeseriespublic java.util.List<ITimeSeriesPoint<T>> getPoints()
ITimeSeriesITimeSeriesPoints of this time series.getPoints in interface ITimeSeries<T>public java.util.List<T> getValues()
ITimeSeriesgetPoints()getValues().getValues in interface ITimeSeries<T>public int getCapacity()
ITimeSeriesgetCapacity in interface ITimeSeries<T>ITimeSeries.INFINITE_CAPACITY if the capacity is infinitepublic int size()
ITimeSeriessize in interface ITimeSeries<T>public long getEndTime()
ITimeSeriesgetEndTime in interface ITimeSeries<T>public java.util.List<ITimeSeriesPoint<T>> appendAll(T[] values)
ITimeSeriesappendAll in interface ITimeSeries<T>public java.lang.String toString()
toString in class java.lang.Objectpublic int getFrequency()
ITimeSeriesgetFrequency in interface ITimeSeries<T>Copyright 2017 Kieker Project, http://kieker-monitoring.net