Package au.gov.amsa.ais
Class NmeaMessageExactEarthTimestamp
- java.lang.Object
-
- au.gov.amsa.ais.NmeaMessageExactEarthTimestamp
-
public class NmeaMessageExactEarthTimestamp extends java.lang.ObjectParses a custom ExactEarth NMEA line for AMSA so that we can obtain the actual timestamp of an AIS Position Report (types 1,2,3).- Author:
- dxm
-
-
Constructor Summary
Constructors Constructor Description NmeaMessageExactEarthTimestamp(java.lang.String line)Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetFollowingSequenceChecksum()Returns the checksum of the message that this timestamp line refers to.longgetTime()Returns the time in epoch ms.static booleanisExactEarthTimestamp(java.lang.String line)Returns true if the given line is a custom ExactEarth timestamp.
-
-
-
Method Detail
-
isExactEarthTimestamp
public static boolean isExactEarthTimestamp(java.lang.String line)
Returns true if the given line is a custom ExactEarth timestamp.- Parameters:
line-- Returns:
-
getTime
public long getTime()
Returns the time in epoch ms.- Returns:
-
getFollowingSequenceChecksum
public java.lang.String getFollowingSequenceChecksum()
Returns the checksum of the message that this timestamp line refers to.- Returns:
-
-