|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectArray.SimpleHydrophoneLocator
Array.StraightHydrophoneLocator
public class StraightHydrophoneLocator
Straight Hydrophone Locator, uses GPS heading information from GPS and assumes that the hydrophones are just sticking straight out the back of the boat as though on a rigid stick.
If depth readout is installed, then the depth will be taken from the depth data for the appropriate time and also, more interestingly, the y coordinate of each hydrophone will be reduced according to cable angle based on a simple (straight) model of how the hydrophone is lying.
| Field Summary | |
|---|---|
(package private) PamDataBlock<GpsDataUnit> |
gpsDataBlock
|
(package private) PamDataBlock |
hydrophoneDataBlock
|
private GpsDataUnit |
lastFoundUnit
|
(package private) GpsDataUnit |
lastGpsUnit
|
private long |
lastSearchTime
|
| Fields inherited from class Array.SimpleHydrophoneLocator |
|---|
pamArray |
| Fields inherited from interface Array.HydrophoneLocator |
|---|
ANGLE_RE_ARRAY, ANGLE_RE_NORTH, ANGLE_RE_SHIP |
| Constructor Summary | |
|---|---|
StraightHydrophoneLocator(PamArray pamArray)
|
|
| Method Summary | |
|---|---|
private DepthDataBlock |
findDepthDataBlock()
|
protected DepthDataUnit |
findDepthDataUnit(long timeMillis)
|
(package private) GpsDataUnit |
findGpsDataUnit(long timeMilliseconds)
|
double |
getCorrectedYPos(long timeMilliseconds,
int phoneNo)
Get a corrected distance astern of the vessel based on the hydrophone being at some depth and the hydrophone cable being basically straight. |
java.lang.String |
getObserverName()
|
PamObserver |
getObserverObject()
|
double |
getPairAngle(long timeMilliseconds,
int phone1,
int phone2,
int angleType)
Get's the angle between a pair of hydrophones |
double |
getPhoneDepth(long timeMilliseconds,
int phoneNo)
Get's the depth of a specific hydrophone at a given time. |
LatLong |
getPhoneLatLong(long timeMilliseconds,
int phoneNo)
Get's the LatLong of a specific hydrophone at a given time. |
LatLong |
getReferenceLatLong(long timeMilliseconds)
Gets a reference LatLong for the locator at a given time. |
long |
getRequiredDataHistory(PamObservable o,
java.lang.Object arg)
|
void |
masterClockUpdate(long milliSeconds,
long sampleNumber)
|
void |
noteNewSettings()
|
void |
notifyModelChanged(int changeType)
|
void |
removeObservable(PamObservable o)
called when an Observable (PamDataBlock) is removed from the system |
void |
setSampleRate(float sampleRate,
boolean notify)
New sample rate |
void |
setupGpsMonitor()
|
java.lang.String |
toString()
|
void |
update(PamObservable o,
PamDataUnit arg)
Informs the PamObserver that new data have been added to the Observable class |
| 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 |
| Field Detail |
|---|
PamDataBlock<GpsDataUnit> gpsDataBlock
PamDataBlock hydrophoneDataBlock
GpsDataUnit lastGpsUnit
private GpsDataUnit lastFoundUnit
private long lastSearchTime
| Constructor Detail |
|---|
public StraightHydrophoneLocator(PamArray pamArray)
| Method Detail |
|---|
public PamObserver getObserverObject()
getObserverObject in interface PamObserver
public double getPairAngle(long timeMilliseconds,
int phone1,
int phone2,
int angleType)
HydrophoneLocator
getPairAngle in interface HydrophoneLocatorgetPairAngle in class SimpleHydrophoneLocatortimeMilliseconds - time angle is needed forphone1 - First hydrophonephone2 - Second HydrophoneangleType - Type of angle - ANGLE_RE_NORTH; ANGLE_RE_SHIP; ANGLE_RE_ARRAY;
GpsDataUnit findGpsDataUnit(long timeMilliseconds)
public LatLong getReferenceLatLong(long timeMilliseconds)
HydrophoneLocator
getReferenceLatLong in interface HydrophoneLocatortimeMilliseconds - time reference needed for
public LatLong getPhoneLatLong(long timeMilliseconds,
int phoneNo)
HydrophoneLocator
getPhoneLatLong in interface HydrophoneLocatortimeMilliseconds - time position needed forphoneNo - Hydrophone number
public void notifyModelChanged(int changeType)
notifyModelChanged in interface HydrophoneLocatornotifyModelChanged in class SimpleHydrophoneLocator
public double getPhoneDepth(long timeMilliseconds,
int phoneNo)
HydrophoneLocator
getPhoneDepth in interface HydrophoneLocatorgetPhoneDepth in class SimpleHydrophoneLocatortimeMilliseconds - time depth needed forphoneNo - Hydrophone number
protected DepthDataUnit findDepthDataUnit(long timeMillis)
private DepthDataBlock findDepthDataBlock()
public double getCorrectedYPos(long timeMilliseconds,
int phoneNo)
timeMilliseconds - time that the Y is required forphoneNo - hydrophone number.
public void setupGpsMonitor()
public java.lang.String getObserverName()
getObserverName in interface PamObserver
public long getRequiredDataHistory(PamObservable o,
java.lang.Object arg)
getRequiredDataHistory in interface PamObservero - PamObservable class requiring the dataarg - optional argument from PamObservable
public void noteNewSettings()
noteNewSettings in interface PamObserverpublic void removeObservable(PamObservable o)
PamObserver
removeObservable in interface PamObserver
public void setSampleRate(float sampleRate,
boolean notify)
PamObserver
setSampleRate in interface PamObservernotify - Notify other PamObservers and PamObservables in the chain.
public void masterClockUpdate(long milliSeconds,
long sampleNumber)
masterClockUpdate in interface PamObserver
public void update(PamObservable o,
PamDataUnit arg)
PamObserver
update in interface PamObservero - Reference to the Observable (a PamDataBlock)arg - Reference to the new PamDataUnitpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||