Constructor and Description |
---|
BaseDataSet(int aStartOfDecodeIdx,
int aEndOfDecodeIdx,
AcquisitionResult aData)
Creates a new BaseDataSet.
|
Modifier and Type | Method and Description |
---|---|
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. |
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.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.Copyright © 2015 L'Xtreme IT consultancy. All rights reserved.