Array
Class ThreadingHydrophoneLocator
java.lang.Object
Array.SimpleHydrophoneLocator
Array.StraightHydrophoneLocator
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
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ThreadingHydrophoneLocator
public ThreadingHydrophoneLocator(PamArray pamArray)
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 forphoneNo - 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 forphone1 - First hydrophonephone2 - Second HydrophoneangleType - Type of angle - ANGLE_RE_NORTH; ANGLE_RE_SHIP; ANGLE_RE_ARRAY;
- Returns:
- angle in radians