接口 TXTSentence
- 所有超级接口:
Sentence
Text message sentence. Transmits various information on the device, such as power-up screen, software version etc.
Example:
$GPTXT,01,01,TARG1,Message*35
- 作者:
- Kimmo Tuukkanen
-
字段概要
从接口继承的字段 net.sf.marineapi.nmea.sentence.Sentence
ALTERNATIVE_BEGIN_CHAR, BEGIN_CHAR, CHECKSUM_DELIMITER, FIELD_DELIMITER, MAX_LENGTH, TERMINATOR -
方法概要
修饰符和类型方法说明Returns the message identifier.Returns the message content.intGet total number of sentences in message sequence.intReturns the sentence index in message sequence.voidsetIdentifier(String id) Sets the message identifier.voidsetMessage(String msg) Sets the message content.voidsetMessageCount(int count) Set total number of sentences in message sequence.voidsetMessageIndex(int index) Sets the sentence index in message sequence.从接口继承的方法 net.sf.marineapi.nmea.sentence.Sentence
getBeginChar, getFieldCount, getSentenceId, getTalkerId, isAISSentence, isProprietary, isValid, reset, setBeginChar, setTalkerId, toSentence, toSentence, toString
-
方法详细资料
-
getMessageCount
int getMessageCount()Get total number of sentences in message sequence.- 返回:
- Number of transmission messages.
-
setMessageCount
void setMessageCount(int count) Set total number of sentences in message sequence.- 参数:
count- Number of transmission messages.- 抛出:
IllegalArgumentException- If given count is zero or negative
-
getMessageIndex
int getMessageIndex()Returns the sentence index in message sequence.- 返回:
- Message number of this sentence.
- 另请参阅:
-
setMessageIndex
void setMessageIndex(int index) Sets the sentence index in message sequence.- 参数:
index- Message index to set- 抛出:
IllegalArgumentException- If given index is negative
-
getIdentifier
String getIdentifier()Returns the message identifier. This field may be used for various purposes depending on the device. Originally a numeric field but may also contain String values. For example, should match target name inTLLor waypoint name inWPL.- 返回:
- Message identifier
-
setIdentifier
Sets the message identifier.- 参数:
id- Identifier to be set- 另请参阅:
-
getMessage
String getMessage()Returns the message content.- 返回:
- ASCII text content
-
setMessage
Sets the message content.- 参数:
msg- ASCII text content to set.
-