public class AisMessage9 extends AisMessage implements IPositionMessage
msgId, repeat, userId, VALID_MESSAGE_TYPES, vdm| Constructor and Description |
|---|
AisMessage9()
Instantiates a new Ais message 9.
|
AisMessage9(Vdm vdm)
Instantiates a new Ais message 9.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getAltitude()
Gets altitude.
|
int |
getAssigned()
Gets assigned.
|
int |
getCog()
Gets cog.
|
int |
getCommStateSelectorFlag()
Gets comm state selector flag.
|
int |
getDte()
Gets dte.
|
SixbitEncoder |
getEncoded()
Abstract method to be implemented by all extending classes
|
AisPosition |
getPos()
Get position
|
int |
getPosAcc()
Position accuracy
|
int |
getRaim()
Gets raim.
|
int |
getRegionalReserved()
Gets regional reserved.
|
int |
getSlotTimeout()
Gets slot timeout.
|
int |
getSog()
Gets sog.
|
int |
getSpare()
Gets spare.
|
int |
getSubMessage()
Gets sub message.
|
int |
getSyncState()
Gets sync state.
|
int |
getUtcSec()
Gets utc sec.
|
void |
parse(BinArray binArray)
Base parse method to be called by all extending classes
|
void |
setAltitude(int altitude)
Sets altitude.
|
void |
setAssigned(int assigned)
Sets assigned.
|
void |
setCog(int cog)
Sets cog.
|
void |
setCommStateSelectorFlag(int commStateSelectorFlag)
Sets comm state selector flag.
|
void |
setDte(int dte)
Sets dte.
|
void |
setPos(AisPosition pos)
Sets pos.
|
void |
setPosAcc(int posAcc)
Sets pos acc.
|
void |
setRaim(int raim)
Sets raim.
|
void |
setRegionalReserved(int regionalReserved)
Sets regional reserved.
|
void |
setSlotTimeout(int slotTimeout)
Sets slot timeout.
|
void |
setSog(int sog)
Sets sog.
|
void |
setSpare(int spare)
Sets spare.
|
void |
setSubMessage(int subMessage)
Sets sub message.
|
void |
setSyncState(int syncState)
Sets sync state.
|
void |
setUtcSec(int utcSec)
Sets utc sec.
|
String |
toString() |
encode, getInstance, getMsgId, getRepeat, getSourceTag, getTags, getTargetType, getUserId, getValidPosition, getVdm, reassemble, setRepeat, setTag, setTags, setUserId, trimTextpublic AisMessage9()
public AisMessage9(Vdm vdm) throws AisMessageException, SixbitException
vdm - the vdmAisMessageException - the ais message exceptionSixbitException - the sixbit exceptionpublic void parse(BinArray binArray) throws AisMessageException, SixbitException
AisMessageparse in class AisMessagebinArray - the bin arrayAisMessageException - the ais message exceptionSixbitException - the sixbit exceptionpublic SixbitEncoder getEncoded()
AisMessagegetEncoded in class AisMessagepublic String toString()
toString in class AisMessagepublic int getAltitude()
public void setAltitude(int altitude)
altitude - the altitudepublic int getSog()
public void setSog(int sog)
sog - the sogpublic int getPosAcc()
IPositionMessagegetPosAcc in interface IPositionMessagepublic void setPosAcc(int posAcc)
posAcc - the pos accpublic AisPosition getPos()
IPositionMessagegetPos in interface IPositionMessagepublic void setPos(AisPosition pos)
pos - the pospublic int getCog()
public void setCog(int cog)
cog - the cogpublic int getUtcSec()
public void setUtcSec(int utcSec)
utcSec - the utc secpublic int getRegionalReserved()
public void setRegionalReserved(int regionalReserved)
regionalReserved - the regional reservedpublic int getDte()
public void setDte(int dte)
dte - the dtepublic int getSpare()
public void setSpare(int spare)
spare - the sparepublic int getAssigned()
public void setAssigned(int assigned)
assigned - the assignedpublic int getRaim()
public void setRaim(int raim)
raim - the raimpublic int getCommStateSelectorFlag()
public void setCommStateSelectorFlag(int commStateSelectorFlag)
commStateSelectorFlag - the comm state selector flagpublic int getSyncState()
public void setSyncState(int syncState)
syncState - the sync statepublic int getSlotTimeout()
public void setSlotTimeout(int slotTimeout)
slotTimeout - the slot timeoutpublic int getSubMessage()
public void setSubMessage(int subMessage)
subMessage - the sub messageCopyright © 2011–2019 Danish Maritime Authority. All rights reserved.