public class AisMessage17 extends AisMessage
GNSS broadcast binary message
msgId, repeat, userId, VALID_MESSAGE_TYPES, vdm| Constructor and Description |
|---|
AisMessage17()
Instantiates a new Ais message 17.
|
AisMessage17(int num)
Instantiates a new Ais message 17.
|
AisMessage17(Vdm vdm)
Instantiates a new Ais message 17.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getDataWordCount()
Gets data word count.
|
int[] |
getDataWords()
Get data words int [ ].
|
SixbitEncoder |
getEncoded()
Abstract method to be implemented by all extending classes
|
int |
getHealth()
Gets health.
|
int |
getLat()
Gets lat.
|
int |
getLon()
Gets lon.
|
int |
getMessageType()
Gets message type.
|
int |
getSeqNum()
Gets seq num.
|
int |
getSpare1()
Gets spare 1.
|
int |
getSpare2()
Gets spare 2.
|
int |
getStationId()
Gets station id.
|
int |
getzCount()
Gets count.
|
void |
parse()
Parse.
|
void |
setDataWordCount(int dataWordCount)
Sets data word count.
|
void |
setDataWords(int[] dataWords)
Sets data words.
|
void |
setHealth(int health)
Sets health.
|
void |
setLat(int lat)
Sets lat.
|
void |
setLon(int lon)
Sets lon.
|
void |
setMessageType(int messageType)
Sets message type.
|
void |
setSeqNum(int seqNum)
Sets seq num.
|
void |
setSpare1(int spare1)
Sets spare 1.
|
void |
setSpare2(int spare2)
Sets spare 2.
|
void |
setStationId(int stationId)
Sets station id.
|
void |
setzCount(int zCount)
Sets count.
|
String |
toString() |
encode, getInstance, getMsgId, getRepeat, getSourceTag, getTags, getTargetType, getUserId, getValidPosition, getVdm, parse, reassemble, setRepeat, setTag, setTags, setUserId, trimTextpublic AisMessage17()
public AisMessage17(int num)
num - the numpublic AisMessage17(Vdm vdm) throws AisMessageException, SixbitException
vdm - the vdmAisMessageException - the ais message exceptionSixbitException - the sixbit exceptionpublic void parse()
throws AisMessageException,
SixbitException
AisMessageException - the ais message exceptionSixbitException - the sixbit exceptionpublic SixbitEncoder getEncoded()
AisMessagegetEncoded in class AisMessagepublic int getSpare1()
public void setSpare1(int spare1)
spare1 - the spare 1public int getLon()
public void setLon(int lon)
lon - the lonpublic int getLat()
public void setLat(int lat)
lat - the latpublic int getSpare2()
public void setSpare2(int spare2)
spare2 - the spare 2public int getMessageType()
public void setMessageType(int messageType)
messageType - the message typepublic int getStationId()
public void setStationId(int stationId)
stationId - the station idpublic int getzCount()
public void setzCount(int zCount)
zCount - the z countpublic int getSeqNum()
public void setSeqNum(int seqNum)
seqNum - the seq numpublic int getDataWordCount()
public void setDataWordCount(int dataWordCount)
dataWordCount - the data word countpublic int getHealth()
public void setHealth(int health)
health - the healthpublic int[] getDataWords()
public void setDataWords(int[] dataWords)
dataWords - the data wordspublic String toString()
toString in class AisMessageCopyright © 2011–2019 Danish Maritime Authority. All rights reserved.