TransposedSensorValue<S extends Sensor, X, Y> class

Represent a value provided by a TransposedSensorData.

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 TransposedSensorValue<Accelerometer, Duration, double> value;
value = TransposedSensorValue(
  {
    Metric.acceleration: Point3(
      Duration.parse("2021-12-10 22:06:10.200"),
      x: 0.13,
      y: 0.20,
      z: 9.81,
    ),
    Metric.accelerometerAngle: Point3(
      Duration.parse("2021-12-10 22:06:10.200"),
      x: 0.03,
      y: 0.00,
      z: 89.75,
    ),
  },
  key: Duration.parse("2021-12-10 22:06:10.200"),
);

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:

  • the domain values passed as keys to the inner Point3 objects should be compatible with the key attribute of this object. This means that, for each Point3 point used as value in the points attribute of this object, point.key should be equal to key.

Constructors

TransposedSensorValue(Map<Metric<S>, Point3<X, Y>> points, {required X key})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
key → X
final
metrics Set<Metric<S>>
no setter
points Map<Metric<S>, Point3<X, Y>>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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() SensorValue<S, X, Y>

Operators

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