public class Abm extends SendSentence
binArray, channel, completePacket, msgId, num, padBits, sequence, sixbitString, totalchecksum, commentBlock, delimiter, encodedFields, formatter, msgChecksum, mssisTimestamp, orgLines, rawSentences, sentenceStr, tags, talker| Constructor and Description |
|---|
Abm()
Instantiates a new Abm.
|
| Modifier and Type | Method and Description |
|---|---|
AisMessage |
getAisMessage(int mmsi,
int repeat,
int retransmit)
Gets ais message.
|
int |
getDestination()
Gets destination.
|
String |
getEncoded()
Get encoded sentence
|
static boolean |
isAbm(String line)
Is abm boolean.
|
Vdm |
makeVdm(int mmsi,
int repeat,
int retransmit)
Make a single VDM from this ABM
|
int |
parse(SentenceLine sl)
Implemented parse method.
|
int |
parse(String line)
Helper method parsing line to SentenceLine and passing to parse
|
void |
setDestination(int destination)
Sets destination.
|
encode, setBinaryData, setTextData, setTextData, splitbaseParse, getBinArray, getChannel, getMsgId, getNum, getPadBits, getSequence, getSixbitString, getTotal, isCompletePacket, setBinArray, setChannel, setEncodedMessage, setMessageData, setMsgId, setNum, setPadBits, setSequence, setSixbitString, setTotaladdSingleCommentBlock, convert, finalEncode, findMssisTimestamp, getChecksum, getCommentBlock, getMssisTimestamp, getOrgLines, getOrgLinesJoined, getRawSentences, getRawSentencesJoined, getSourceTag, getStringChecksum, getTags, getTimestamp, hasSentence, parseInt, setDelimiter, setFormatter, setTag, setTags, setTalkerpublic static boolean isAbm(String line)
line - the linepublic String getEncoded()
getEncoded in class Sentencepublic int parse(String line) throws SentenceException, SixbitException
line - the lineSentenceException - the sentence exceptionSixbitException - the sixbit exceptionpublic int parse(SentenceLine sl) throws SentenceException, SixbitException
EncapsulatedSentenceparse in class Sentencesl - the slSentenceException - a Sentence ExceptionSixbitException - a Sixbit Exceptionpublic int getDestination()
public void setDestination(int destination)
destination - the destinationpublic AisMessage getAisMessage(int mmsi, int repeat, int retransmit) throws SentenceException, SixbitException
mmsi - the mmsirepeat - the repeatretransmit - the retransmitSentenceException - the sentence exceptionSixbitException - the sixbit exceptionpublic Vdm makeVdm(int mmsi, int repeat, int retransmit) throws SixbitException, SentenceException
mmsi - the mmsirepeat - the repeatretransmit - the retransmitSixbitException - the sixbit exceptionSentenceException - the sentence exceptionCopyright © 2011–2019 Danish Maritime Authority. All rights reserved.