public abstract class UTCDateResponseMessage extends AisMessage implements IPositionMessage
Base station report as defined by ITU-R M.1371-4
msgId, repeat, userId, VALID_MESSAGE_TYPES, vdm| Modifier | Constructor and Description |
|---|---|
protected |
UTCDateResponseMessage(int msgId)
Instantiates a new Utc date response message.
|
|
UTCDateResponseMessage(Vdm vdm)
Instantiates a new Utc date response message.
|
| Modifier and Type | Method and Description |
|---|---|
Date |
getDate()
Gets date.
|
SixbitEncoder |
getEncoded()
Abstract method to be implemented by all extending classes
|
AisPosition |
getPos()
Get position
|
int |
getPosAcc()
Position accuracy
|
int |
getPosType()
Gets pos type.
|
int |
getRaim()
Gets raim.
|
int |
getSlotTimeout()
Gets slot timeout.
|
int |
getSpare()
Gets spare.
|
int |
getSubMessage()
Gets sub message.
|
int |
getSyncState()
Gets sync state.
|
int |
getTransmissionControl()
Gets transmission control.
|
int |
getUtcDay()
Gets utc day.
|
int |
getUtcHour()
Gets utc hour.
|
int |
getUtcMinute()
Gets utc minute.
|
int |
getUtcMonth()
Gets utc month.
|
int |
getUtcSecond()
Gets utc second.
|
int |
getUtcYear()
Gets utc year.
|
dk.dma.enav.model.geometry.Position |
getValidPosition()
Returns a valid position if this message has a valid position, otherwise null.
|
void |
parse()
Parse.
|
void |
setPos(AisPosition pos)
Sets pos.
|
void |
setPosAcc(int posAcc)
Sets pos acc.
|
void |
setPosType(int posType)
Sets pos type.
|
void |
setRaim(int raim)
Sets raim.
|
void |
setSlotTimeout(int slotTimeout)
Sets slot timeout.
|
void |
setSpare(int spare)
Sets spare.
|
void |
setSubMessage(int subMessage)
Sets sub message.
|
void |
setSyncState(int syncState)
Sets sync state.
|
void |
setTransmissionControl(int transmissionControl)
Sets transmission control.
|
void |
setUtcDay(int utcDay)
Sets utc day.
|
void |
setUtcHour(int utcHour)
Sets utc hour.
|
void |
setUtcMinute(int utcMinute)
Sets utc minute.
|
void |
setUtcMonth(int utcMonth)
Sets utc month.
|
void |
setUtcSecond(int utcSecond)
Sets utc second.
|
void |
setUtcYear(int utcYear)
Sets utc year.
|
String |
toString() |
encode, getInstance, getMsgId, getRepeat, getSourceTag, getTags, getTargetType, getUserId, getVdm, parse, reassemble, setRepeat, setTag, setTags, setUserId, trimTextprotected UTCDateResponseMessage(int msgId)
msgId - the msg idpublic UTCDateResponseMessage(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 getUtcYear()
public void setUtcYear(int utcYear)
utcYear - the utc yearpublic int getUtcMonth()
public void setUtcMonth(int utcMonth)
utcMonth - the utc monthpublic int getUtcDay()
public void setUtcDay(int utcDay)
utcDay - the utc daypublic int getUtcHour()
public void setUtcHour(int utcHour)
utcHour - the utc hourpublic int getUtcMinute()
public void setUtcMinute(int utcMinute)
utcMinute - the utc minutepublic int getUtcSecond()
public void setUtcSecond(int utcSecond)
utcSecond - the utc secondpublic Date getDate()
public int getPosAcc()
IPositionMessagegetPosAcc in interface IPositionMessagepublic void setPosAcc(int posAcc)
posAcc - the pos accpublic dk.dma.enav.model.geometry.Position getValidPosition()
AisMessagegetValidPosition in class AisMessagepublic AisPosition getPos()
IPositionMessagegetPos in interface IPositionMessagepublic void setPos(AisPosition pos)
pos - the pospublic int getPosType()
public void setPosType(int posType)
posType - the pos typepublic int getTransmissionControl()
public void setTransmissionControl(int transmissionControl)
transmissionControl - the transmissionControl to setpublic int getSpare()
public void setSpare(int spare)
spare - the sparepublic int getRaim()
public void setRaim(int raim)
raim - the raimpublic 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 messagepublic String toString()
toString in class AisMessageCopyright © 2011–2019 Danish Maritime Authority. All rights reserved.