moos.ssds.model
Class DataPacket
java.lang.Object
org.mbari.isi.interfaces.DevicePacket
org.mbari.isi.interfaces.SensorDataPacket
moos.ssds.model.DataPacket
- All Implemented Interfaces:
- java.io.Serializable
- public class DataPacket
- extends org.mbari.isi.interfaces.SensorDataPacket
- Version:
- : $Revision: 1.1 $
The Monterey Bay Aquarium Research Institute (MBARI) provides this
documentation and code "as is", with no warranty, express or
implied, of its quality or consistency. It is provided without support and
without obligation on the part of MBARI to assist in its use, correction,
modification, or enhancement. This information should not be published or
distributed to third parties without specific written permission from
MBARI.
Copyright 2002 MBARI.
MBARI Proprietary Information. All rights reserved.
- Author:
- : $Author: kgomes $
- See Also:
- Serialized Form
|
Constructor Summary |
DataPacket(DataPacket packet)
Copy constructor |
DataPacket(org.mbari.isi.interfaces.DeviceMessagePacket packet)
Create the DataPacket from a DeviceMessagePacket |
DataPacket(long ID,
int size)
Public no-argument constructor is required for the Externalizable interface |
DataPacket(org.mbari.isi.interfaces.MetadataPacket packet)
|
DataPacket(org.mbari.isi.interfaces.SensorDataPacket packet)
A copy constructor that casts a SensorDataPacket to a
DataPacket. |
| Methods inherited from class org.mbari.isi.interfaces.SensorDataPacket |
dataBuffer, setDataBuffer, toString |
| Methods inherited from class org.mbari.isi.interfaces.DevicePacket |
getParentId, metadataRef, sequenceNo, setMetadataRef, setParentId, setSequenceNo, setSystemTime, sourceID, systemTime |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
VERSION_ID
public static final int VERSION_ID
- See Also:
- Constant Field Values
DataPacket
public DataPacket(long ID,
int size)
- Public no-argument constructor is required for the Externalizable interface
DataPacket
public DataPacket(org.mbari.isi.interfaces.SensorDataPacket packet)
- A copy constructor that casts a
SensorDataPacket to a
DataPacket. It sets the metadataSequenceNumber, parentDeviceID,
and recordType to -1
- Parameters:
packet - A sensor data packet- See Also:
SensorDataPacket
DataPacket
public DataPacket(org.mbari.isi.interfaces.MetadataPacket packet)
DataPacket
public DataPacket(org.mbari.isi.interfaces.DeviceMessagePacket packet)
- Create the DataPacket from a DeviceMessagePacket
DataPacket
public DataPacket(DataPacket packet)
- Copy constructor
getMetadataId
public long getMetadataId()
setMetadataId
public void setMetadataId(long metadataId)
getPlatformId
public long getPlatformId()
setPlatformId
public void setPlatformId(long platformId)
getRecordType
public long getRecordType()
setRecordType
public void setRecordType(long variableID)