org.mbari.siam.distributed
Class SummaryPacket

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

public class SummaryPacket
extends DevicePacket
implements java.io.Serializable

SummaryPacket contains a "summary" of multiple data samples.

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
SummaryPacket()
           
SummaryPacket(long sourceID)
           
 
Method Summary
 byte[] getData()
          Get data bytes.
 void setData(long time, byte[] data)
          Set message content.
 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

SummaryPacket

public SummaryPacket()

SummaryPacket

public SummaryPacket(long sourceID)
Parameters:
sourceID - unique identifier of source device.
Method Detail

setData

public void setData(long time,
                    byte[] data)
Set message content.

Parameters:
time - message time-tag (millisec since epoch)
data - text bytes

getData

public byte[] getData()
Get data bytes.


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.