Package Array

Class Hydrophone

java.lang.Object
Array.Hydrophone
All Implemented Interfaces:
Serializable, Cloneable, ManagedParameters

public class Hydrophone extends Object implements Serializable, Cloneable, ManagedParameters
Author:
Doug Gillespie Contains information on a single hydrophone Significant changes are being made to Hydrophone and Array management in August 2012 to deal with a wider variety of array types and array localisation systems.

all functions in this class have now been made protected thereby restricting direct access to individual hydrophone information to the PamArray class. The PamArray class will now work with it's array localiser to give hydrophone information - which will only be accessible through functions using a timestamp reference.

See Also:
  • Field Details Link icon

  • Constructor Details Link icon

    • Hydrophone Link icon

      public Hydrophone(int id)
    • Hydrophone Link icon

      public Hydrophone(int id, double x, double y, double z, String type, double sensitivity, double[] bandwidth, double preampGain)
    • Hydrophone Link icon

      public Hydrophone(int id, double x, double y, double z, double xErr, double yErr, double zErr, String type, double sensitivity, double[] bandwidth, double preampGain)
  • Method Details Link icon

    • getBandwidth Link icon

      public double[] getBandwidth()
    • setBandwidth Link icon

      protected void setBandwidth(double[] bandwidth)
    • getSensitivity Link icon

      public double getSensitivity()
    • setSensitivity Link icon

      public void setSensitivity(double sensitivity)
    • getCoordinateError Link icon

      public double getCoordinateError(int iCoordinate)
      Get the error on one of the three coordinates.
      Parameters:
      iCoordinate - coordinate (x = 0; y = 1; z = 2)
      Returns:
      error in metres.
    • setCoordinateErrors Link icon

      protected void setCoordinateErrors(double[] errors)
      Set the coordinate error array.
      Parameters:
      errors - array of errors on x,y,z
    • setCoordinateError Link icon

      protected void setCoordinateError(int iCoordinate, double error)
      Set the coordinate error on one of the three dimensions.
      Parameters:
      iCoordinate - coordinate (x = 0; y = 1; z = 2)
      error - error in metres.
    • getCoordinateErrors Link icon

      protected double[] getCoordinateErrors()
    • getdX Link icon

      public double getdX()
      Returns:
      error on the hydrophone x coordinate.
    • setdX Link icon

      public void setdX(double error)
      Set the error on the hydrophone x coordinate
      Parameters:
      error - error in metres.
    • getdY Link icon

      public double getdY()
      Returns:
      error on the hydrophone y coordinate.
    • setdY Link icon

      public void setdY(double error)
      Set the error on the hydrophone y coordinate
      Parameters:
      error - error in metres.
    • getdZ Link icon

      public double getdZ()
      Returns:
      error on the hydrophone depth coordinate.
    • setdZ Link icon

      public void setdZ(double error)
      Set the error on the hydrophone z coordinate
      Parameters:
      error - error in metres.
    • getX Link icon

      public double getX()
    • setX Link icon

      public void setX(double x)
    • getY Link icon

      public double getY()
    • getVector Link icon

      protected PamVector getVector()
      Returns:
      the coordinates in vector form. s
    • getErrorVector Link icon

      protected PamVector getErrorVector()
      Returns:
      the coordinate errors in vector form.
    • getY Link icon

      protected double getY(double depth)
      Get the hydrophone distance astern, corrected for hydrophone depth.
      Parameters:
      depth -
      Returns:
      corrected y coordinate.
    • setY Link icon

      public void setY(double y)
    • getZ Link icon

      public double getZ()
    • setZ Link icon

      public void setZ(double z)
    • getCoordinate Link icon

      protected double getCoordinate(int c)
      Get's a coordinate of the array
      Parameters:
      c - index of the coordinate (0 = x; 1 = y; 2 = z)
      Returns:
      coordinate value
    • clone Link icon

      protected Hydrophone clone()
      Overrides:
      clone in class Object
    • getType Link icon

      public String getType()
    • getCoordinates Link icon

      public double[] getCoordinates()
      Returns:
      Returns the coordinate.
    • getHiddenCoordinates Link icon

      public double[] getHiddenCoordinates()
      Do not use this function except in hydrphone locators in order to get nominal information. this will be removed after debug of new system !
      Returns:
    • setCoordinate Link icon

      protected void setCoordinate(double[] coordinate)
      Parameters:
      coordinate - The coordinate to set.
    • getPreampGain Link icon

      public double getPreampGain()
      Returns:
      Returns the preampGain.
    • setPreampGain Link icon

      public void setPreampGain(double preampGain)
      Parameters:
      preampGain - The preampGain to set.
    • setType Link icon

      protected void setType(String type)
      Parameters:
      type - The type to set.
    • getID Link icon

      public int getID()
      Returns:
      Returns the iD.
    • setID Link icon

      public void setID(int id)
      Parameters:
      id - The iD to set.
    • getSymbol Link icon

      protected PamSymbol getSymbol()
    • setSymbol Link icon

      protected void setSymbol(PamSymbol symbol)
    • getStreamerId Link icon

      public int getStreamerId()
    • setStreamerId Link icon

      public void setStreamerId(int streamerId)
    • getTimeMillis Link icon

      public long getTimeMillis()
    • setTimeMillis Link icon

      public void setTimeMillis(long timeMillis)
    • weightedAverage Link icon

      public static Hydrophone weightedAverage(Hydrophone h1, Hydrophone h2, double w1, double w2)
      the weighted average of two hydrophones.
      Parameters:
      h1 -
      h2 -
      w1 -
      w2 -
      Returns:
    • getParameterSet Link icon

      public PamParameterSet getParameterSet()
      Description copied from interface: ManagedParameters
      Get a set of data that describes all of the parameters in a class
      Specified by:
      getParameterSet in interface ManagedParameters
      Returns:
      description of the parameters in a class.