SensorValue<S extends Sensor, X, Y> class
Represent a value provided by a SensorData.
Considering the following fake accelerometer data:
Timestamp,Acc X,Acc Y,Acc Z,AngA X,AngA Y,AngA Z
2021-12-10 22:06:10.200, 0.13, 0.20, 9.81, 0.00, 0.00, 89.75
...
an object of this class can be built programmatically by
final SensorValue<Accelerometer, Duration, double> value = SensorValue(
Point3(
Duration.parse("2021-12-10 22:06:10.200"),
x: {Metric.acceleration: 0.13, Metric.accelerometerAngle: 0.00},
y: {Metric.acceleration: 0.20, Metric.accelerometerAngle: 0.00},
z: {Metric.acceleration: 9.81, Metric.accelerometerAngle: 89.75},
),
metrics: {Metric.acceleration, Metric.accelerometerAngle},
);
This class has the following contracts, meaning that building an object disrespecting any of these contracts will not throw any errors, but the caller may face unexpected behaviour:
Constructors
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
transpose(
) → TransposedSensorValue< S, X, Y>
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited