public interface AISSentence extends Sentence
Base interface for all AIS sentences (Automatic Identification System). Notice that "AIS" does not refer to NMEA sentence type, but another system/standard that transmits it's messages using NMEA 0183.
AIS sentences are parsed in two phases and they all share the same NMEA sentence layout, so there is no dedicated interfaces for each AIS sentence type (VDM, VDO etc).
Example:
!AIVDM,1,1,,B,177KQJ5000G?tO`K>RA1wUbN0TKH,0*5C
ALTERNATIVE_BEGIN_CHAR, BEGIN_CHAR, CHECKSUM_DELIMITER, FIELD_DELIMITER, MAX_LENGTH, TERMINATOR
Modifier and Type | Method and Description |
---|---|
int |
getFillBits()
Returns the number of fill bits required to pad the data payload to a 6
bit boundary, ranging from 0 to 5.
|
int |
getFragmentNumber()
Returns the fragment number of this sentence (1-based).
|
String |
getMessageId()
Returns the sequential message ID for multi-sentence messages.
|
int |
getNumberOfFragments()
Number of fragments in the currently accumulating message.
|
String |
getPayload()
Returns the raw 6-bit decoded message.
|
String |
getRadioChannel()
Returns the radio channel information of the messsage.
|
boolean |
isFirstFragment()
Tells if this is the first fragment in message sequence.
|
boolean |
isFragmented()
Tells if the AIS message is being delivered over multiple sentences.
|
boolean |
isLastFragment()
Tells if this is the last fragment in message sequence.
|
boolean |
isPartOfMessage(AISSentence sentence)
Tells if given sentence is part of message sequence.
|
getBeginChar, getFieldCount, getSentenceId, getTalkerId, isAISSentence, isProprietary, isValid, reset, setBeginChar, setTalkerId, toSentence, toSentence, toString
int getNumberOfFragments()
int getFragmentNumber()
String getMessageId()
String getRadioChannel()
String getPayload()
int getFillBits()
boolean isFragmented()
boolean isFirstFragment()
boolean isLastFragment()
boolean isPartOfMessage(AISSentence sentence)
Tells if given sentence is part of message sequence.
Sentences are considered to belong in same sequence when the given sentence meets the following conditions:
sentence
- AISSentence to compare with.Copyright (C) 2010-2017 Java Marine API authors. All Rights Reserved.