public class YDataSet extends Object
Modifier and Type | Field and Description |
---|---|
protected ArrayList<Integer> |
_calib |
protected long |
_endTime |
protected String |
_functionId |
protected String |
_hardwareId |
protected ArrayList<YMeasure> |
_measures |
protected YFunction |
_parent |
protected ArrayList<YMeasure> |
_preview |
protected int |
_progress |
protected long |
_startTime |
protected ArrayList<YDataStream> |
_streams |
protected YMeasure |
_summary |
protected String |
_unit |
Constructor and Description |
---|
YDataSet(YFunction parent,
String json) |
YDataSet(YFunction parent,
String functionId,
String unit,
long startTime,
long endTime) |
Modifier and Type | Method and Description |
---|---|
protected int |
_parse(String json_str) |
ArrayList<Integer> |
get_calibration() |
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
DataSet.
|
String |
get_unit()
Returns the measuring unit for the measured value.
|
int |
loadMore()
Loads the the next block of measures from the dataLogger, and updates
the progress indicator.
|
int |
processMore(int progress,
byte[] data) |
protected YFunction _parent
protected String _hardwareId
protected String _functionId
protected String _unit
protected long _startTime
protected long _endTime
protected int _progress
protected ArrayList<YDataStream> _streams
protected YMeasure _summary
public YDataSet(YFunction parent, String functionId, String unit, long startTime, long endTime)
public YDataSet(YFunction parent, String json) throws YAPI_Exception
YAPI_Exception
protected int _parse(String json_str) 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 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 © 2015. All rights reserved.