public class AnySentence extends Sentence
checksum, commentBlock, delimiter, encodedFields, formatter, msgChecksum, mssisTimestamp, orgLines, rawSentences, sentenceStr, tags, talker| Constructor and Description |
|---|
AnySentence() |
| Modifier and Type | Method and Description |
|---|---|
void |
addField(String field)
Add field.
|
String |
getEncoded()
Get an encoded sentence
|
int |
parse(SentenceLine sl)
Abstract method that all sentence classes must implement
The method handles assembly and extraction of the 6-bit data from sentences.
|
addSingleCommentBlock, baseParse, convert, encode, finalEncode, findMssisTimestamp, getChecksum, getCommentBlock, getMssisTimestamp, getOrgLines, getOrgLinesJoined, getRawSentences, getRawSentencesJoined, getSourceTag, getStringChecksum, getTags, getTimestamp, hasSentence, parseInt, setDelimiter, setFormatter, setTag, setTags, setTalkerpublic int parse(SentenceLine sl) throws SentenceException, SixbitException
SentenceThe method handles assembly and extraction of the 6-bit data from sentences. The sentence is expected to be in order.
It will return an error if received line is out of order or from a new sequence before the previous one is finished.
parse in class Sentencesl - the slSentenceException - the sentence exceptionSixbitException - the sixbit exceptionpublic String getEncoded()
SentencegetEncoded in class Sentencepublic void addField(String field)
field - the fieldCopyright © 2011–2019 Danish Maritime Authority. All rights reserved.