public class YDataSet extends Object
Modifier and Type | Field and Description |
---|---|
protected int |
_bulkLoad |
protected ArrayList<Integer> |
_calib |
protected double |
_endTimeMs |
protected String |
_functionId |
protected String |
_hardwareId |
protected ArrayList<YMeasure> |
_measures |
protected YFunction |
_parent |
protected ArrayList<YMeasure> |
_preview |
protected int |
_progress |
protected double |
_startTimeMs |
protected ArrayList<YDataStream> |
_streams |
protected YMeasure |
_summary |
protected double |
_summaryMaxVal |
protected double |
_summaryMinVal |
protected double |
_summaryTotalAvg |
protected double |
_summaryTotalTime |
protected String |
_unit |
Modifier and Type | Method and Description |
---|---|
ArrayList<Integer> |
_get_calibration() |
protected int |
_parse(String json_str) |
long |
get_endTimeUTC()
Returns the end time of the dataset, relative to the Jan 1, 1970.
|
String |
get_functionId()
Returns the hardware identifier of the function that performed the measure,
without reference to the module.
|
String |
get_hardwareId()
Returns the unique hardware identifier of the function who performed the measures,
in the form SERIAL.FUNCTIONID.
|
ArrayList<YMeasure> |
get_measures()
Returns all measured values currently available for this DataSet,
as a list of YMeasure objects.
|
ArrayList<YMeasure> |
get_measuresAt(YMeasure measure)
Returns the detailed set of measures for the time interval corresponding
to a given condensed measures previously returned by get_preview().
|
ArrayList<YMeasure> |
get_preview()
Returns a condensed version of the measures that can
retrieved in this YDataSet, as a list of YMeasure
objects.
|
ArrayList<YDataStream> |
get_privateDataStreams() |
int |
get_progress()
Returns the progress of the downloads of the measures from the data logger,
on a scale from 0 to 100.
|
long |
get_startTimeUTC()
Returns the start time of the dataset, relative to the Jan 1, 1970.
|
YMeasure |
get_summary()
Returns an YMeasure object which summarizes the whole
YDataSet.
|
String |
get_unit()
Returns the measuring unit for the measured value.
|
long |
imm_get_endTimeUTC() |
long |
imm_get_startTimeUTC() |
int |
loadMore()
Loads the next block of measures from the dataLogger, and updates
the progress indicator.
|
int |
loadSummary(byte[] data) |
int |
processMore(int progress,
byte[] data) |
protected YFunction _parent
protected String _hardwareId
protected String _functionId
protected String _unit
protected int _bulkLoad
protected double _startTimeMs
protected double _endTimeMs
protected int _progress
protected ArrayList<YDataStream> _streams
protected YMeasure _summary
protected double _summaryMinVal
protected double _summaryMaxVal
protected double _summaryTotalAvg
protected double _summaryTotalTime
public YDataSet(YFunction parent)
protected int _parse(String json_str) throws YAPI_Exception
YAPI_Exception
public int loadSummary(byte[] data) throws YAPI_Exception
YAPI_Exception
public int processMore(int progress, byte[] data) throws YAPI_Exception
YAPI_Exception
public ArrayList<YDataStream> get_privateDataStreams()
public String get_hardwareId() throws YAPI_Exception
YAPI_Exception
- on errorpublic String get_functionId()
public String get_unit() throws YAPI_Exception
YAPI_Exception
- on errorpublic long get_startTimeUTC()
public long imm_get_startTimeUTC()
public long get_endTimeUTC()
public long imm_get_endTimeUTC()
public int get_progress()
public int loadMore() throws YAPI_Exception
YAPI_Exception
- on errorpublic YMeasure get_summary()
public ArrayList<YMeasure> get_preview() throws YAPI_Exception
YAPI_Exception
- on errorpublic ArrayList<YMeasure> get_measuresAt(YMeasure measure) throws YAPI_Exception
measure
- : condensed measure from the list previously returned by
get_preview().YAPI_Exception
- on errorpublic ArrayList<YMeasure> get_measures() throws YAPI_Exception
YAPI_Exception
- on errorCopyright © 2023. All rights reserved.