Class SensorInfo

java.lang.Object
se.hendeby.sensordata.SensorInfo

public class SensorInfo extends Object
Specifies information about different sensor types
  • Field Details

    • tag

      public final String tag
      Tag identifying a type of measurements. The tag is used as identifier when the measurements are serialized.
    • description

      public final String description
      Sensor description.
    • unit

      public final String unit
      Measurement unit.
    • nDim

      public final byte nDim
      Dimension of the measured quantity.
    • offset

      public final byte offset
      Offset of the measurement when representing it as a Matlab vector. This structure could more or less replace the specialized SensorData classes.
  • Constructor Details

    • SensorInfo

      public SensorInfo(String tag, String description, String unit, byte nDim, byte offset)
      Constructor.
      Parameters:
      tag - Tag to be used for this measurement.
      description - Description of the sensor.
      unit - Unit of the measurement.
      nDim - Dimension of the measured quantity.
      offset - Offset of the data when represented as a Matlab vector.