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

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

public class EnvironmentalPacketParser
extends SensorPacketParser

Parses SIAM data packets


Field Summary
static int ENVIRONMENTAL_PACKET_FIELDS
           
static int GFHI
           
static int GFLO
           
static int HUMIDITY
           
static int PRESSURE
           
static int TEMPERATURE
           
 
Fields inherited from class org.mbari.siam.moos.utils.chart.sampler.SensorPacketParser
DATA_BUFFER, SENSOR_PACKET_FIELDS
 
Fields inherited from class org.mbari.siam.moos.utils.chart.sampler.PacketParser
DEVICE_PACKET_FIELDS, SEQUENCE_NO, SOURCE_ID, STATUS_VERSION, TIMESTAMP
 
Constructor Summary
EnvironmentalPacketParser()
           
EnvironmentalPacketParser(SensorDataPacket packet)
           
 
Method Summary
 java.lang.Object get(int field)
           
 java.lang.Object get(java.lang.String fieldName)
           
 java.lang.Double getDouble(java.lang.String token, int start)
           
 java.util.Vector parse(java.lang.Object data)
           
 
Methods inherited from class org.mbari.siam.moos.utils.chart.sampler.SensorPacketParser
getSensorPacket
 
Methods inherited from class org.mbari.siam.moos.utils.chart.sampler.PacketParser
getAll, getPacket
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TEMPERATURE

public static final int TEMPERATURE
See Also:
Constant Field Values

PRESSURE

public static final int PRESSURE
See Also:
Constant Field Values

HUMIDITY

public static final int HUMIDITY
See Also:
Constant Field Values

GFLO

public static final int GFLO
See Also:
Constant Field Values

GFHI

public static final int GFHI
See Also:
Constant Field Values

ENVIRONMENTAL_PACKET_FIELDS

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

EnvironmentalPacketParser

public EnvironmentalPacketParser()

EnvironmentalPacketParser

public EnvironmentalPacketParser(SensorDataPacket packet)
Method Detail

getDouble

public java.lang.Double getDouble(java.lang.String token,
                                  int start)

parse

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

get

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

get

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


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.