public class AisMessage10 extends AisMessage
| Modifier and Type | Field and Description |
|---|---|
protected int |
destination
Request destination MMSI.
|
msgId, repeat, userId, VALID_MESSAGE_TYPES, vdm| Constructor and Description |
|---|
AisMessage10()
Instantiates a new Ais message 10.
|
AisMessage10(Vdm vdm)
Instantiates a new Ais message 10.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getDestination()
Gets destination.
|
SixbitEncoder |
getEncoded()
Abstract method to be implemented by all extending classes
|
int |
getSpare1()
Gets spare 1.
|
int |
getSpare2()
Gets spare 2.
|
void |
parse(BinArray binArray)
Base parse method to be called by all extending classes
|
void |
setDestination(int destination)
Sets destination.
|
void |
setSpare1(int spare1)
Sets spare 1.
|
void |
setSpare2(int spare2)
Sets spare 2.
|
String |
toString() |
encode, getInstance, getMsgId, getRepeat, getSourceTag, getTags, getTargetType, getUserId, getValidPosition, getVdm, reassemble, setRepeat, setTag, setTags, setUserId, trimTextpublic AisMessage10()
public AisMessage10(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 getSpare1()
public void setSpare1(int spare1)
spare1 - the spare 1public int getDestination()
public void setDestination(int destination)
destination - the destinationpublic int getSpare2()
public void setSpare2(int spare2)
spare2 - the spare 2Copyright © 2011–2019 Danish Maritime Authority. All rights reserved.