public class Vdm extends EncapsulatedSentence
binArray, channel, completePacket, msgId, num, padBits, sequence, sixbitString, totalchecksum, commentBlock, delimiter, encodedFields, formatter, msgChecksum, mssisTimestamp, orgLines, rawSentences, sentenceStr, tags, talker| Constructor and Description |
|---|
Vdm() |
| Modifier and Type | Method and Description |
|---|---|
Vdm[] |
createSentences()
Split single VDM into possible multiple VDM's to adherne to the 80 character max
|
static String[] |
createSentences(AisMessage aisMessage,
int sequence)
Make max 80 chars length sentences from AIS message given sequence number
If all VDM fields are used, 61 chars are left for encoded AIS message
|
String |
getEncoded()
Get encoded sentence as a single line
|
boolean |
isOwnMessage()
Determine if VDO instead of VDM
|
static boolean |
isVdm(String line)
Determine if line seems to contain VDM or VDO sentence
|
int |
parse(SentenceLine sl)
Implemented parse method.
|
int |
parse(String line)
Helper method parsing line to SentenceLine and passing to parse
|
baseParse, encode, 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 int parse(String line) throws SentenceException
line - the lineSentenceException - the sentence exceptionpublic int parse(SentenceLine sl) throws SentenceException
EncapsulatedSentenceparse in class Sentencesl - the slSentenceException - the sentence exceptionpublic static boolean isVdm(String line)
line - the linepublic boolean isOwnMessage()
public String getEncoded()
getEncoded in class Sentencepublic static String[] createSentences(AisMessage aisMessage, int sequence) throws SixbitException
If all VDM fields are used, 61 chars are left for encoded AIS message
aisMessage - the ais messagesequence - the sequenceSixbitException - the sixbit exceptionpublic Vdm[] createSentences()
Copyright © 2011–2019 Danish Maritime Authority. All rights reserved.