接口 XDRSentence

所有超级接口:
Sentence

public interface XDRSentence extends Sentence

Transducer measurements. Measurements are delivered in sets containing four fields; transducer type, measurement value, unit of measurement and transducer name. There may be any number of sets like this, each describing a sensor. Notice that inserting too many measuments in one sentence may result in exceeding the maximum sentence length (82 chars).

作者:
Robert Huitema, Kimmo Tuukkanen
另请参阅:
  • 方法详细资料

    • addMeasurement

      void addMeasurement(Measurement... m)
      Adds specified measurement in sentence placing it last. Multiple measurements are inserted in given order.
      参数:
      m - Measurements to add.
    • getMeasurements

      List<Measurement> getMeasurements()
      Returns all measurements.
      返回:
      List of measurements, ordered as they appear in sentence.
    • setMeasurement

      void setMeasurement(Measurement m)
      Set single measurement. Overwrites all existing values and adjusts the number of data fields to minimum required by one measurement (4).
      参数:
      m - Measurement to set.
    • setMeasurements

      void setMeasurements(List<Measurement> measurements)
      Set multiple measurements in given order. Overwrites all existing values and adjusts the number of data fields as required by given measurements.
      参数:
      measurements - List of measurements to set.