Package nmeaEmulator

Interface NMEAEmulator

All Known Implementing Classes:
AISDataBlock, GPSDataBlock

public interface NMEAEmulator
Interface to assist a datablock in setting up emulated NMEA data. For something like the GPs, this may be very simple, in that it just has to convert the data units into String.

however for AIS, it will need to set up a database query to extract the original AIVDM string data since these are not stored in the actual data blocks.

Author:
Doug Gillespie
  • Method Summary

    Modifier and Type
    Method
    Description
     
    boolean
    prepareDataSource(long[] timeLimits, long timeOffset)
    Prepare the data to be read into the emulator.
  • Method Details

    • prepareDataSource

      boolean prepareDataSource(long[] timeLimits, long timeOffset)
      Prepare the data to be read into the emulator.

      The task may be as simple as setting up an interator to go through the data already read into the datablock or it may involve setting up a new database query to get back to raw data.

      Parameters:
      timeLimits - time limits for the emulation
      timeOffset - time offset - between when the data were collected and the time they should be emulated at.
      Returns:
      true if OK
    • getNextData

      EmulatedData getNextData()
      Returns:
      the next emulated data, or null if there are no more.