public abstract class EncapsulatedSentence extends Sentence
| Modifier and Type | Field and Description |
|---|---|
protected BinArray |
binArray
The Bin array.
|
protected Character |
channel
The Channel.
|
protected boolean |
completePacket
The Complete packet.
|
protected int |
msgId
The Msg id.
|
protected int |
num
The Num.
|
protected int |
padBits
The Pad bits.
|
protected Integer |
sequence
The Sequence.
|
protected StringBuilder |
sixbitString
The Sixbit string.
|
protected int |
total
The Total.
|
checksum, commentBlock, delimiter, encodedFields, formatter, msgChecksum, mssisTimestamp, orgLines, rawSentences, sentenceStr, tags, talker| Constructor and Description |
|---|
EncapsulatedSentence() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
baseParse(SentenceLine sl)
Base parse method to be used by extending classes
|
protected void |
encode()
Encode method to be used by extending classes
|
BinArray |
getBinArray()
Get binary encapsulated data
|
Character |
getChannel()
Gets channel.
|
int |
getMsgId()
Gets msg id.
|
int |
getNum()
Get sentence number
|
int |
getPadBits()
Gets pad bits.
|
int |
getSequence()
Gets sequence.
|
String |
getSixbitString()
Gets sixbit string.
|
int |
getTotal()
Get total number of actual sentences
|
boolean |
isCompletePacket()
Is complete packet boolean.
|
void |
setBinArray(BinArray binArray)
Set binary encapsulated data
|
void |
setChannel(Character channel)
Sets channel.
|
void |
setEncodedMessage(SixbitEncoder encoder)
Set binary part and pad bits from encoder
|
void |
setMessageData(AisMessage aisMessage)
Set the binary encapsulated data from AIS message
|
void |
setMsgId(int msgId)
Sets msg id.
|
void |
setNum(int num)
Sets num.
|
void |
setPadBits(int padBits)
Sets pad bits.
|
void |
setSequence(int sequence)
Sets sequence.
|
void |
setSixbitString(String sixbitString)
Set the six bit string of the sentence
|
void |
setTotal(int total)
Sets total.
|
addSingleCommentBlock, convert, finalEncode, findMssisTimestamp, getChecksum, getCommentBlock, getEncoded, getMssisTimestamp, getOrgLines, getOrgLinesJoined, getRawSentences, getRawSentencesJoined, getSourceTag, getStringChecksum, getTags, getTimestamp, hasSentence, parse, parseInt, setDelimiter, setFormatter, setTag, setTags, setTalkerprotected int msgId
protected int total
protected Integer sequence
protected int num
protected Character channel
protected BinArray binArray
protected boolean completePacket
protected StringBuilder sixbitString
protected int padBits
protected void baseParse(SentenceLine sl) throws SentenceException
baseParse in class Sentencesl - the slSentenceException - the sentence exceptionprotected void encode()
public int getMsgId()
public void setMsgId(int msgId)
msgId - the msg idpublic int getSequence()
public void setSequence(int sequence)
sequence - the sequencepublic int getTotal()
public void setTotal(int total)
total - the totalpublic int getNum()
public void setNum(int num)
num - the numpublic Character getChannel()
public void setChannel(Character channel)
channel - the channelpublic BinArray getBinArray()
public void setBinArray(BinArray binArray)
binArray - the bin arraypublic void setEncodedMessage(SixbitEncoder encoder) throws SixbitException
encoder - the encoderSixbitException - the sixbit exceptionpublic void setMessageData(AisMessage aisMessage) throws SixbitException
aisMessage - the ais messageSixbitException - the sixbit exceptionpublic int getPadBits()
public boolean isCompletePacket()
public void setSixbitString(String sixbitString)
sixbitString - the sixbit stringpublic void setPadBits(int padBits)
padBits - the pad bitspublic String getSixbitString()
Copyright © 2011–2019 Danish Maritime Authority. All rights reserved.