public interface GSVSentence extends Sentence
Example:
$GPGSV,3,2,12,15,56,182,51,17,38,163,47,18,63,058,50,21,53,329,47*73
ALTERNATIVE_BEGIN_CHAR, BEGIN_CHAR, CHECKSUM_DELIMITER, FIELD_DELIMITER, MAX_LENGTH, TERMINATOR| Modifier and Type | Method and Description |
|---|---|
int |
getSatelliteCount()
Get the number of satellites in view.
|
List<SatelliteInfo> |
getSatelliteInfo()
Get the satellites information.
|
int |
getSentenceCount()
Get the total number of sentences in GSV sequence.
|
int |
getSentenceIndex()
Get the index of this sentence in GSV sequence.
|
boolean |
isFirst()
Tells if this is the first sentence in GSV sequence.
|
boolean |
isLast()
Tells if this is the last sentence in GSV sequence.
|
void |
setSatelliteCount(int count)
Set the number of satellites in view.
|
void |
setSatelliteInfo(List<SatelliteInfo> info)
Set the satellite information.
|
void |
setSentenceCount(int count)
Set the total number of sentences in GSV sequence.
|
void |
setSentenceIndex(int index)
Set the index of this sentence in GSV sequence.
|
getBeginChar, getFieldCount, getSentenceId, getTalkerId, isAISSentence, isProprietary, isValid, reset, setBeginChar, setTalkerId, toSentence, toSentence, toStringint getSatelliteCount()
List<SatelliteInfo> getSatelliteInfo()
int getSentenceCount()
int getSentenceIndex()
boolean isFirst()
getSentenceCount(),
getSentenceIndex()boolean isLast()
(getSentenceCount() == getSentenceIndex())
.true if first, otherwise false.void setSatelliteCount(int count)
count - Satellite countIllegalArgumentException - If specified number is negativevoid setSatelliteInfo(List<SatelliteInfo> info)
info - List of SatelliteInfo objects, size from 0 to 4.IllegalArgumentException - If specified list size is greater that
maximum allowed number of satellites per sentence (4).void setSentenceCount(int count)
count - Number of sentencesIllegalArgumentException - If specified count is negativevoid setSentenceIndex(int index)
index - Sentence index to setIllegalArgumentException - If specified index is negativeCopyright (C) 2010-2017 Java Marine API authors. All Rights Reserved.