java.lang.Object
dk.tbsalling.aismessages.ais.messages.AISMessage
dk.tbsalling.aismessages.ais.messages.Interrogation
- All Implemented Interfaces:
CachedDecodedValues,Serializable
public class Interrogation extends AISMessage
Used by a base station to query one or two other AIS transceivers for status messages of specified types.
- Author:
- tbsalling
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description Interrogation(dk.tbsalling.aismessages.nmea.messages.NMEAMessage[] nmeaMessages)protectedInterrogation(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).MMSIgetInterrogatedMmsi1()MMSIgetInterrogatedMmsi2()AISMessageTypegetMessageType()IntegergetOffset1_1()IntegergetOffset1_2()IntegergetOffset2_1()IntegergetType1_1()IntegergetType1_2()IntegergetType2_1()StringtoString()Methods inherited from class dk.tbsalling.aismessages.ais.messages.AISMessage
create, 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
-
Interrogation
public Interrogation(dk.tbsalling.aismessages.nmea.messages.NMEAMessage[] nmeaMessages) -
Interrogation
protected Interrogation(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
-
getInterrogatedMmsi1
-
getType1_1
-
getOffset1_1
-
getType1_2
-
getOffset1_2
-
getInterrogatedMmsi2
-
getType2_1
-
getOffset2_1
-
toString
- Overrides:
toStringin classAISMessage
-