Package NMEA

Class AcquireNmeaData

All Implemented Interfaces:
ActionListener, EventListener, ModuleStatusManager, PamObserver, ProcessAnnotator

public class AcquireNmeaData extends PamProcess implements ActionListener, ModuleStatusManager
Author:
Doug Gillespie, Dave McLaren, Paul Redmond

PamProcess for NMEA data acquisition.

  • Method Details

    • makeSimThread

      public void makeSimThread()
    • makeUdpThread

      public void makeUdpThread()
    • makeMulticastThread

      public void makeMulticastThread()
    • makeSerialThread

      public void makeSerialThread()
    • startNmeaSource

      public void startNmeaSource(NMEAParameters.NmeaSources sourceType)
    • actionPerformed

      public void actionPerformed(ActionEvent event)
      Specified by:
      actionPerformed in interface ActionListener
    • createStringChecksum

      public static byte createStringChecksum(StringBuffer nmeaString)
      Calculate the correct string buffer for an NMEA sentence.

      The checksum is an exclusive OR of all characters between, but not including the first ($ or !) and the * preceding the checksum

      Parameters:
      nmeaString - NMEA sentence
      Returns:
      checksum value.
    • getStringChecksum

      public static byte getStringChecksum(StringBuffer nmeaString)
      Gets the checksum from the end of a string. The is the two characters that follow the *
      Parameters:
      nmeaString - NMEA string
      Returns:
      Checksum value
    • noteNewSettings

      public void noteNewSettings()
      Specified by:
      noteNewSettings in interface PamObserver
      Overrides:
      noteNewSettings in class PamProcess
    • firstRequiredTime

      public long firstRequiredTime(PamObservable o, Object arg)
    • setSampleRate

      public void setSampleRate(float sampleRate, boolean notify)
      Description copied from interface: PamObserver
      New sample rate
      Specified by:
      setSampleRate in interface PamObserver
      Overrides:
      setSampleRate in class PamProcess
      Parameters:
      notify - Notify other PamObservers and PamObservables in the chain.
    • pamStart

      public void pamStart()
      Description copied from class: PamProcess
      Called for each process to tell it to start (may not be necessary for processes which are listening for data anyway).
      Specified by:
      pamStart in class PamProcess
    • pamStop

      public void pamStop()
      Description copied from class: PamProcess
      Stops the process.
      Specified by:
      pamStop in class PamProcess
    • getOutputDatablock

      public NMEADataBlock getOutputDatablock()
      Returns:
      Returns the outputDatablock.
    • getStatus

      public ModuleStatus getStatus()
      Specified by:
      getStatus in interface ModuleStatusManager