Package Array.streamerOrigin
Class HydrophoneOriginMethod
java.lang.Object
Array.streamerOrigin.HydrophoneOriginMethod
- All Implemented Interfaces:
 Cloneable
- Direct Known Subclasses:
 GPSOriginMethod,StaticOriginMethod
Methods for getting streamer origins. This is now separated out from the HydrophoneLocator
 interface - though that is also used and will in fact call back into the appropriate HydrophoneOriginMethod
 to work out where the hell it is.This is to incorporate functionality for remote buoys, hydrophones on other
 ships (from which we get AIS data), etc. The main thing that a HydrophoneOriginMethod has to do is to be 
 able to provide an iterator to a list of data units which contain position heading and other relevant data
 that the locators themselves can work through to get the array positions at a given time.
- Author:
 - Doug Gillespie
 
- 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionprotected HydrophoneOriginMethodclone()intGet allowable interpolation methods for this type of originGet a dialog panel component to include in the other settings configuration dialogs.abstract OriginIteratorgetGpsDataIterator(int wherefrom) Get an iterator for stepping through gps data, but only selecting from a particular streamer if more than one streamer / buoy is available.abstract StreamerDataUnitGet the latest streamer data unit.abstract StringgetName()abstract OriginSettingsprotected PamArrayprotected StreamergetStreamerData(long timeMillis) Get the gps data closest to a particular time.abstract Objectabstract booleanprepare()prepare the method - called from the controllers notify model changed or whenever anything else happens that might require some preparatory actionabstract voidsetOriginSettings(OriginSettings originSettings) protected GpsDatatoGpsData(StreamerDataUnit streamerDataUnit) Get the gps data out of streamer data, but return null if the streamer data is nulltoString() 
- 
Field Details
- 
streamer
 - 
pamArray
 
 - 
 - 
Constructor Details
- 
HydrophoneOriginMethod
 
 - 
 - 
Method Details
- 
getName
 - 
toString
 - 
getDialogComponent
Get a dialog panel component to include in the other settings configuration dialogs.- Returns:
 - Component to enter into a larger dialog
 
 - 
getOriginSettings
 - 
setOriginSettings
 - 
prepare
public abstract boolean prepare()prepare the method - called from the controllers notify model changed or whenever anything else happens that might require some preparatory action - 
getLastStreamerData
Get the latest streamer data unit.Origin methods MUST return something for this, even if they don't have any data units, they should just make one up from the stored streamer data.
- Returns:
 - the latest streamer data unit.
 
 - 
getStreamerData
Get the gps data closest to a particular time.Note that some methods, might always opt for the preceeding, some may take the closest.
- Parameters:
 timeMillis- time in milliseconds- Returns:
 - closest gps data
 
 - 
toGpsData
Get the gps data out of streamer data, but return null if the streamer data is null- Parameters:
 streamerDataUnit-- Returns:
 
 - 
clone
 - 
getGpsDataIterator
Get an iterator for stepping through gps data, but only selecting from a particular streamer if more than one streamer / buoy is available.- Parameters:
 wherefrom- from end, start, etc.- Returns:
 - an iterator, possibly containing special functionality to deal with data from specific streamers.
 
 - 
getSynchronizationObject
 - 
getStreamer
- Returns:
 - the streamer
 
 - 
getPamArray
- Returns:
 - the pamArray
 
 - 
getAllowedInterpolationMethods
public int getAllowedInterpolationMethods()Get allowable interpolation methods for this type of origin- Returns:
 - a bitmap of the:
 
PamArry.ORIGIN_USE_LATEST = 0;
PamArry.ORIGIN_INTERPOLATE = 1;
PamArry.ORIGIN_USE_PRECEEDING = 2; 
 
 -