Module dk.tbsalling.ais.messages
Class LongRangeBroadcastMessage
java.lang.Object
dk.tbsalling.aismessages.ais.messages.AISMessage
dk.tbsalling.aismessages.ais.messages.LongRangeBroadcastMessage
- All Implemented Interfaces:
CachedDecodedValues,DataReport,DynamicDataReport,Serializable
public class LongRangeBroadcastMessage extends AISMessage implements DynamicDataReport
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description LongRangeBroadcastMessage(dk.tbsalling.aismessages.nmea.messages.NMEAMessage[] nmeaMessages)protectedLongRangeBroadcastMessage(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).FloatgetCourseOverGround()FloatgetLatitude()FloatgetLongitude()AISMessageTypegetMessageType()NavigationStatusgetNavigationalStatus()BooleangetPositionAccuracy()IntegergetPositionLatency()BooleangetRaim()IntegergetRawCourseOverGround()IntegergetRawLatitude()IntegergetRawLongitude()IntegergetRawSpeedOverGround()IntegergetSpare()FloatgetSpeedOverGround()TransponderClassgetTransponderClass()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
-
LongRangeBroadcastMessage
public LongRangeBroadcastMessage(dk.tbsalling.aismessages.nmea.messages.NMEAMessage[] nmeaMessages) -
LongRangeBroadcastMessage
protected LongRangeBroadcastMessage(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
-
getTransponderClass
- Specified by:
getTransponderClassin interfaceDataReport
-
getPositionAccuracy
- Returns:
- true if position accuracy lte 10m; false otherwise.
-
getRaim
-
getNavigationalStatus
-
getLongitude
- Specified by:
getLongitudein interfaceDynamicDataReport
-
getRawLongitude
- Specified by:
getRawLongitudein interfaceDynamicDataReport
-
getLatitude
- Specified by:
getLatitudein interfaceDynamicDataReport
-
getRawLatitude
- Specified by:
getRawLatitudein interfaceDynamicDataReport
-
getSpeedOverGround
- Specified by:
getSpeedOverGroundin interfaceDynamicDataReport- Returns:
- Knots (0-62); 63 = not available = default
-
getRawSpeedOverGround
- Specified by:
getRawSpeedOverGroundin interfaceDynamicDataReport
-
getCourseOverGround
- Specified by:
getCourseOverGroundin interfaceDynamicDataReport- Returns:
- Degrees (0-359); 511 = not available = default
-
getRawCourseOverGround
- Specified by:
getRawCourseOverGroundin interfaceDynamicDataReport
-
getPositionLatency
- Returns:
- 0 if reported position latency is less than 5 seconds; 1 if reported position latency is greater than 5 seconds = default
-
getSpare
-
toString
- Overrides:
toStringin classAISMessage
-