Package trclib.sensor
Class TrcSensor.SensorData<T>
java.lang.Object
trclib.sensor.TrcSensor.SensorData<T>
- Type Parameters:
T
- specifies the sensor value type. It could be integer, double, enum or any complex type.
This class implements the SensorData object that consists of the sensor value as well as a timestamp when the
data sample is taken.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSensorData
(double timestamp, T value) Constructor: Creates an instance of the object with the given timestamp and data value. -
Method Summary
-
Field Details
-
timestamp
public double timestamp -
value
-
-
Constructor Details
-
SensorData
Constructor: Creates an instance of the object with the given timestamp and data value.- Parameters:
timestamp
- specifies the timestamp.value
- specifies the data value.
-
-
Method Details