Array
Class ThreadingHydrophoneLocator

java.lang.Object
  extended by Array.SimpleHydrophoneLocator
      extended by Array.StraightHydrophoneLocator
          extended by Array.ThreadingHydrophoneLocator
All Implemented Interfaces:
HydrophoneLocator, PamObserver
Direct Known Subclasses:
TerrellaHydrophoneLocator

public class ThreadingHydrophoneLocator
extends StraightHydrophoneLocator

A threading hydrophone is one that exactly follows the track of the ship. It works by holding GPS information, then for any time, works out where the ship was, then works back to where the hydrophone would have been.

Extends StrightHydrophoneLocator since that already handled accessing GPS data.

Author:
Doug Gillespie

Field Summary
 
Fields inherited from class Array.StraightHydrophoneLocator
gpsDataBlock, hydrophoneDataBlock, lastGpsUnit
 
Fields inherited from class Array.SimpleHydrophoneLocator
pamArray
 
Fields inherited from interface Array.HydrophoneLocator
ANGLE_RE_ARRAY, ANGLE_RE_NORTH, ANGLE_RE_SHIP
 
Constructor Summary
ThreadingHydrophoneLocator(PamArray pamArray)
           
 
Method Summary
 double getPairAngle(long timeMilliseconds, int phone1, int phone2, int angleType)
          Get's the angle between a pair of hydrophones
 LatLong getPhoneLatLong(long timeMilliseconds, int phoneNo)
          Get's the LatLong of a specific hydrophone at a given time.
 java.lang.String toString()
           
 
Methods inherited from class Array.StraightHydrophoneLocator
findDepthDataUnit, findGpsDataUnit, getCorrectedYPos, getObserverName, getObserverObject, getPhoneDepth, getReferenceLatLong, getRequiredDataHistory, masterClockUpdate, noteNewSettings, notifyModelChanged, removeObservable, setSampleRate, setupGpsMonitor, update
 
Methods inherited from class Array.SimpleHydrophoneLocator
getPairSeparation, getPhoneHeading, getPhoneTilt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ThreadingHydrophoneLocator

public ThreadingHydrophoneLocator(PamArray pamArray)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class StraightHydrophoneLocator

getPhoneLatLong

public LatLong getPhoneLatLong(long timeMilliseconds,
                               int phoneNo)
Description copied from interface: HydrophoneLocator
Get's the LatLong of a specific hydrophone at a given time.

Specified by:
getPhoneLatLong in interface HydrophoneLocator
Overrides:
getPhoneLatLong in class StraightHydrophoneLocator
Parameters:
timeMilliseconds - time position needed for
phoneNo - Hydrophone number
Returns:
Hydrophone LatLong

getPairAngle

public double getPairAngle(long timeMilliseconds,
                           int phone1,
                           int phone2,
                           int angleType)
Description copied from interface: HydrophoneLocator
Get's the angle between a pair of hydrophones

Specified by:
getPairAngle in interface HydrophoneLocator
Overrides:
getPairAngle in class StraightHydrophoneLocator
Parameters:
timeMilliseconds - time angle is needed for
phone1 - First hydrophone
phone2 - Second Hydrophone
angleType - Type of angle - ANGLE_RE_NORTH; ANGLE_RE_SHIP; ANGLE_RE_ARRAY;
Returns:
angle in radians