moos.ssds.model
Class DataPacket

java.lang.Object
  extended byorg.mbari.isi.interfaces.DevicePacket
      extended byorg.mbari.isi.interfaces.SensorDataPacket
          extended bymoos.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

Field Summary
static int VERSION_ID
           
 
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.
 
Method Summary
 long getMetadataId()
           
 long getPlatformId()
           
 long getRecordType()
           
 void setMetadataId(long metadataId)
           
 void setPlatformId(long platformId)
           
 void setRecordType(long variableID)
           
 
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
 

Field Detail

VERSION_ID

public static final int VERSION_ID
See Also:
Constant Field Values
Constructor Detail

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

Method Detail

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)