org.mbari.siam.distributed
Class SensorDataPacket
java.lang.Object
org.mbari.siam.distributed.DevicePacket
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
| 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 |
SensorDataPacket
public SensorDataPacket()
SensorDataPacket
public SensorDataPacket(long sourceID,
int maxBytes)
- Parameters:
sourceID - unique identifier of source sensormaxBytes - maximum bytes in "raw" data sample
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.