Class GPSOriginIterator

java.lang.Object
Array.streamerOrigin.OriginIterator
Array.streamerOrigin.GPSOriginIterator
All Implemented Interfaces:
Iterator<GpsData>, ListIterator<GpsData>

public class GPSOriginIterator extends OriginIterator
This is more complicated than the stramerDataIterator since it needs to combine data from two sources. First it needs to find the most appropriate streamer data for the given time, then it needs to find the closest GPS data to that time, then it needs to combine the two. The main iteration will actually be over GPS data, then for each GPS position find the closest (or interpolate) streamer data, then make a new streamer data unit that contains the gps data to return to the loacliser.
Author:
Doug Gillespie
  • Constructor Details Link icon

    • GPSOriginIterator Link icon

      public GPSOriginIterator(Streamer streamer, int whereFrom, GPSDataBlock gpsDataBlock)
  • Method Details Link icon

    • hasNext Link icon

      public boolean hasNext()
    • next Link icon

      public GpsData next()
    • hasPrevious Link icon

      public boolean hasPrevious()
    • previous Link icon

      public GpsData previous()
    • nextIndex Link icon

      public int nextIndex()
    • previousIndex Link icon

      public int previousIndex()
    • remove Link icon

      public void remove()
    • set Link icon

      public void set(GpsData e)
    • add Link icon

      public void add(GpsData e)