public class YDataStream extends Object
Modifier and Type | Field and Description |
---|---|
protected double |
_avgVal |
protected YAPI.CalibrationHandlerCallback |
_calhdl |
protected ArrayList<Integer> |
_calpar |
protected ArrayList<Double> |
_calraw |
protected ArrayList<Double> |
_calref |
protected int |
_caltyp |
protected ArrayList<String> |
_columnNames |
protected double |
_dataSamplesInterval |
protected double |
_duration |
protected double |
_firstMeasureDuration |
protected String |
_functionId |
protected boolean |
_isAvg |
protected boolean |
_isClosed |
protected double |
_maxVal |
protected double |
_minVal |
protected int |
_nCols |
protected int |
_nRows |
protected YFunction |
_parent |
protected int |
_runNo |
protected double |
_startTime |
protected long |
_utcStamp |
protected ArrayList<ArrayList<Double>> |
_values |
static double |
DATA_INVALID |
Modifier and Type | Method and Description |
---|---|
double |
_decodeAvg(int dw,
int count) |
double |
_decodeVal(int w) |
String |
_get_url() |
int |
_initFromDataSet(YDataSet dataset,
ArrayList<Integer> encoded) |
int |
_parseStream(byte[] sdata) |
double |
get_averageValue()
Returns the average of all measures observed within this stream.
|
int |
get_columnCount()
Returns the number of data columns present in this stream.
|
ArrayList<String> |
get_columnNames()
Returns the title (or meaning) of each data column present in this stream.
|
double |
get_data(int row,
int col)
Returns a single measure from the data stream, specified by its
row and column index.
|
ArrayList<ArrayList<Double>> |
get_dataRows()
Returns the whole data set contained in the stream, as a bidimensional
table of numbers.
|
double |
get_dataSamplesInterval() |
int |
get_dataSamplesIntervalMs()
Returns the number of milliseconds between two consecutive
rows of this data stream.
|
double |
get_firstDataSamplesInterval() |
double |
get_maxValue()
Returns the largest measure observed within this stream.
|
double |
get_minValue()
Returns the smallest measure observed within this stream.
|
double |
get_realDuration() |
double |
get_realStartTimeUTC()
Returns the start time of the data stream, relative to the Jan 1, 1970.
|
int |
get_rowCount()
Returns the number of data rows present in this stream.
|
int |
get_runIndex()
Returns the run index of the data stream.
|
int |
get_startTime()
Returns the relative start time of the data stream, measured in seconds.
|
long |
get_startTimeUTC()
Returns the start time of the data stream, relative to the Jan 1, 1970.
|
boolean |
isClosed() |
int |
loadStream() |
public static final double DATA_INVALID
protected YFunction _parent
protected int _runNo
protected long _utcStamp
protected int _nCols
protected int _nRows
protected double _startTime
protected double _duration
protected double _dataSamplesInterval
protected double _firstMeasureDuration
protected String _functionId
protected boolean _isClosed
protected boolean _isAvg
protected double _minVal
protected double _avgVal
protected double _maxVal
protected int _caltyp
protected YAPI.CalibrationHandlerCallback _calhdl
public int _parseStream(byte[] sdata) throws YAPI_Exception
YAPI_Exception
public String _get_url()
public int loadStream() throws YAPI_Exception
YAPI_Exception
public double _decodeVal(int w)
public double _decodeAvg(int dw, int count)
public boolean isClosed()
public int get_runIndex()
public int get_startTime()
public long get_startTimeUTC()
public double get_realStartTimeUTC()
public int get_dataSamplesIntervalMs()
public double get_dataSamplesInterval()
public double get_firstDataSamplesInterval()
public int get_rowCount() throws YAPI_Exception
YAPI_Exception
- on errorpublic int get_columnCount() throws YAPI_Exception
YAPI_Exception
- on errorpublic ArrayList<String> get_columnNames() throws YAPI_Exception
YAPI_Exception
- on errorpublic double get_minValue() throws YAPI_Exception
YAPI_Exception
- on errorpublic double get_averageValue() throws YAPI_Exception
YAPI_Exception
- on errorpublic double get_maxValue() throws YAPI_Exception
YAPI_Exception
- on errorpublic double get_realDuration()
public ArrayList<ArrayList<Double>> get_dataRows() throws YAPI_Exception
YAPI_Exception
- on errorpublic double get_data(int row, int col) throws YAPI_Exception
row
- : row indexcol
- : column indexYAPI_Exception
- on errorCopyright © 2019. All rights reserved.