public class AisMessage19 extends AisStaticCommon implements IVesselPositionMessage
Extended Class B equipment position report as defined by ITU-R M.1371-4
callsign, dimBow, dimPort, dimStarboard, dimStern, name, shipTypemsgId, repeat, userId, VALID_MESSAGE_TYPES, vdm| Constructor and Description |
|---|
AisMessage19()
Instantiates a new Ais message 19.
|
AisMessage19(Vdm vdm)
Instantiates a new Ais message 19.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCog()
Course over ground
|
int |
getDte()
Gets dte.
|
SixbitEncoder |
getEncoded()
Abstract method to be implemented by all extending classes
|
int |
getModeFlag()
Gets mode flag.
|
AisPosition |
getPos()
Get position
|
int |
getPosAcc()
Position accuracy
|
int |
getPosType()
Gets pos type.
|
int |
getRaim()
Get raim
|
int |
getRaimFlag()
Gets raim flag.
|
int |
getSog()
Speed over ground
|
int |
getSpare1()
Gets spare 1.
|
int |
getSpare2()
Gets spare 2.
|
int |
getSpare3()
Gets spare 3.
|
int |
getTrueHeading()
True heading
|
int |
getUtcSec()
UTC sec
|
dk.dma.enav.model.geometry.Position |
getValidPosition()
Returns a valid position if this message has a valid position, otherwise null.
|
boolean |
isCogValid()
Course over ground valid
|
boolean |
isHeadingValid()
Heading valid
|
boolean |
isPositionValid()
Determine if position is valid
|
boolean |
isSogValid()
Speed over ground valid
|
protected void |
parse(BinArray binArray)
Base parse method to be called by all extending classes
|
void |
setCog(int cog)
Sets cog.
|
void |
setDte(int dte)
Sets dte.
|
void |
setModeFlag(int modeFlag)
Sets mode flag.
|
void |
setPos(AisPosition pos)
Sets pos.
|
void |
setPosAcc(int posAcc)
Sets pos acc.
|
void |
setPosType(int posType)
Sets pos type.
|
void |
setRaimFlag(int raimFlag)
Sets raim flag.
|
void |
setSog(int sog)
Sets sog.
|
void |
setSpare1(int spare1)
Sets spare 1.
|
void |
setSpare2(int spare2)
Sets spare 2.
|
void |
setSpare3(int spare3)
Sets spare 3.
|
void |
setTrueHeading(int trueHeading)
Sets true heading.
|
void |
setUtcSec(int utcSec)
Sets utc sec.
|
String |
toString() |
getCallsign, getDimBow, getDimPort, getDimStarboard, getDimStern, getName, getShipType, setCallsign, setDimBow, setDimPort, setDimStarboard, setDimStern, setName, setShipTypeencode, getInstance, getMsgId, getRepeat, getSourceTag, getTags, getTargetType, getUserId, getVdm, reassemble, setRepeat, setTag, setTags, setUserId, trimTextpublic AisMessage19()
public AisMessage19(Vdm vdm) throws AisMessageException, SixbitException
vdm - the vdmAisMessageException - the ais message exceptionSixbitException - the sixbit exceptionprotected 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 getSpare1()
public void setSpare1(int spare1)
spare1 - the spare 1public int getSog()
IVesselPositionMessagegetSog in interface IVesselPositionMessagepublic void setSog(int sog)
sog - the sogpublic int getPosAcc()
IPositionMessagegetPosAcc in interface IPositionMessagepublic void setPosAcc(int posAcc)
posAcc - the pos accpublic dk.dma.enav.model.geometry.Position getValidPosition()
AisMessagegetValidPosition in interface IVesselPositionMessagegetValidPosition in class AisMessagepublic AisPosition getPos()
IPositionMessagegetPos in interface IPositionMessagepublic void setPos(AisPosition pos)
pos - the pospublic int getCog()
IVesselPositionMessagegetCog in interface IVesselPositionMessagepublic void setCog(int cog)
cog - the cogpublic int getTrueHeading()
IVesselPositionMessagegetTrueHeading in interface IVesselPositionMessagepublic void setTrueHeading(int trueHeading)
trueHeading - the true headingpublic int getUtcSec()
IVesselPositionMessagegetUtcSec in interface IVesselPositionMessagepublic void setUtcSec(int utcSec)
utcSec - the utc secpublic int getSpare2()
public void setSpare2(int spare2)
spare2 - the spare 2public int getPosType()
public void setPosType(int posType)
posType - the pos typepublic int getRaimFlag()
public void setRaimFlag(int raimFlag)
raimFlag - the raim flagpublic int getDte()
public void setDte(int dte)
dte - the dtepublic int getModeFlag()
public void setModeFlag(int modeFlag)
modeFlag - the mode flagpublic int getSpare3()
public void setSpare3(int spare3)
spare3 - the spare 3public boolean isPositionValid()
IVesselPositionMessageisPositionValid in interface IVesselPositionMessagepublic boolean isCogValid()
IVesselPositionMessageisCogValid in interface IVesselPositionMessagepublic boolean isSogValid()
IVesselPositionMessageisSogValid in interface IVesselPositionMessagepublic boolean isHeadingValid()
IVesselPositionMessageisHeadingValid in interface IVesselPositionMessagepublic int getRaim()
IVesselPositionMessagegetRaim in interface IVesselPositionMessageCopyright © 2011–2019 Danish Maritime Authority. All rights reserved.