Package Array
Class Hydrophone
java.lang.Object
Array.Hydrophone
- All Implemented Interfaces:
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 Summary
Modifier and TypeFieldDescriptionstatic final int
static final long
-
Constructor Summary
ConstructorDescriptionHydrophone
(int id) Hydrophone
(int id, double x, double y, double z, double xErr, double yErr, double zErr, String type, double sensitivity, double[] bandwidth, double preampGain) Hydrophone
(int id, double x, double y, double z, String type, double sensitivity, double[] bandwidth, double preampGain) -
Method Summary
Modifier and TypeMethodDescriptiondouble[]
double
getCoordinateError
(int iCoordinate) Get the error on one of the three coordinates.double[]
double
getdX()
double
getdY()
double
getdZ()
double[]
Do not use this function except in hydrphone locators in order to get nominal information.int
getID()
Get a set of data that describes all of the parameters in a classdouble
double
int
long
getType()
double
getX()
double
getY()
double
getZ()
void
setdX
(double error) Set the error on the hydrophone x coordinatevoid
setdY
(double error) Set the error on the hydrophone y coordinatevoid
setdZ
(double error) Set the error on the hydrophone z coordinatevoid
setID
(int id) void
setPreampGain
(double preampGain) void
setSensitivity
(double sensitivity) void
setStreamerId
(int streamerId) void
setTimeMillis
(long timeMillis) void
setX
(double x) void
setY
(double y) void
setZ
(double z) static Hydrophone
weightedAverage
(Hydrophone h1, Hydrophone h2, double w1, double w2) the weighted average of two hydrophones.
-
Field Details
-
serialVersionUID
public static final long serialVersionUID- See Also:
-
DefaultSymbolSize
public static final int DefaultSymbolSize- See Also:
-
-
Constructor Details
-
Hydrophone
public Hydrophone(int id) -
Hydrophone
public Hydrophone(int id, double x, double y, double z, String type, double sensitivity, double[] bandwidth, double preampGain) -
Hydrophone
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
-
getBandwidth
public double[] getBandwidth() -
getSensitivity
public double getSensitivity() -
setSensitivity
public void setSensitivity(double sensitivity) -
getCoordinateError
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.
-
getdX
public double getdX()- Returns:
- error on the hydrophone x coordinate.
-
setdX
public void setdX(double error) Set the error on the hydrophone x coordinate- Parameters:
error
- error in metres.
-
getdY
public double getdY()- Returns:
- error on the hydrophone y coordinate.
-
setdY
public void setdY(double error) Set the error on the hydrophone y coordinate- Parameters:
error
- error in metres.
-
getdZ
public double getdZ()- Returns:
- error on the hydrophone depth coordinate.
-
setdZ
public void setdZ(double error) Set the error on the hydrophone z coordinate- Parameters:
error
- error in metres.
-
getX
public double getX() -
setX
public void setX(double x) -
getY
public double getY() -
setY
public void setY(double y) -
getZ
public double getZ() -
setZ
public void setZ(double z) -
getType
-
getCoordinates
public double[] getCoordinates()- Returns:
- Returns the coordinate.
-
getHiddenCoordinates
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:
-
getPreampGain
public double getPreampGain()- Returns:
- Returns the preampGain.
-
setPreampGain
public void setPreampGain(double preampGain) - Parameters:
preampGain
- The preampGain to set.
-
getID
public int getID()- Returns:
- Returns the iD.
-
setID
public void setID(int id) - Parameters:
id
- The iD to set.
-
getStreamerId
public int getStreamerId() -
setStreamerId
public void setStreamerId(int streamerId) -
getTimeMillis
public long getTimeMillis() -
setTimeMillis
public void setTimeMillis(long timeMillis) -
weightedAverage
the weighted average of two hydrophones.- Parameters:
h1
-h2
-w1
-w2
-- Returns:
-
getParameterSet
Description copied from interface:ManagedParameters
Get a set of data that describes all of the parameters in a class- Specified by:
getParameterSet
in interfaceManagedParameters
- Returns:
- description of the parameters in a class.
-