Package Array.streamerOrigin
Class GPSOriginIterator
java.lang.Object
Array.streamerOrigin.OriginIterator
Array.streamerOrigin.GPSOriginIterator
- All Implemented Interfaces:
Iterator<GpsData>
,ListIterator<GpsData>
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 Summary
ConstructorDescriptionGPSOriginIterator
(Streamer streamer, int whereFrom, GPSDataBlock gpsDataBlock) -
Method Summary
Methods inherited from class Array.streamerOrigin.OriginIterator
movePreceeding
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
GPSOriginIterator
-
-
Method Details
-
hasNext
public boolean hasNext() -
next
-
hasPrevious
public boolean hasPrevious() -
previous
-
nextIndex
public int nextIndex() -
previousIndex
public int previousIndex() -
remove
public void remove() -
set
-
add
-