SampleData class

Stores all the readings of one sensor for one sample.

Constructors

SampleData()

Properties

average ↔ double?
The average value of readings.
getter/setter pair
firstTimestamp Timestamp?
The Timestamp of the first reading.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
max ↔ double?
The maximum value of readings.
getter/setter pair
min ↔ double?
The minimum value of readings.
getter/setter pair
readings → List<SensorReading>
A list of the readings for this sample and sensor.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sum ↔ double
The sum total of all the readings. Used to update average.
getter/setter pair

Methods

addReading(Timestamp timestamp, double value) → void
Adds a new SensorReading with timestamp relative to firstTimestamp.
clear() → void
Clears all readings.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited