public class YConsolidatedDataSet extends Object
| Modifier and Type | Field and Description |
|---|---|
protected ArrayList<YDataSet> |
_datasets |
protected double |
_end |
protected ArrayList<Integer> |
_nextidx |
protected ArrayList<Double> |
_nexttim |
protected int |
_nsensors |
protected ArrayList<Integer> |
_progresss |
protected ArrayList<YSensor> |
_sensors |
protected double |
_start |
| Constructor and Description |
|---|
YConsolidatedDataSet(double startTime,
double endTime,
ArrayList<YSensor> sensorList) |
| Modifier and Type | Method and Description |
|---|---|
int |
imm_init(double startt,
double endt,
ArrayList<YSensor> sensorList) |
static YConsolidatedDataSet |
Init(ArrayList<String> sensorNames,
double startTime,
double endTime)
Returns an object holding historical data for multiple
sensors, for a specified time interval.
|
int |
nextRecord(ArrayList<Double> datarec)
Extracts the next data record from the data logger of all sensors linked to this
object.
|
protected double _start
protected double _end
protected int _nsensors
public static YConsolidatedDataSet Init(ArrayList<String> sensorNames, double startTime, double endTime) throws YAPI_Exception
sensorNames - : array of logical names or hardware identifiers of the sensors
for which data must be loaded from their data logger.startTime - : the start of the desired measure time interval,
as a Unix timestamp, i.e. the number of seconds since
January 1, 1970 UTC. The special value 0 can be used
to include any measure, without initial limit.endTime - : the end of the desired measure time interval,
as a Unix timestamp, i.e. the number of seconds since
January 1, 1970 UTC. The special value 0 can be used
to include any measure, without ending limit.YAPI_Exceptionpublic int nextRecord(ArrayList<Double> datarec) throws YAPI_Exception
datarec - : array of floating point numbers, that will be filled by the
function with the timestamp of the measure in first position,
followed by the measured value in next positions.YAPI_Exception - on errorCopyright © 2026. All rights reserved.