public class BuoyStatusDataUnit extends PamDataUnit
Constructor and Description |
---|
BuoyStatusDataUnit(NetworkReceiver networkReceiver,
int buoyId1,
int buoyId2,
int channelMap) |
Modifier and Type | Method and Description |
---|---|
java.lang.Double |
getBattVolts() |
int |
getBlockPacketCount(int iBlock) |
int |
getBuoyId1() |
int |
getBuoyId2() |
java.lang.String |
getBuoyName()
Get a standard string name for a buoy.
|
java.lang.Double |
getChargeCurrent() |
int |
getCommandStatus() |
double[] |
getCompassData() |
long |
getCreationTime() |
int |
getGpsCount() |
GpsData |
getGpsData() |
Streamer |
getHydrophoneStreamer() |
java.lang.String |
getIPAddr() |
long |
getLastDataTime() |
java.lang.Double |
getLoadCurrent() |
int |
getLowestChannel()
The number of the first channel for data from this buoy - since
all buoys will have the first channel as zero (I hope) this is basically
used as a shift operator on the incoming channel numbers from the network.
|
NetworkReceiver |
getNetworkReceiver() |
java.lang.String |
getPort() |
java.lang.Object |
getPositionString() |
java.net.Socket |
getSocket() |
int |
getTotalPackets() |
void |
initialise() |
void |
newDataObject(PamDataBlock dataBlock,
PamDataUnit dataUnit,
int blockSeq) |
void |
setBattVolts(java.lang.Double battVolts) |
void |
setChargeCurrent(java.lang.Double chargeCurrent) |
void |
setCommandStatus(int commandStatus) |
void |
setCompassData(long timeInMillis,
double[] compassData) |
void |
setGpsData(long timeMilliseconds,
GpsData gpsData) |
void |
setHydrophoneStreamer(Streamer hydrophoneStreamer)
Set the hydrophone streamer for the buoy.
|
void |
setLoadCurrent(java.lang.Double loadCurrent) |
void |
setNetworkReceiver(NetworkReceiver networkReceiver) |
void |
setSocket(java.net.Socket socket) |
addDataAnnotation, clearOandAngles, clearUpdateCount, compareTo, findDataAnnotation, getAbsBlockIndex, getChannelBitmap, getDataAnnotation, getDatabaseIndex, getDatabaseUpdateOf, getDataUnitFileInformation, getDetectionMatch, getDetectionMatch, getHydrophoneHeading, getLastUpdateTime, getLocalisation, getNumDataAnnotations, getOriginLatLong, getPairAngle, getParentDataBlock, getSummaryString, getTimeMilliseconds, getUpdateCount, removeDataAnnotation, removeDataAnnotation, setAbsBlockIndex, setChannelBitmap, setDatabaseIndex, setDatabaseUpdateOf, setDataUnitFileInformation, setLastUpdateTime, setLocalisation, setOriginLatLong, setParentDataBlock, setTimeMilliseconds, updateDataUnit
public BuoyStatusDataUnit(NetworkReceiver networkReceiver, int buoyId1, int buoyId2, int channelMap)
public void newDataObject(PamDataBlock dataBlock, PamDataUnit dataUnit, int blockSeq)
public java.lang.String getBuoyName()
public int getBuoyId1()
public int getBuoyId2()
public int getLowestChannel()
public long getCreationTime()
public long getLastDataTime()
public int getTotalPackets()
public int getBlockPacketCount(int iBlock)
public void initialise()
public void setSocket(java.net.Socket socket)
public java.net.Socket getSocket()
public java.lang.String getIPAddr()
public java.lang.String getPort()
public GpsData getGpsData()
public void setGpsData(long timeMilliseconds, GpsData gpsData)
gpsData
- the gpsData to setpublic void setCompassData(long timeInMillis, double[] compassData)
public double[] getCompassData()
public int getGpsCount()
public java.lang.Object getPositionString()
public void setCommandStatus(int commandStatus)
commandStatus
- the commandStatus to setpublic int getCommandStatus()
public NetworkReceiver getNetworkReceiver()
public void setNetworkReceiver(NetworkReceiver networkReceiver)
networkReceiver
- the networkReceiver to setpublic void setHydrophoneStreamer(Streamer hydrophoneStreamer)
hydrophoneStreamer
- the hydrophoneStreamer to setpublic Streamer getHydrophoneStreamer()
public java.lang.Double getBattVolts()
public void setBattVolts(java.lang.Double battVolts)
battVolts
- the battVolts to setpublic java.lang.Double getChargeCurrent()
public void setChargeCurrent(java.lang.Double chargeCurrent)
chargeCurrent
- the chargeCurrent to setpublic java.lang.Double getLoadCurrent()
public void setLoadCurrent(java.lang.Double loadCurrent)
loadCurrent
- the loadCurrent to set