org.mbari.siam.moos.utils.nodeview.monitor
Class PacketParser
java.lang.Object
org.mbari.siam.moos.utils.nodeview.monitor.PacketParser
- All Implemented Interfaces:
- Parser
- Direct Known Subclasses:
- SensorPacketParser
public class PacketParser
- extends java.lang.Object
- implements Parser
Parses SIAM data packets
|
Method Summary |
java.lang.Object |
get(int field)
|
java.lang.Object |
get(java.lang.String fieldName)
|
java.util.Vector |
getAll()
|
java.lang.Double |
getDouble(java.lang.String token,
int start)
|
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 |
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
PacketParser
public PacketParser()
parse
public java.util.Vector parse(java.lang.Object data)
- Specified by:
parse in interface Parser
getDouble
public java.lang.Double getDouble(java.lang.String token,
int start)
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.