Module dk.tbsalling.ais.messages
Class AddressedBinaryMessage
java.lang.Object
dk.tbsalling.aismessages.ais.messages.AISMessage
dk.tbsalling.aismessages.ais.messages.AddressedBinaryMessage
- All Implemented Interfaces:
CachedDecodedValues,Serializable
public class AddressedBinaryMessage extends AISMessage
an addressed point-to-point message with unspecified binary payload. The St.
Lawrence Seaway AIS system and the USG PAWSS system use this payload for
local extension messages. It is variable in length up to a maximum of 1008
bits (up to 5 AIVDM sentence payloads).
- Author:
- tbsalling
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description AddressedBinaryMessage(dk.tbsalling.aismessages.nmea.messages.NMEAMessage[] nmeaMessages)protectedAddressedBinaryMessage(dk.tbsalling.aismessages.nmea.messages.NMEAMessage[] nmeaMessages, String bitString) -
Method Summary
Modifier and Type Method Description protected voidcheckAISMessage()This method performs a rudimentary sanity check of the AIS data payload contained in the NMEA sentence(s).ApplicationSpecificMessagegetApplicationSpecificMessage()StringgetBinaryData()IntegergetDesignatedAreaCode()MMSIgetDestinationMmsi()IntegergetFunctionalId()AISMessageTypegetMessageType()BooleangetRetransmit()IntegergetSequenceNumber()intgetSpare()StringtoString()Methods inherited from class dk.tbsalling.aismessages.ais.messages.AISMessage
create, create, dataFields, decodePayloadToBitString, digest, equals, getBits, getBitString, getMetadata, getNmeaMessages, getNmeaTagBlock, getNumberOfBits, getRepeatIndicator, getSourceMmsi, getZeroBitStuffedString, hashCode, isValid, setMetadata, setTagBlock, tagBlockToStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface dk.tbsalling.aismessages.ais.messages.CachedDecodedValues
getDecodedValue, getDecodedValueByWeakReference
-
Constructor Details
-
AddressedBinaryMessage
public AddressedBinaryMessage(dk.tbsalling.aismessages.nmea.messages.NMEAMessage[] nmeaMessages) -
AddressedBinaryMessage
protected AddressedBinaryMessage(dk.tbsalling.aismessages.nmea.messages.NMEAMessage[] nmeaMessages, String bitString)
-
-
Method Details
-
checkAISMessage
protected void checkAISMessage()Description copied from class:AISMessageThis method performs a rudimentary sanity check of the AIS data payload contained in the NMEA sentence(s). These tests are mainly based on bitwise message length, even though other types of tests may occur.- Overrides:
checkAISMessagein classAISMessage
-
getMessageType
- Specified by:
getMessageTypein classAISMessage
-
getSequenceNumber
-
getDestinationMmsi
-
getRetransmit
-
getSpare
public int getSpare() -
getDesignatedAreaCode
-
getFunctionalId
-
getBinaryData
-
getApplicationSpecificMessage
-
toString
- Overrides:
toStringin classAISMessage
-