public class Streamer
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
static int |
REF_BUOY |
static int |
REF_SHIP_GPS
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 long |
serialVersionUID |
Constructor and Description |
---|
Streamer(int streamerIndex) |
Streamer(int streamerIndex,
double x,
double y,
double z,
double dx,
double dy,
double dz) |
Streamer(Streamer firstStreamer,
int streamerIndex,
java.lang.String streamerName) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Streamer s2)
Check if two streamers have identical values for all parameters
|
static Streamer |
getAverage(Streamer sd1,
Streamer sd2) |
double |
getCoordinate(int iCoordinate) |
double[] |
getCoordinateError() |
double |
getCoordinateError(int iCoordinate) |
double[] |
getCoordinates() |
PamVector |
getCoordinateVector() |
double |
getDx() |
double |
getDy() |
double |
getDz() |
PamVector |
getErrorVector() |
java.lang.Double |
getHeading() |
HydrophoneLocator |
getHydrophoneLocator() |
HydrophoneOriginMethod |
getHydrophoneOrigin() |
LocatorSettings |
getLocatorSettings()
Get the settings for the currently set locator method.
|
LocatorSettings |
getLocatorSettings(java.lang.Class locatorClass)
Get the locator settings for the currently selected hydrophone locator
method
|
OriginSettings |
getOriginSettings()
Get the hydrophone origin settings for the currently selected origin method.
|
OriginSettings |
getOriginSettings(java.lang.Class originClass)
Get the hydrophone origin settings for a specific origin method class.
|
java.lang.Double |
getPitch() |
java.lang.Double |
getRoll() |
int |
getStreamerHydrophones()
Get a list of hydrophones that go with this streamer.
|
int |
getStreamerIndex() |
java.lang.String |
getStreamerName() |
double |
getX() |
double |
getY() |
double |
getZ() |
boolean |
isEnableOrientation() |
void |
makeStreamerDataUnit()
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 |
setEnableOrientation(boolean enableOrientation) |
void |
setHeading(java.lang.Double heading) |
void |
setHydrophoneLocator(HydrophoneLocator hydrophoneLocator) |
void |
setHydrophoneOrigin(HydrophoneOriginMethod hydrophoneOrigin) |
void |
setLocatorSettings(LocatorSettings locatorSettings)
Set the locator settings.
|
void |
setOriginSettings(OriginSettings originSettings)
Set the origin settings.
|
void |
setPitch(java.lang.Double pitch) |
void |
setRoll(java.lang.Double roll) |
void |
setStreamerName(java.lang.String streamerName) |
void |
setupLocator(PamArray pamArray)
Set up the hydrophone locator.
|
void |
setX(double x) |
void |
setY(double x) |
void |
setZ(double x) |
java.lang.String |
toString() |
public static final long serialVersionUID
public static final int REF_SHIP_GPS
public static final int REF_BUOY
public Streamer(int streamerIndex, double x, double y, double z, double dx, double dy, double dz)
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)public Streamer(int streamerIndex)
public Streamer(Streamer firstStreamer, int streamerIndex, java.lang.String streamerName)
public void setCoordinates(double[] coordinates)
public void setCoordinate(int iCoordinate, double coordinate)
public double[] getCoordinates()
public double getCoordinate(int iCoordinate)
public double[] getCoordinateError()
public double getCoordinateError(int iCoordinate)
public void setCoordinateErrors(double[] coordinateErrors)
public void setCoordinateError(int iCoordinate, double error)
public PamVector getCoordinateVector()
public PamVector getErrorVector()
public void setX(double x)
public void setY(double x)
public void setZ(double x)
public void setDx(double dx)
public void setDy(double dy)
public void setDz(double dz)
public double getX()
public double getY()
public double getZ()
public double getDx()
public double getDy()
public double getDz()
public java.lang.String getStreamerName()
public void setStreamerName(java.lang.String streamerName)
public HydrophoneLocator getHydrophoneLocator()
public void setHydrophoneLocator(HydrophoneLocator hydrophoneLocator)
hydrophoneLocator
- the hydrophoneLocator to setpublic LocatorSettings getLocatorSettings()
public LocatorSettings getLocatorSettings(java.lang.Class locatorClass)
locatorClass
- class for the current locator methodpublic void setLocatorSettings(LocatorSettings locatorSettings)
locatorSettings
- new locator settings.public void setOriginSettings(OriginSettings originSettings)
originSettings
- new origin settings to store.public OriginSettings getOriginSettings()
public OriginSettings getOriginSettings(java.lang.Class originClass)
originClass
- origin method class.public void setupLocator(PamArray pamArray)
Some locators (such as static, are also no longer used, since they are superseded by a fixed hydrophone origin and a rigid locator.
pamArray
- public HydrophoneOriginMethod getHydrophoneOrigin()
public void setHydrophoneOrigin(HydrophoneOriginMethod hydrophoneOrigin)
hydrophoneOrigin
- the hydrophoneOrigin to setpublic void notifyModelChanged(int changeType, boolean initComplete)
public void makeStreamerDataUnit()
public java.lang.Double getHeading()
public void setHeading(java.lang.Double heading)
heading
- the heading to setpublic java.lang.Double getPitch()
public void setPitch(java.lang.Double pitch)
pitch
- the pitch to set in degreespublic java.lang.Double getRoll()
public void setRoll(java.lang.Double roll)
roll
- the roll to set (degrees)public boolean isEnableOrientation()
public void setEnableOrientation(boolean enableOrientation)
enableOrientation
- the enableOrientation to setpublic int getStreamerIndex()
public java.lang.String toString()
toString
in class java.lang.Object
public int getStreamerHydrophones()
public boolean equals(Streamer s2)
s2
-