接口 XDRSentence
- 所有超级接口:
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
- 另请参阅:
-
字段概要
从接口继承的字段 net.sf.marineapi.nmea.sentence.Sentence
ALTERNATIVE_BEGIN_CHAR, BEGIN_CHAR, CHECKSUM_DELIMITER, FIELD_DELIMITER, MAX_LENGTH, TERMINATOR -
方法概要
修饰符和类型方法说明voidaddMeasurement(Measurement... m) Adds specified measurement in sentence placing it last.Returns all measurements.voidSet single measurement.voidsetMeasurements(List<Measurement> measurements) Set multiple measurements in given order.从接口继承的方法 net.sf.marineapi.nmea.sentence.Sentence
getBeginChar, getFieldCount, getSentenceId, getTalkerId, isAISSentence, isProprietary, isValid, reset, setBeginChar, setTalkerId, toSentence, toSentence, toString
-
方法详细资料
-
addMeasurement
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
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
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.
-