Class: Toybox.SensorHistory.SensorHistoryIterator
- Inherits:
-
Toybox.Lang.Object
Overview
A class containing sensor data for a given period of time.
The SensorHistoryIterator describes a sequence of SensorSample objects. The iterator is retrieved using the appropriate "get" methods found in SensorHistory at the module level. This class provides the methods needed to retrieve information from each of the SensorSample objects included in the iterator.
See Also:
Instance Method Summary collapse
-
getMax() as Lang.Number or Lang.Float or Null
Get the maximum SensorSample data value contained in this iterator.
-
getMin() as Lang.Number or Lang.Float or Null
Get the minimum SensorSample data value contained in this iterator.
-
getNewestSampleTime() as Time.Moment or Null
Get the Moment of the newest SensorSample in this iterator.
-
getOldestSampleTime() as Time.Moment or Null
Get the Moment of the oldest SensorSample in this iterator.
-
next() as SensorHistory.SensorSample or Null
Get the next SensorSample entry in the iterator.
Instance Method Details
getMax() as Lang.Number or Lang.Float or Null
Get the maximum SensorSample data value contained in this iterator.
getMin() as Lang.Number or Lang.Float or Null
Get the minimum SensorSample data value contained in this iterator.
getNewestSampleTime() as Time.Moment or Null
Get the Moment of the newest SensorSample in this iterator.
getOldestSampleTime() as Time.Moment or Null
Get the Moment of the oldest SensorSample in this iterator.
next() as SensorHistory.SensorSample or Null
Get the next SensorSample entry in the iterator.
This must be called to get the initial data from the iterator.