org.mbari.siam.devices.sunburst
Class SAMIPacketParser

java.lang.Object
  extended by org.mbari.siam.distributed.PacketParser
      extended by org.mbari.siam.devices.sunburst.SAMIPacketParser
All Implemented Interfaces:
java.io.Serializable

public class SAMIPacketParser
extends PacketParser

Parses SIAM data packets for Sunburst SAMI-CO2. Calculates pCO2 from the packet data plus the calibration values that are passed in to the constructor. Typically, those calibrations are included as attributes to the driver.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.mbari.siam.distributed.PacketParser
PacketParser.Field, PacketParser.Record
 
Field Summary
protected  double _cal_a
          Calibration values passed in to the constructor, used in calculating pCO2
protected  double _cal_b
          Calibration values passed in to the constructor, used in calculating pCO2
protected  double _cal_c
          Calibration values passed in to the constructor, used in calculating pCO2
protected  double _cal_T
          Calibration values passed in to the constructor, used in calculating pCO2
static java.lang.String COUNTS
           
 
Fields inherited from class org.mbari.siam.distributed.PacketParser
_registryName
 
Constructor Summary
SAMIPacketParser(java.lang.String registryName, double cal_T, double cal_a, double cal_b, double cal_c)
           
 
Method Summary
protected  double log10(double x)
          log10 function here for Java 1.3 compatibility
static void main(java.lang.String[] args)
          main() is used to invoke this class as a standalone packet parser
 PacketParser.Field[] parseFields(DevicePacket packet)
          Return fields parsed from DevicePacket.
 
Methods inherited from class org.mbari.siam.distributed.PacketParser
getField
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COUNTS

public static final java.lang.String COUNTS
See Also:
Constant Field Values

_cal_T

protected double _cal_T
Calibration values passed in to the constructor, used in calculating pCO2


_cal_a

protected double _cal_a
Calibration values passed in to the constructor, used in calculating pCO2


_cal_b

protected double _cal_b
Calibration values passed in to the constructor, used in calculating pCO2


_cal_c

protected double _cal_c
Calibration values passed in to the constructor, used in calculating pCO2

Constructor Detail

SAMIPacketParser

public SAMIPacketParser(java.lang.String registryName,
                        double cal_T,
                        double cal_a,
                        double cal_b,
                        double cal_c)
Method Detail

parseFields

public PacketParser.Field[] parseFields(DevicePacket packet)
                                 throws NotSupportedException,
                                        java.text.ParseException
Return fields parsed from DevicePacket.

Specified by:
parseFields in class PacketParser
Throws:
NotSupportedException
java.text.ParseException

log10

protected double log10(double x)
log10 function here for Java 1.3 compatibility


main

public static void main(java.lang.String[] args)
main() is used to invoke this class as a standalone packet parser



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.