接口 STALKSentence
- 所有超级接口:
Sentence
Raymarine/Autohelm SeaTalk sentence. See SeaTalk Technical Reference by Thomas Knauf for more information on the protocol.
Example:
$STALK,52,A1,00,00*36
- 作者:
- Kimmo Tuukkanen
-
字段概要
从接口继承的字段 net.sf.marineapi.nmea.sentence.Sentence
ALTERNATIVE_BEGIN_CHAR, BEGIN_CHAR, CHECKSUM_DELIMITER, FIELD_DELIMITER, MAX_LENGTH, TERMINATOR -
方法概要
修饰符和类型方法说明voidaddParameter(String param) Add given parameter in sentence.Returns the SeaTalk command / datagram type.String[]Returns the datagram payload.voidsetCommand(String cmd) Sets the SeaTalk command / datagram type.voidsetParameters(String... params) Sets the datagram payload.从接口继承的方法 net.sf.marineapi.nmea.sentence.Sentence
getBeginChar, getFieldCount, getSentenceId, getTalkerId, isAISSentence, isProprietary, isValid, reset, setBeginChar, setTalkerId, toSentence, toSentence, toString
-
方法详细资料
-
addParameter
Add given parameter in sentence. Sentence field count is increased by one field, notice that adding too many fields may result in invalid sentence.- 参数:
param- Hex parameter to add
-
getCommand
String getCommand()Returns the SeaTalk command / datagram type.- 返回:
- Command String, "00", "01", "02" etc.
-
setCommand
Sets the SeaTalk command / datagram type.- 参数:
cmd- Command String, "00", "01", "02" etc.
-
getParameters
String[] getParameters()Returns the datagram payload.- 返回:
- Parameters array containing hex values.
-
setParameters
Sets the datagram payload.- 参数:
params- Parameters array containing hex Strings.
-