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 |
_decexp |
protected int |
_decimals |
protected int |
_duration |
protected String |
_functionId |
protected boolean |
_isAvg |
protected boolean |
_isClosed |
protected boolean |
_isScal |
protected boolean |
_isScal32 |
protected double |
_maxVal |
protected double |
_minVal |
protected int |
_nCols |
protected int |
_nRows |
protected double |
_offset |
protected YFunction |
_parent |
protected int |
_runNo |
protected int |
_samplesPerHour |
protected double |
_scale |
protected long |
_utcStamp |
protected ArrayList<ArrayList<Double>> |
_values |
static double |
DATA_INVALID |
Modifier | Constructor and Description |
---|---|
protected |
YDataStream(YFunction parent) |
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.
|
int |
get_duration()
Returns the approximate duration of this stream, in seconds.
|
double |
get_maxValue()
Returns the largest measure observed within this stream.
|
double |
get_minValue()
Returns the smallest measure observed within this stream.
|
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 int _duration
protected String _functionId
protected boolean _isClosed
protected boolean _isAvg
protected boolean _isScal
protected boolean _isScal32
protected int _decimals
protected double _offset
protected double _scale
protected int _samplesPerHour
protected double _minVal
protected double _avgVal
protected double _maxVal
protected double _decexp
protected int _caltyp
protected YAPI.CalibrationHandlerCallback _calhdl
protected YDataStream(YFunction parent)
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 int get_dataSamplesIntervalMs()
public double get_dataSamplesInterval()
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 int get_duration() throws YAPI_Exception
YAPI_Exception
- on errorpublic 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 © 2016. All rights reserved.