Interface GPSSentenceParser

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface GPSSentenceParser
Interface defining a custom parser for a particular NMEA-0183 sentence.
Author:
Andrew Pavlin, KA2DDO
  • Method Details

    • parseNMEA0183DataLine

      Object parseNMEA0183DataLine(String line, GpsFix fix, SatelliteCatalog satCatalog, String source)
      Parse an NMEA-0183 standard data sentence into GPS data structure values.
      Parameters:
      line - String line to parse
      fix - GpsFix data structure to populate, or null if a new one should be allocated
      satCatalog - SatelliteCatalog data structure to populate, or null if a new one should be allocated
      source - callsign of source (used only for error messages)
      Returns:
      populated data structure if valid sentence parsed, or null if parse failed or does not produce an output