接口 PositionSentence
- 所有超级接口:
Sentence
- 所有已知子接口:
GGASentence,GLLSentence,GNSSentence,RMCSentence,TLLSentence
Common interface for sentences that contain geographic position.
- 作者:
- Kimmo Tuukkanen
-
字段概要
从接口继承的字段 net.sf.marineapi.nmea.sentence.Sentence
ALTERNATIVE_BEGIN_CHAR, BEGIN_CHAR, CHECKSUM_DELIMITER, FIELD_DELIMITER, MAX_LENGTH, TERMINATOR -
方法概要
修饰符和类型方法说明Gets the geographic position.voidsetPosition(Position pos) Set the geographic position.从接口继承的方法 net.sf.marineapi.nmea.sentence.Sentence
getBeginChar, getFieldCount, getSentenceId, getTalkerId, isAISSentence, isProprietary, isValid, reset, setBeginChar, setTalkerId, toSentence, toSentence, toString
-
方法详细资料
-
getPosition
Position getPosition()Gets the geographic position.- 返回:
- Position
- 抛出:
DataNotAvailableException- If any of the position related fields is empty.ParseException- If any of the position related fields contains unexpected value.
-
setPosition
Set the geographic position.- 参数:
pos- Position to set
-