Class StreamerDataIterator

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

public class StreamerDataIterator extends OriginIterator
Iterator for moving through streamer data. Hooks itself to the streamer data block, but mucks with the iteration a bit to only return data for a specific streamer.

Gets used by the StaticOriginMethod, which only uses the streamer position data but also can be use by the GPSOriginMethod which may want to pull in additional streamer information to add to the GPS data.

Author:
Doug Gillespie
  • Constructor Details

    • StreamerDataIterator

      public StreamerDataIterator(int whereFrom, Streamer streamer)
  • Method Details

    • hasNext

      public boolean hasNext()
    • next

      public GpsData next()
    • hasPrevious

      public boolean hasPrevious()
      Create a complete origin position. This basically means adding in heading pitch and roll information to the gps data unit that was returned from the main streamer settings.
      Parameters:
      streamerData - streamer data (a Streamer)
      Returns:
      a GPS data unit complete with head, pitch and roll data.
    • previous

      public GpsData previous()
    • nextIndex

      public int nextIndex()
    • previousIndex

      public int previousIndex()
    • remove

      public void remove()
    • set

      public void set(GpsData e)
    • add

      public void add(GpsData e)