org.mbari.siam.distributed
Class SensorDataPacket

java.lang.Object
  extended by org.mbari.siam.distributed.DevicePacket
      extended by org.mbari.siam.distributed.SensorDataPacket
All Implemented Interfaces:
java.io.Serializable

public class SensorDataPacket
extends DevicePacket
implements java.io.Serializable

SensorDataPacket contains "raw" bytes read from a sensor.

Author:
Tom O'Reilly
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.mbari.siam.distributed.DevicePacket
ALL_TYPES, DEVICEMESSAGE_FLAG, HEADER_BYTES, METADATA_FLAG, SENSORDATA_FLAG, SUMMARY_FLAG
 
Constructor Summary
SensorDataPacket()
           
SensorDataPacket(long sourceID, int maxBytes)
           
 
Method Summary
 byte[] dataBuffer()
          Get "raw" bytes.
 void setDataBuffer(byte[] buffer)
           
 java.lang.String toString()
          Return String representation.
 
Methods inherited from class org.mbari.siam.distributed.DevicePacket
convertToAscii, getParentId, getRecordType, isPrintable, metadataRef, sequenceNo, setMetadataRef, setParentId, setRecordType, setSequenceNo, setSystemTime, sourceID, systemTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SensorDataPacket

public SensorDataPacket()

SensorDataPacket

public SensorDataPacket(long sourceID,
                        int maxBytes)
Parameters:
sourceID - unique identifier of source sensor
maxBytes - maximum bytes in "raw" data sample
Method Detail

dataBuffer

public byte[] dataBuffer()
Get "raw" bytes.


setDataBuffer

public void setDataBuffer(byte[] buffer)

toString

public java.lang.String toString()
Return String representation.

Overrides:
toString in class DevicePacket


Copyright © 2003 MBARI.

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.