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 Link icon

    • StreamerDataIterator Link icon

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

    • hasNext Link icon

      public boolean hasNext()
    • next Link icon

      public GpsData next()
    • hasPrevious Link icon

      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 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)