Package Array
Class Streamer
java.lang.Object
Array.Streamer
- All Implemented Interfaces:
Serializable
,Cloneable
,ManagedParameters
Contains information on an individual streamer -a Streamer is loosely defined
as a group of hydrophones who's positions are fixed relative to the streamer. Streamers
can have positions, headings, pitch and roll and an offset from their referene position, which
will generally be 0,0,-depth for a static system and 0,-hydLengh,-depth for a towing system.
Each hydrophone element will belong to one streamer.
- Author:
- Doug Gillespie
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
The streamer doesn't need to hold the reference to the locator though That's held within the MasterLocator - still need to work out how to serialise that with the array settings.static final long
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
Check if two streamers have identical values for all parametersstatic Streamer
getAverage
(Streamer sd1, Streamer sd2) double
getCoordinate
(int iCoordinate) double[]
double
getCoordinateError
(int iCoordinate) double[]
double
getDx()
double
getDy()
double
getDz()
Get the settings for the currently set locator method.getLocatorSettings
(Class locatorClass) Get the locator settings for the currently selected hydrophone locator methodgetOrientationTypes
(ArraySensorFieldType sensorType) Get the hydrophone origin settings for the currently selected origin method.getOriginSettings
(Class originClass) Get the hydrophone origin settings for a specific origin method class.Get a set of data that describes all of the parameters in a classgetPitch()
getRoll()
getSensorDataBlocks
(ArraySensorFieldType sensorType) getSensorField
(ArraySensorFieldType sensorType) Get a value for one of the four orientation fields.Get the streamer sensor managerint
Get a list of hydrophones that go with this streamer.int
double
getX()
double
getY()
double
getZ()
void
Make a streamer data unit and add it to the data block.void
notifyModelChanged
(int changeType, boolean initComplete) void
setCoordinate
(int iCoordinate, double coordinate) void
setCoordinateError
(int iCoordinate, double error) void
setCoordinateErrors
(double[] coordinateErrors) void
setCoordinates
(double[] coordinates) void
setDx
(double dx) void
setDy
(double dy) void
setDz
(double dz) void
setHeading
(Double heading) void
setHydrophoneLocator
(HydrophoneLocator hydrophoneLocator) void
setHydrophoneOrigin
(HydrophoneOriginMethod hydrophoneOrigin) void
setLocatorSettings
(LocatorSettings locatorSettings) Set the locator settings.void
setMagneticHeading
(Double heading) Set magnetic heading.void
setOrientationTypes
(ArraySensorFieldType sensorType, ArrayParameterType orientationType) void
setOriginSettings
(OriginSettings originSettings) Set the origin settings.void
void
void
setSensorDataBlocks
(ArraySensorFieldType sensorType, String sensorDataBlock) void
setSensorField
(ArraySensorFieldType sensorType, Double value) Set a value for one of the four orientation fields.void
setStreamerName
(String streamerName) void
setupLocator
(PamArray pamArray) Set up the hydrophone locator.void
setX
(double x) void
setY
(double x) void
setZ
(double x) toString()
static Streamer
weightedAverage
(Streamer sd1, Streamer sd2, double w1, double w2) get a weighted average of two streamer datas.
-
Field Details
-
serialVersionUID
public static final long serialVersionUID- See Also:
-
REF_SHIP_GPS
public static final int REF_SHIP_GPSThe streamer doesn't need to hold the reference to the locator though That's held within the MasterLocator - still need to work out how to serialise that with the array settings.- See Also:
-
REF_BUOY
public static final int REF_BUOY- See Also:
-
-
Constructor Details
-
Streamer
public Streamer(int streamerIndex, double x, double y, double z, double dx, double dy, double dz) - Parameters:
x
- x coordinate of streamer (m)dx
- estimated error on x location of streamer (m)dy
- estimated error on y location of streamer (m)dz
- estimated error on z location of streamer (m)
-
Streamer
public Streamer(int streamerIndex) -
Streamer
-
-
Method Details
-
clone
-
setCoordinates
public void setCoordinates(double[] coordinates) -
setCoordinate
public void setCoordinate(int iCoordinate, double coordinate) -
getCoordinates
public double[] getCoordinates() -
getCoordinate
public double getCoordinate(int iCoordinate) -
getCoordinateError
public double[] getCoordinateError() -
getCoordinateError
public double getCoordinateError(int iCoordinate) -
setCoordinateErrors
public void setCoordinateErrors(double[] coordinateErrors) -
setCoordinateError
public void setCoordinateError(int iCoordinate, double error) -
getCoordinateVector
-
getErrorVector
-
setX
public void setX(double x) -
setY
public void setY(double x) -
setZ
public void setZ(double x) -
setDx
public void setDx(double dx) -
setDy
public void setDy(double dy) -
setDz
public void setDz(double dz) -
getX
public double getX() -
getY
public double getY() -
getZ
public double getZ() -
getDx
public double getDx() -
getDy
public double getDy() -
getDz
public double getDz() -
getStreamerName
-
setStreamerName
-
getHydrophoneLocator
- Returns:
- the hydrophoneLocator
-
setHydrophoneLocator
- Parameters:
hydrophoneLocator
- the hydrophoneLocator to set
-
getLocatorSettings
Get the settings for the currently set locator method.- Returns:
- settings for the current locator method.
-
getLocatorSettings
Get the locator settings for the currently selected hydrophone locator method- Parameters:
locatorClass
- class for the current locator method- Returns:
- settings for the specified locator method.
-
setLocatorSettings
Set the locator settings. Streamer actually holds a list of locator settings for all the different available locators, so will check that list and remove any ones that have the same locator class before adding this to the list.- Parameters:
locatorSettings
- new locator settings.
-
setOriginSettings
Set the origin settings. Streamer actually holds a list of origin settings for all the different origin types, so will check there aren't any for that type and remove them from the master list before adding these.- Parameters:
originSettings
- new origin settings to store.
-
getOriginSettings
Get the hydrophone origin settings for the currently selected origin method.- Returns:
- origin settings for current method
-
getOriginSettings
Get the hydrophone origin settings for a specific origin method class.- Parameters:
originClass
- origin method class.- Returns:
- origin settings for that class (or null if there are none).
-
setupLocator
Set up the hydrophone locator. Note that only the locatorSettings are serialised in psf files, to it's necessary to construct the actual locator and it's corresponding hydrophone origin system.Some locators (such as static, are also no longer used, since they are superseded by a fixed hydrophone origin and a rigid locator.
- Parameters:
pamArray
-
-
getHydrophoneOrigin
- Returns:
- the hydrophoneOrigin
-
setHydrophoneOrigin
- Parameters:
hydrophoneOrigin
- the hydrophoneOrigin to set
-
notifyModelChanged
public void notifyModelChanged(int changeType, boolean initComplete) -
makeStreamerDataUnit
public void makeStreamerDataUnit()Make a streamer data unit and add it to the data block. -
getHeading
- Returns:
- the heading
-
setHeading
- Parameters:
heading
- the heading to set
-
setMagneticHeading
Set magnetic heading. Will automatically correct to true using geomag stuff.- Parameters:
heading
- the magnetic heading to set
-
getPitch
- Returns:
- the pitch in degrees
-
setPitch
- Parameters:
pitch
- the pitch to set in degrees
-
getRoll
- Returns:
- the roll in degrees
-
setRoll
- Parameters:
roll
- the roll to set (degrees)
-
getStreamerIndex
public int getStreamerIndex()- Returns:
- the streamerIndex
-
toString
-
getAverage
-
weightedAverage
get a weighted average of two streamer datas. Used when interpolating.- Parameters:
sd1
-sd2
-w1
-w2
-- Returns:
-
getStreamerHydrophones
public int getStreamerHydrophones()Get a list of hydrophones that go with this streamer.- Returns:
-
equals
Check if two streamers have identical values for all parameters- Parameters:
s2
-- 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.
-
getOrientationTypes
- Parameters:
sensorType
- type of sensor: HEAD, PITCH, ROLL, HEIGHT- Returns:
- the type of data, which is one of FIXED, DEFAULT or SENSOR
-
setOrientationTypes
public void setOrientationTypes(ArraySensorFieldType sensorType, ArrayParameterType orientationType) - Parameters:
sensorType
- type of sensor: HEAD, PITCH, ROLL, HEIGHTorientationType
- the type of data, which is one of FIXED, DEFAULT or SENSOR
-
getSensorDataBlocks
- Returns:
- the sensorDataBlocks
-
getSensorField
Get a value for one of the four orientation fields.- Parameters:
sensorType
-- Returns:
-
setSensorField
Set a value for one of the four orientation fields.- Parameters:
sensorType
-
-
setSensorDataBlocks
- Parameters:
sensorDataBlocks
- the sensorDataBlocks to set
-
getSensorManager
Get the streamer sensor manager- Returns:
-