|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnl.lxtreme.ols.api.data.BaseDataSet<DATA>
DATA
- the actual data entity of this base data set.public class BaseDataSet<DATA extends BaseData<DATA>>
Provides a base data set implementation.
Constructor Summary | |
---|---|
BaseDataSet(int aStartOfDecodeIdx,
int aEndOfDecodeIdx,
AcquisitionResult aData)
Creates a new BaseDataSet. |
Method Summary | |
---|---|
protected void |
addData(DATA aData)
Adds data to this dataset. |
List<DATA> |
getData()
Returns the (decoded) data in this data set. |
int |
getEndOfDecode()
Returns the sample (array) index on which the decoding is stopped. |
int |
getSampleRate()
|
int |
getStartOfDecode()
Returns the sample (array) index on which the decoding is started. |
double |
getTime(int aSampleIdx)
Returns the time-value for the given sample index, taking the (optional) trigger position into consideration. |
boolean |
isEmpty()
Returns whether this data set is empty or not. |
protected int |
size()
Returns the current size of this data set. |
protected void |
sort()
Sorts the data according to the Comparable implementation of DATA. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BaseDataSet(int aStartOfDecodeIdx, int aEndOfDecodeIdx, AcquisitionResult aData)
aStartOfDecodeIdx
- the sample index denoting the start of this data set;aEndOfDecodeIdx
- the sample index denoting the end of this data set;aData
- the actual acquisition results used in this data set.Method Detail |
---|
public final List<DATA> getData()
null
.public final int getEndOfDecode()
public final int getSampleRate()
public final int getStartOfDecode()
public final double getTime(int aSampleIdx)
aSampleIdx
- the sample index to return as (absolute) time value.
null
.public final boolean isEmpty()
true
if this data set is empty, false
otherwise.protected final void addData(DATA aData)
aData
- the data to add, cannot be null
.protected final int size()
protected void sort()
Comparable
implementation of DATA.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |