org.mbari.siam.moos.utils.chart.sampler
Class PacketParser

java.lang.Object
  extended by org.mbari.siam.moos.utils.chart.sampler.PacketParser
All Implemented Interfaces:
Parser
Direct Known Subclasses:
SensorPacketParser

public class PacketParser
extends java.lang.Object
implements Parser

Parses SIAM data packets


Field Summary
static int DEVICE_PACKET_FIELDS
           
static int SEQUENCE_NO
           
static int SOURCE_ID
           
static int STATUS_VERSION
           
static int TIMESTAMP
           
 
Constructor Summary
PacketParser()
           
 
Method Summary
 java.lang.Object get(int field)
           
 java.lang.Object get(java.lang.String fieldName)
           
 java.util.Vector getAll()
           
 DevicePacket getPacket()
           
 java.util.Vector parse(java.lang.Object data)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TIMESTAMP

public static final int TIMESTAMP
See Also:
Constant Field Values

SOURCE_ID

public static final int SOURCE_ID
See Also:
Constant Field Values

SEQUENCE_NO

public static final int SEQUENCE_NO
See Also:
Constant Field Values

STATUS_VERSION

public static final int STATUS_VERSION
See Also:
Constant Field Values

DEVICE_PACKET_FIELDS

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

PacketParser

public PacketParser()
Method Detail

parse

public java.util.Vector parse(java.lang.Object data)
Specified by:
parse in interface Parser

getAll

public java.util.Vector getAll()
Specified by:
getAll in interface Parser

get

public java.lang.Object get(int field)
Specified by:
get in interface Parser

get

public java.lang.Object get(java.lang.String fieldName)
Specified by:
get in interface Parser

getPacket

public DevicePacket getPacket()


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.