public class AisNmeaMessage extends Object
Constructor and Description |
---|
AisNmeaMessage(NmeaMessage nmea) |
AisNmeaMessage(String line)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static AisNmeaMessage |
from(String line) |
String |
getChannel()
Returns the channel.
|
String |
getChecksum()
Returns the checksum (last field in the NMEA line).
|
String |
getFormat()
Returns the NMEA format (from the first column after the tag block if it
exists).
|
int |
getFragmentCount()
Returns the count of fragments.
|
int |
getFragmentNumber()
Returns the current fragment number.
|
AisMessage |
getMessage()
Returns the parsed contents of column 5 of the AIS NMEA line.
|
NmeaMessage |
getNmea() |
int |
getPadBits() |
String |
getSequentialMessageId()
Returns the sequential message id.
|
Talker |
getTalker()
Returns the
Talker corresponding to the first two characters of
the message format type (e.g. |
Long |
getTime()
Returns the tag block unix time value.
|
Timestamped<AisMessage> |
getTimestampedMessage() |
Timestamped<AisMessage> |
getTimestampedMessage(long defaultTime) |
public AisNmeaMessage(String line)
line
- is an NMEA line containing an AIS message.public AisNmeaMessage(NmeaMessage nmea)
public static AisNmeaMessage from(String line)
public Long getTime()
public Talker getTalker()
Talker
corresponding to the first two characters of
the message format type (e.g. AIVDM -> AI).public String getFormat()
public int getFragmentCount()
public int getFragmentNumber()
public String getSequentialMessageId()
public String getChannel()
public int getPadBits()
public AisMessage getMessage()
public Timestamped<AisMessage> getTimestampedMessage(long defaultTime)
public Timestamped<AisMessage> getTimestampedMessage()
public String getChecksum()
public NmeaMessage getNmea()
Copyright © 2020. All rights reserved.