loc3d_Thode
Class TowedArray3DDataUnit

java.lang.Object
  extended by PamguardMVC.PamDataUnit
      extended by PamDetection.AcousticDataUnit
          extended by PamDetection.PamDetection
              extended by loc3d_Thode.TowedArray3DDataUnit
All Implemented Interfaces:
java.lang.Comparable<PamDataUnit>

public class TowedArray3DDataUnit
extends PamDetection


Field Summary
private  double[] angle
           
private  double depth
           
private  boolean hasAngle
           
private  boolean hasAngleAmbiguity
           
private  boolean hasDepth
           
private  boolean hasLatLong
           
private  boolean hasRange
           
private  double[] heading
           
private  LatLong latlong
           
private  PamDetection parentDetection
           
private  double[] range
           
private  double[] tilt
           
private  TowedArray3DLocalization towedArray3DLocalization
           
 
Fields inherited from class PamDetection.AcousticDataUnit
AMPLITUDE_SCALE_DBREMPA, AMPLITUDE_SCALE_LINREFSD, duration, frequency, startSample
 
Fields inherited from class PamguardMVC.PamDataUnit
absBlockIndex, channelBitmap, localisation, oLL, timeMilliseconds
 
Constructor Summary
TowedArray3DDataUnit(int Nstation)
           
TowedArray3DDataUnit(PamDetection parentDetection, int locContents, int referenceHydrophones, int Nstation, boolean hasAngle, boolean hasRange, boolean hasDepth)
           
 
Method Summary
private  void calcOandAngles()
           
 double[] getAngle()
           
 double getDepth()
           
protected  GpsData getGpsPosition()
          USed when no hydrophone information is specified to get the nearest ships GPS position.
 double[] getHeadings()
           
 LatLong getLatlong(int iSide)
           
 LatLong getOriginLatLong(boolean recalculate)
          Get the latlongof the mean hydrophone position at the time of this detection.
 double[] getRanges()
           
 double[] getTilts()
           
 boolean HasLatLong()
           
 boolean isHasAngleAmbiguity()
           
 boolean isHasAngles()
           
 boolean isHasDepth()
           
 boolean isHasRanges()
           
 void setAngle(double angle, int i)
           
 void setAngles(double[] angle)
           
 void setDepth(double depth)
           
 void setHasAngleAmbiguity(boolean hasAngleAmbiguity)
           
 void setHasAngles(boolean hasAngle)
           
 void setHasDepth(boolean hasDepth)
           
 void setHasRanges(boolean hasRange)
           
 void setHeadings(double[] heading)
           
 void setHeadings(double heading, int i)
           
 void setLatLong()
           
 void setRanges(double[] range)
           
 void setRanges(double range, int i)
           
 void setTilts(double[] tilt)
           
 void setTilts(double tilt, int i)
           
 
Methods inherited from class PamDetection.PamDetection
addSubDetection, addSuperDetection, getDetectionType, getPeakTime, getSubDetection, getSubDetectionsCount, getSubDetectionSyncronisation, getSuperDetection, getSuperDetection, getSuperDetectionsCount, getSuperDetectionSyncronisation, removeSubDetection, removeSuperDetection, setDetectionType, setPeakTime, setUniqueSuperDetection
 
Methods inherited from class PamDetection.AcousticDataUnit
amplifyMeasuredAmplitudeByDB, amplifyMeasuredAmplitudeByLinear, compareTo, getAmplitudeDB, getCalculatedAmlitudeDB, getDuration, getFrequency, getFrequencyOverlap, getLastSample, getMeasuredAmplitude, getMeasuredAmplitudeType, getSeconds, getStartSample, getTimeOverlap, setCalculatedAmlitudeDB, setDuration, setFrequency, setInfo, setMeasuredAmplitude, setMeasuredAmplitude, setMeasuredAmplitudeType, setStartSample
 
Methods inherited from class PamguardMVC.PamDataUnit
clearUpdateCount, getAbsBlockIndex, getChannelBitmap, getDatabaseIndex, getDatabaseUpdateOf, getDataUnitFileInformation, getLastUpdateTime, getLocalisation, getPairAngle, getParentDataBlock, getTimeMilliseconds, getUpdateCount, setAbsBlockIndex, setChannelBitmap, setDatabaseIndex, setDatabaseUpdateOf, setDataUnitFileInformation, setLastUpdateTime, setLocalisation, setOriginLatLong, setParentDataBlock, setTimeMilliseconds, updateDataUnit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

towedArray3DLocalization

private TowedArray3DLocalization towedArray3DLocalization

parentDetection

private PamDetection parentDetection

hasAngle

private boolean hasAngle

angle

private double[] angle

hasAngleAmbiguity

private boolean hasAngleAmbiguity

hasRange

private boolean hasRange

range

private double[] range

hasDepth

private boolean hasDepth

depth

private double depth

heading

private double[] heading

tilt

private double[] tilt

latlong

private LatLong latlong

hasLatLong

private boolean hasLatLong
Constructor Detail

TowedArray3DDataUnit

public TowedArray3DDataUnit(PamDetection parentDetection,
                            int locContents,
                            int referenceHydrophones,
                            int Nstation,
                            boolean hasAngle,
                            boolean hasRange,
                            boolean hasDepth)

TowedArray3DDataUnit

public TowedArray3DDataUnit(int Nstation)
Method Detail

getAngle

public double[] getAngle()

setAngles

public void setAngles(double[] angle)

setAngle

public void setAngle(double angle,
                     int i)

getDepth

public double getDepth()

setDepth

public void setDepth(double depth)

HasLatLong

public boolean HasLatLong()

isHasAngles

public boolean isHasAngles()

setHasAngles

public void setHasAngles(boolean hasAngle)

isHasAngleAmbiguity

public boolean isHasAngleAmbiguity()

setHasAngleAmbiguity

public void setHasAngleAmbiguity(boolean hasAngleAmbiguity)

isHasDepth

public boolean isHasDepth()

setHasDepth

public void setHasDepth(boolean hasDepth)

isHasRanges

public boolean isHasRanges()

setHasRanges

public void setHasRanges(boolean hasRange)

getHeadings

public double[] getHeadings()

setHeadings

public void setHeadings(double[] heading)

setHeadings

public void setHeadings(double heading,
                        int i)

getRanges

public double[] getRanges()

setRanges

public void setRanges(double[] range)

setRanges

public void setRanges(double range,
                      int i)

getTilts

public double[] getTilts()

setTilts

public void setTilts(double[] tilt)

setTilts

public void setTilts(double tilt,
                     int i)

setLatLong

public void setLatLong()

getLatlong

public LatLong getLatlong(int iSide)

getOriginLatLong

public LatLong getOriginLatLong(boolean recalculate)
Description copied from class: PamDataUnit
Get the latlongof the mean hydrophone position at the time of this detection.

Overrides:
getOriginLatLong in class PamDataUnit
Returns:
Lat long of detectin origin (usually the position of the reference hydrophone at time of detection)

calcOandAngles

private void calcOandAngles()

getGpsPosition

protected GpsData getGpsPosition()
USed when no hydrophone information is specified to get the nearest ships GPS position.

Overrides:
getGpsPosition in class PamDataUnit
Parameters:
pamDataUnit -
Returns: