-
Notifications
You must be signed in to change notification settings - Fork 104
/
Copy pathSTALKSentence.java
73 lines (67 loc) · 2.06 KB
/
STALKSentence.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/*
* STALKSentence.java
* Copyright (C) 2017 Kimmo Tuukkanen
*
* This file is part of Java Marine API.
* <http://ktuukkan.github.io/marine-api/>
*
* Java Marine API is free software: you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by the
* Free Software Foundation, either version 3 of the License, or (at your
* option) any later version.
*
* Java Marine API is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
* for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Java Marine API. If not, see <http://www.gnu.org/licenses/>.
*/
package net.sf.marineapi.nmea.sentence;
/**
* <p>
* Raymarine/Autohelm SeaTalk sentence. See
* <a href="http://www.thomasknauf.de/seatalk.htm">SeaTalk Technical Reference</a>
* by Thomas Knauf for more information on the protocol.
* </p>
*
* <p>Example:<br>
* {@code $STALK,52,A1,00,00*36}
* </p>
*
* @author Kimmo Tuukkanen
*/
public interface STALKSentence extends Sentence {
/**
* 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 param Hex parameter to add
*/
void addParameter(String param);
/**
* Returns the SeaTalk command / datagram type.
*
* @return Command String, "00", "01", "02" etc.
*/
String getCommand();
/**
* Sets the SeaTalk command / datagram type.
*
* @param cmd Command String, "00", "01", "02" etc.
*/
void setCommand(String cmd);
/**
* Returns the datagram payload.
*
* @return Parameters array containing hex values.
*/
String[] getParameters();
/**
* Sets the datagram payload.
*
* @param params Parameters array containing hex Strings.
*/
void setParameters(String... params);
}