public class AisMessage3 extends AisPositionMessage
Special position report, response to interrogation;(Class A shipborne mobile equipment)
This class handles the content of an AIS class A transponders general position report as defined by ITU-R M.1371-4.
Generally the position report is handled in the super class but there are some ITDMA specific purposes of this class.
cog, navStatus, pos, posAcc, raim, rot, sog, spare, specialManIndicator, syncState, trueHeading, utcSecmsgId, repeat, userId, VALID_MESSAGE_TYPES, vdm| Constructor and Description |
|---|
AisMessage3()
Instantiates a new Ais message 3.
|
AisMessage3(Vdm vdm)
Instantiates a new Ais message 3.
|
| Modifier and Type | Method and Description |
|---|---|
SixbitEncoder |
getEncoded()
Abstract method to be implemented by all extending classes
|
int |
getKeep()
Gets keep.
|
int |
getNumSlots()
Gets num slots.
|
int |
getSlotIncrement()
Gets slot increment.
|
void |
parse()
Parse.
|
void |
setKeep(int keep)
Sets keep.
|
void |
setNumSlots(int numSlots)
Sets num slots.
|
void |
setSlotIncrement(int slotIncrement)
Sets slot increment.
|
String |
toString() |
encode, getCog, getNavStatus, getPos, getPosAcc, getRaim, getRot, getSensorRot, getSog, getSpare, getSpecialManIndicator, getSyncState, getTrueHeading, getUtcSec, getValidPosition, isCogValid, isHeadingValid, isPositionValid, isRotValid, isSogValid, parse, setCog, setNavStatus, setPos, setPosAcc, setRaim, setRot, setSog, setSpare, setSpecialManIndicator, setSyncState, setTrueHeading, setUtcSecgetInstance, getMsgId, getRepeat, getSourceTag, getTags, getTargetType, getUserId, getVdm, reassemble, setRepeat, setTag, setTags, setUserId, trimTextpublic AisMessage3()
public AisMessage3(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 getSlotIncrement()
public int getNumSlots()
public int getKeep()
public void setSlotIncrement(int slotIncrement)
slotIncrement - the slot incrementpublic void setNumSlots(int numSlots)
numSlots - the num slotspublic void setKeep(int keep)
keep - the keeppublic String toString()
toString in class AisPositionMessageCopyright © 2011–2019 Danish Maritime Authority. All rights reserved.