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
TimeUnit ITimeSeries.getDeltaTime() . |
java.util.concurrent.TimeUnit |
getDeltaTimeUnit()
The
TimeUnit used 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
ITimeSeriesPoint s 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
TimeUnit used 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()
ITimeSeries
getStartTime
in interface ITimeSeries<T>
public java.util.concurrent.TimeUnit getTimeSeriesTimeUnit()
ITimeSeries
TimeUnit
used to specify the temporal distance between to values (ITimeSeries.getStartTime()
).getTimeSeriesTimeUnit
in interface ITimeSeries<T>
public long getDeltaTime()
ITimeSeries
TimeUnit
ITimeSeries.getDeltaTime()
.getDeltaTime
in interface ITimeSeries<T>
public java.util.concurrent.TimeUnit getDeltaTimeUnit()
ITimeSeries
TimeUnit
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)
ITimeSeries
append
in interface ITimeSeries<T>
value
- value which should append to timeseriespublic java.util.List<ITimeSeriesPoint<T>> getPoints()
ITimeSeries
ITimeSeriesPoint
s of this time series.getPoints
in interface ITimeSeries<T>
public java.util.List<T> getValues()
ITimeSeries
getPoints()getValues()
.getValues
in interface ITimeSeries<T>
public int getCapacity()
ITimeSeries
getCapacity
in interface ITimeSeries<T>
ITimeSeries.INFINITE_CAPACITY
if the capacity is infinitepublic int size()
ITimeSeries
size
in interface ITimeSeries<T>
public long getEndTime()
ITimeSeries
getEndTime
in interface ITimeSeries<T>
public java.util.List<ITimeSeriesPoint<T>> appendAll(T[] values)
ITimeSeries
appendAll
in interface ITimeSeries<T>
public java.lang.String toString()
toString
in class java.lang.Object
public int getFrequency()
ITimeSeries
getFrequency
in interface ITimeSeries<T>
Copyright 2017 Kieker Project, http://kieker-monitoring.net