public class NmeaMessage extends Object
Constructor and Description |
---|
NmeaMessage(LinkedHashMap<String,String> tags,
List<String> items,
String checksum)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
calculateChecksum()
Returns a recalculated checksum.
|
Long |
getArrivalTimeMillis() |
String |
getChecksum() |
String |
getDestination()
Returns the 'd:' value from the tag block.
|
List<String> |
getItems()
Returns a list of the NMEA items from the columns after the tag block.
|
Integer |
getLineCount()
Returns the 'n:' value from the tag block.
|
Long |
getRelativeTimeMillis()
Returns the 'r:' value from the tag block times 1000 to convert to
millis.
|
Integer |
getSentenceCount() |
String |
getSentenceGroupId() |
String |
getSentenceGroupingFromTagBlock()
Returns the 'g:' value from the tag block.
|
Integer |
getSentenceNumber() |
String |
getSource()
Returns the 's:' value from the tag block.
|
LinkedHashMap<String,String> |
getTags() |
Talker |
getTalker() |
String |
getText()
Returns the 't:' value from the tag block.
|
Long |
getUnixTimeMillis()
Returns the 'c:' value from the tag block times 1000 to convert to
millis.
|
boolean |
isSingleSentence() |
String |
toLine() |
public NmeaMessage(LinkedHashMap<String,String> tags, List<String> items, String checksum)
tags
- is a list of tags from the tag block section of an NMEA
messageitems
- is the list of columns from the NMEA message (not including
the tag block) but including the checksum on the final column.public String getSource()
public Long getUnixTimeMillis()
public String getDestination()
public String getSentenceGroupingFromTagBlock()
public Integer getLineCount()
public Long getRelativeTimeMillis()
public String getText()
public List<String> getItems()
public LinkedHashMap<String,String> getTags()
public Talker getTalker()
public String toLine()
public Integer getSentenceNumber()
public Integer getSentenceCount()
public String getSentenceGroupId()
public String calculateChecksum()
public String getChecksum()
public boolean isSingleSentence()
public Long getArrivalTimeMillis()
Copyright © 2020. All rights reserved.