whistleDetector
Class WhistleLocalisation

java.lang.Object
  extended by PamDetection.AbstractLocalisation
      extended by whistleDetector.WhistleLocalisation

public class WhistleLocalisation
extends AbstractLocalisation


Field Summary
private  double bearing
           
private  int[] delays
           
private  ShapeDataUnit shapeDataUnit
           
 
Fields inherited from class PamDetection.AbstractLocalisation
HAS_AMBIGUITY, HAS_BEARING, HAS_BEARINGERROR, HAS_DEPTH, HAS_DEPTHERROR, HAS_LATLONG, HAS_PERPENDICULARERRORS, HAS_RANGE, HAS_RANGEERROR, HAS_XY, HAS_XYZ
 
Constructor Summary
WhistleLocalisation(ShapeDataUnit shapeDataUnit, int referenceChannels)
           
 
Method Summary
 boolean bearingAmbiguity()
           
 double calculateBearing()
           
 double getBearing(int iSide)
          Get the bearing in radians, relative to the bearing reference
 int getDelay(int nDelay)
           
 ShapeDataUnit getShapeDataUnit()
           
 void setDelay(int delay, int nDelay)
           
 
Methods inherited from class PamDetection.AbstractLocalisation
addLocContents, getAngles, getArrayOrientationVectors, getBearing, getBearingError, getBearingError, getBearingReference, getDepth, getDepth, getDepthError, getDepthError, getErrorDirection, getLatLong, getLocContents, getNumLatLong, getOriginLatLong, getParallelError, getParentDetection, getPerpendiculaError, getPlanarAngles, getRange, getRange, getRangeError, getRangeError, getReferenceHydrophones, getSubArrayType, hasLocContent, removeLocContents, setLocContents, setParentDetection, setReferenceHydrophones
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

delays

private int[] delays

shapeDataUnit

private ShapeDataUnit shapeDataUnit

bearing

private double bearing
Constructor Detail

WhistleLocalisation

public WhistleLocalisation(ShapeDataUnit shapeDataUnit,
                           int referenceChannels)
Method Detail

getDelay

public int getDelay(int nDelay)

setDelay

public void setDelay(int delay,
                     int nDelay)

getShapeDataUnit

public ShapeDataUnit getShapeDataUnit()

getBearing

public double getBearing(int iSide)
Description copied from class: AbstractLocalisation
Get the bearing in radians, relative to the bearing reference

Overrides:
getBearing in class AbstractLocalisation
Parameters:
iSide - which side is the bearing on
Returns:
bearing in radians
See Also:
getBearingReference

calculateBearing

public double calculateBearing()

bearingAmbiguity

public boolean bearingAmbiguity()
Overrides:
bearingAmbiguity in class AbstractLocalisation
Returns:
true if the bearing is subject to a left right (or rotational) ambiguity about the reference bearing.